MCPToolTask
Execute tools from Model Context Protocol (MCP) servers with robust connection management, automatic tool discovery, and configurable retry logic.
Category: Online
Side-Effect: Variable
Auto-Retry Supported
⚙️ Execution Config (JSON)
{
"server_name": "filesystem-server",
"tool_name": "read_file",
"tool_arguments": {
"path": "src/main/App.kt"
},
"timeout_seconds": 15
}
→
👁️ Session UI Output
Executing MCP tool: read_file
Server: filesystem-server
// Tool Output Preview
{ "content": "package com.example..." }
{ "content": "package com.example..." }
✔ Tool execution completed successfully
Execution time: 142ms
Execution Configuration
| Field | Type | Description |
|---|---|---|
server_name |
String | The name of the MCP server to connect to. Defaults to default_server if omitted. |
tool_name |
String | The specific tool to execute on the target MCP server. Required for execution. |
tool_arguments |
Map<String, Any> | JSON object containing arguments required by the tool. |
timeout_seconds |
Integer | Execution timeout. Defaults to 30s. |
Estimated Resource Usage
Token Consumption
Low
Latency
Network Dependent