create_tool
Build custom Python tools for Excel and CSV analysis. Define reusable functions that process data locally, enabling tailored analytics within your workflow.
Instructions
Create a custom Python tool (sandboxed). The code must define a run(db, **kwargs) function.
parameters should be a JSON string like: {"param": {"type": "string", "description": "...", "default": ...}}
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": {
"name": "<name>",
"description": "<description>",
"python_code": "<python_code>"
},
"name": "create_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | Yes | ||
| python_code | Yes | ||
| parameters | No | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |