Skip to main content
Glama

mechacut

json_patch

Apply an RFC 6902 patch (add/remove/replace/move/copy/test) to a document; per-operation errors with the failing index. Free under 32 KB, x402 above.

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": {
      "document": "<document>",
      "patch": "<patch>"
    },
    "name": "json_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesRFC 6902 operations, applied in order
documentYesthe JSON document to patch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and discloses the supported operation set, per-operation error behavior with a failing index, and a pricing boundary. It still leaves atomicity, rollback behavior, and success response semantics unstated.

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 definition is a single tightly packed sentence with the core action front-loaded, followed by error behavior and pricing. Every clause carries relevant information without repetition.

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 two-parameter tool with no output schema, the description provides enough to understand the patch semantics, supported operations, error reporting, and pricing threshold. The main remaining gap is that mutation safety details such as atomicity or rollback behavior are not stated.

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 description coverage is 100%, so the baseline is 3. The description adds the allowed RFC 6902 operation names, but does not add further meaning about the document or patch parameters beyond the schema.

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 and resource: apply an RFC 6902 patch to a document. Listing the supported operations makes the purpose more concrete, though it does not explicitly differentiate this from sibling patch or JSON tools.

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?

Use is implied by the RFC 6902 reference and operation list, but the description gives no explicit when-to-use guidance, exclusions, or named alternatives such as text_patch or json_repair. The pricing threshold is useful context but does not resolve tool selection.

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.