compress_tool_definitions
Shrink MCP tool descriptions and JSON schemas to cut context cost without changing how agents call them. Returns the compressed definitions plus exact token savings.
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": {
"definitions": "<definitions>"
},
"name": "compress_tool_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definitions | Yes | JSON array of tool definitions to compress. Each item: {name, description, inputSchema}. Accepts a JSON array, or a JSON string containing one. |