Skip to main content
Glama
rog0x
by rog0x

diff_schemas

Compare two JSON Schemas to identify added, removed, or changed fields, type and constraint changes, and classify each as breaking or non-breaking for backward compatibility analysis.

Instructions

Compare two JSON Schemas and identify all differences: added/removed/changed fields, type changes, constraint changes (min/max, patterns, enums). Classifies each change as breaking or non-breaking for backwards compatibility analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_schemaYesThe updated (new) JSON Schema
old_schemaYesThe original (old) JSON Schema
Behavior4/5

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

There are no annotations, so the description carries the burden of behavioral disclosure. It does this well by stating the operation is comparative (no side effects implied), listing the categories of differences detected, and explicitly saying each change is classified as breaking or non-breaking. It does not describe the exact return format, but the behavioral essence is disclosed.

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?

Two tight sentences carry all essential information: what the tool does, what kinds of differences it catches, and what classification it produces. Every clause earns its place, and the primary purpose is front-loaded.

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 read-only comparison tool with two well-described parameters and no output schema, the description is nearly complete. It explains the inputs, the diff dimensions, and the breaking/non-breaking classification. A slightly more concrete statement of the return structure would make it fully complete, but nothing critical is missing for selecting and invoking the tool.

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 coverage is 100%, and the parameter descriptions already define old_schema and new_schema. The tool description adds value by clarifying the relationship between them ('original' vs 'updated') and framing their use in a comparison, so the agent understands the temporal/directional semantics beyond the schema alone.

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?

The description opens with a specific verb 'Compare' and a precise resource ('two JSON Schemas'), then enumerates exactly what kind of differences are identified (fields, types, constraints, enums) and what output classification is produced (breaking/non-breaking). This fully distinguishes it from sibling tools like generate_json_schema, validate_schema, or mock_from_schema.

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

Usage Guidelines4/5

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

The description makes the intended usage obvious: call this when you need to compare an old and new JSON Schema and understand what changed and whether those changes are backwards-compatible. It does not explicitly name alternatives or exclusions, but the use case is clear enough that an agent can select it correctly without additional guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-schema-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server