Skip to main content
Glama

Slim one MCP tool definition

demo_simplify_tool_schema
Read-onlyIdempotent

Simplify 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

TableJSON Schema
NameRequiredDescriptionDefault
toolYesOne 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

TableJSON Schema
NameRequiredDescriptionDefault
slim_toolYesThe compacted tool definition, in tools/list shape.
full_tokensYesTokens of the definition as submitted.
reduction_pctYesPercentage saved by compaction.
rules_appliedYesWhich compaction rules fired on this definition.
simplified_tokensYesTokens of the compacted definition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.14

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered; the description adds genuinely new behavior by defining what the 'slim form' actually keeps (name, type, required marker) and that char/token deltas are computed against the input. It stops short of describing edge-case handling or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and resource, and every clause carries information. The single long sentence is dense but not padded, and no filler precedes the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return contract need not be spelled out, yet the description helpfully flags that the delta metrics come back with the slim definition. For a single-parameter transformer with full schema coverage and rich annotations, nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and its description already specifies that the input is a serialised JSON object requiring a non-empty 'name', with bare strings rejected. The description adds nothing beyond that, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (rewrites/slims) plus the exact resource (a single MCP tool definition, name/description/inputSchema) and the form produced. An agent can tell this apart from siblings like demo_compare_formats or demo_encode_toon without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the transformation described, but the description never says when to reach for this tool versus the sibling format/diff tools (demo_compare_formats, demo_encode_toon, demo_build_tool_manifest). No prerequisites or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.