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.
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 |