Skip to main content
Glama

mechacut

reshape_json

Reshape JSON with a declarative mapping (path, cast, default, required, each). Optional outputSchema gate: the output is validated and rejected with precise errors on violation. No LLM, nothing stored.

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": {
      "input": "<input>",
      "mapping": "<mapping>"
    },
    "name": "reshape_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesany JSON payload
mappingYesfields: {outKey: {path, cast?, default?, required?, each?} | {const}}
outputSchemaNoJSON Schema (draft 2020-12) the output must satisfy

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden and does well: it states there is no LLM and nothing is stored, and it explains that an optional outputSchema causes validation with rejection on violation. It does not describe behavior for invalid mappings or confirm determinism, but the key side-effect profile is covered.

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

Conciseness5/5

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

The description is three front-loaded sentences with no wasted wording. Each clause adds relevant information about mapping, validation, or side effects.

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?

For a stateless JSON transformation tool with no annotations and no output schema, the description covers the core operation, mapping capabilities, optional validation, and side-effect profile. It could clarify the return shape or error behavior for invalid mappings, but it is largely complete.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema by naming the mapping directives (path, cast, default, required, each) and explaining that outputSchema acts as a validation gate. This helps an agent understand how the parameters behave in practice.

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

Purpose4/5

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

The description states a specific verb ('Reshape') and resource ('JSON') and specifies that the transformation is driven by a declarative mapping. It is clear what the tool does, but it does not differentiate itself from sibling tools such as json_map or json_coerce.

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

Usage Guidelines2/5

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

The description explains the tool's capabilities but gives no explicit guidance on when to use it instead of alternatives. An agent must infer from feature names whether this is the right declarative transformation tool rather than json_map or json_coerce.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.