Blocks
MCP Tool
Create and manage Model Context Protocol tools
Create and manage tools for MCP servers. Tools allow LLM applications to perform actions and computations.
Block Preview
MCP Tool
Create and manage Model Context Protocol tools
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the mcp_tool block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: full
Options: Create Tool, Call Tool, Update Tool, Delete Tool
Tool Name
short-inputPlaceholder: my-tool
Layout: half
Condition: operation = ["create_tool","call_tool","update_tool","delete_tool"]
Tool Description
short-inputPlaceholder: Description of what the tool does
Layout: full
Condition: operation = ["create_tool","update_tool"]
Parameter Schema (JSON)
codePlaceholder: { "param1": {"type": "string", "description": "First parameter"}, "param2": {"type": "number", "description": "Second parameter"} }
Layout: full
Condition: operation = ["create_tool","update_tool"]
Tool Implementation (JavaScript)
codePlaceholder: async ({ param1, param2 }) => { // Implement tool logic here return { content: [{ type: "text", text: `Result: ${param1} ${param2}` }] }; }
Layout: full
Condition: operation = ["create_tool","update_tool"]
Tool Arguments (JSON)
codePlaceholder: { "param1": "value1", "param2": 42 }
Layout: full
Condition: operation = "call_tool"
Server URL
short-inputPlaceholder: http://localhost:3000/mcp or stdio://path/to/server.js
Layout: full
Timeout (ms)
short-inputPlaceholder: 30000
Layout: half
Inputs (API)
operation
stringRequired
serverUrl
stringRequired
toolName
stringOptional
toolDescription
stringOptional
paramSchema
jsonOptional
toolImplementation
stringOptional
toolArguments
jsonOptional
timeout
numberOptional
Outputs
Primary response type:
{
"success": "boolean",
"content": "json",
"isError": "boolean",
"error": "string"
}