Skip to main content
Glama

schema-compat

Breaking-change diff between two JSON Schemas or OpenAPI documents, and whether cached calls still validate — Compares an old and a new JSON Schema 2020-12 (or two OpenAPI 3.0/3.1 documents) and lists each change with its path, keyword, old and new value, whether it narrows or widens what is accepted, and whether it breaks clients: newly required properties, removed or retyped properties, removed enum values, tightened limits, additionalProperties flips, removed operations, removed or newly required param

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": {
      "before": "<before>",
      "after": "<after>",
      "kind": "<kind>"
    },
    "name": "schema-compat"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
roleNojson-schema only: request (default) or response; OpenAPI compares each side in its own role.
afterYesThe new schema, or new OpenAPI document. Full JSON Schema 2020-12 (local $ref only).
callsNo
beforeYesThe old schema, or old OpenAPI document. Full JSON Schema 2020-12 (local $ref only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does meaningfully disclose the shape of the result — each change reported with path, keyword, old and new value, narrow/widen direction, and client-breaking status — which is valuable since no output schema exists. However, it omits operational traits: it is a pure read/analysis operation (not stated), it never mentions the 50-call cap or any size/latency limits, and the closing sentence is cut off mid-item ('removed or newly required param'), leaving the enumeration of detected breaks incomplete.

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

Conciseness3/5

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

The purpose is correctly front-loaded in the first clause, which is good. But the second sentence is a single long run-on that mixes the output schema, change categories, and limitations into one comma-chained list, and it terminates incompletely — wasting space on an enumeration that is both unstructured and truncated.

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

Completeness2/5

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

This is a fairly complex five-parameter tool with nested call objects, no annotations, and no output schema, so the description has to do heavy lifting. It partially covers return content but leaves out key operational facts an agent needs: the 50-item cap on calls, the local-$ref-only constraint (present only in the schema), error behavior for invalid/unsupported documents, and the request/response role semantics.

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 60%, so the schema already documents kind, role, before, after and the nested call/operation fields. The description adds meaning by mapping before/after/kind to the comparison of an old and new JSON Schema or OpenAPI document, and calls to validation of cached arguments. It does not explain the role parameter (request vs response) or the operation field, which for OpenAPI are non-obvious and central to getting correct results.

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 opening clause names a specific verb and resource: 'Breaking-change diff between two JSON Schemas or OpenAPI documents,' and adds the secondary job of checking whether cached calls still validate. That is far more precise than a generic diff tool, but it never names or contrasts with the closest siblings (e.g. schema-repair, schema-witness, diff-gatekeeper), so an agent must infer the boundary itself.

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 rather than stated: comparing an old versus new schema for client-breaking changes, optionally replaying cached call arguments. There is no explicit 'use this when / use sibling X when' routing, no stated prerequisites (e.g. schemas must be JSON Schema 2020-12 with local $refs only), and no mention of when the calls check should be skipped.

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.

Resources