mcp_tool_add
Add a new tool to an existing MCP server by specifying the server path, tool name, description, parameters, and body.
Instructions
Add a new tool to an existing MCP server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_path": "<server_path>",
"tool_name": "<tool_name>",
"description": "<description>"
},
"name": "mcp_tool_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Python statements for the tool body. | result = {"ok": True} |
| params | No | JSON list of [name, type, default] tuples. | [] |
| tool_name | Yes | Snake-case tool name (valid Python identifier). | |
| description | Yes | One-line docstring for the tool. | |
| server_path | Yes | Path to the `mcp_server.py` file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |