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.

Back to Catalog
MCPmcp_tool

Block Preview

MCP Tool

Create and manage Model Context Protocol tools

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the mcp_tool block with monitoring enabled in production.

Inputs (UI)

Operation

dropdown

Layout: full

Options: Create Tool, Call Tool, Update Tool, Delete Tool

Tool Name

short-input

Placeholder: my-tool

Layout: half

Condition: operation = ["create_tool","call_tool","update_tool","delete_tool"]

Tool Description

short-input

Placeholder: Description of what the tool does

Layout: full

Condition: operation = ["create_tool","update_tool"]

Parameter Schema (JSON)

code

Placeholder: { "param1": {"type": "string", "description": "First parameter"}, "param2": {"type": "number", "description": "Second parameter"} }

Layout: full

Condition: operation = ["create_tool","update_tool"]

Tool Implementation (JavaScript)

code

Placeholder: 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)

code

Placeholder: { "param1": "value1", "param2": 42 }

Layout: full

Condition: operation = "call_tool"

Server URL

short-input

Placeholder: http://localhost:3000/mcp or stdio://path/to/server.js

Layout: full

Timeout (ms)

short-input

Placeholder: 30000

Layout: half

Inputs (API)

operation

string

Required

serverUrl

string

Required

toolName

string

Optional

toolDescription

string

Optional

paramSchema

json

Optional

toolImplementation

string

Optional

toolArguments

json

Optional

timeout

number

Optional

Outputs

Primary response type:

{
  "success": "boolean",
  "content": "json",
  "isError": "boolean",
  "error": "string"
}

Tool Access

mcp_tool
MCP Tool | NowFlow Blocks