Skip to main content
Glama

specgate_openapi_diff

Deterministically compare base vs. head OpenAPI 3.0/3.1 or JSON Schema specs to detect breaking API changes, compute exact MAJOR/MINOR/PATCH SemVer bumps, and generate PR review comments (<15ms, zero LLM).

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": {
      "base_spec": "<base_spec>",
      "head_spec": "<head_spec>"
    },
    "name": "specgate_openapi_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOptional output format: 'json' (default) or OASIS 'sarif' v2.1.0.
base_specYesBase OpenAPI 3.x / JSON Schema object or JSON string (e.g., from main branch).
head_specYesHead OpenAPI 3.x / JSON Schema object or JSON string (e.g., from Pull Request).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose useful traits: deterministic execution, no LLM involvement, sub-15ms latency, and selectable JSON/SARIF output. It does not state whether the operation is purely side-effect free, how it behaves on malformed or mismatched spec versions, or any size limits, which are the remaining behavioral unknowns for a comparison tool.

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?

A single front-loaded sentence with zero filler: verb and operands first, then the three deliverables, then a differentiating parenthetical on speed and determinism. Every clause contributes information an agent needs and nothing is repeated from the schema.

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

Completeness3/5

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

There is no output schema, so the description must convey the return shape, and it only names the categories of result (breaking changes, SemVer verdict, PR comments) without indicating structure, fields, or how findings are enumerated. Combined with silent error behavior for invalid specs, the definition is adequate but leaves real gaps for an agent that must interpret results.

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%, including branch-source examples for base_spec/head_spec and an enum for the format parameter, so the schema does the heavy lifting. The description adds only the framing that the two specs are compared against each other and that output format affects deliverables (SARIF mentioned only in schema); the baseline of 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 (compare) with named resources (base vs. head OpenAPI 3.0/3.1 or JSON Schema specs) and the three concrete outputs: breaking-change detection, exact MAJOR/MINOR/PATCH SemVer bump, and PR review comments. The sibling tools (a11yratchet_evaluate_audit, spfguard_analyze_spf) are unrelated domains, so no differentiation burden exists and an agent can select this confidently.

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 only implied: the base/head framing and the PR-review mention suggest CI gating and diff review contexts, and the 'base_spec e.g., from main branch' schema examples reinforce that. However, the description never says explicitly when to choose this tool, whether it can be used outside PR review, or what the when-not conditions are.

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