Slim one MCP tool definition
demo_simplify_tool_schemaSimplify an MCP tool definition into mcptoon's slim schema, keeping only parameter name, type, and required marker, and report character and token savings.
Instructions
Rewrites a single MCP tool definition (name, description, inputSchema) into mcptoon's slim form, where each parameter keeps only its name, its type and its required marker, and returns the slim definition with the character and estimated-token delta against what you sent. ...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | One MCP tool definition as a JSON object serialised to text, with a non-empty 'name'; a bare name string is rejected and reported as such. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slim_tool | Yes | The compacted tool definition, in tools/list shape. | |
| full_tokens | Yes | Tokens of the definition as submitted. | |
| reduction_pct | Yes | Percentage saved by compaction. | |
| rules_applied | Yes | Which compaction rules fired on this definition. | |
| simplified_tokens | Yes | Tokens of the compacted definition. |