Skip to main content
Glama

util_openapi_diff

Read-only

OpenAPI breaking-change diff — Compare two versions of an API spec (OpenAPI 3.x or Swagger 2.0, JSON) and classify every change as breaking, warning, non-breaking or info: removed operations, new required parameters, optional-to-required, parameter or body type changes, removed request content types, removed 2xx responses, auth added, deprecations, server changes. Returns BREAKING / NON_BREAKING / IDENTICAL and a suggested semver bump (major/minor/patch). base= and head= are URLs (or raw JSON) of the old and new specs. Use it in CI to gate API releases. Price: $0.006 USDC (Base, via x402).

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": "<base>",
      "head": "<head>"
    },
    "name": "util_openapi_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYese.g. https://petstore.swagger.io/v2/swagger.json
headYese.g. https://petstore3.swagger.io/api/v3/openapi.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorld/destructiveHint, so the bar is lower; the description still adds substantive behavior: the exact change categories detected, the three return verdicts (BREAKING / NON_BREAKING / IDENTICAL), a suggested semver bump, and the x402 payment cost. It does not cover failure modes such as unreachable or malformed spec URLs.

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

Conciseness4/5

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

It is front-loaded with the purpose and the verdict output, then the parameter explanation, then price. The long enumeration of change categories is dense but each item is relevant to knowing what the diff catches; only minor trimming would help.

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?

With no output schema, the description correctly supplies the return shape (verdict plus semver suggestion) and the input semantics, which is what an agent needs to invoke it. It stops short of describing error behavior for invalid or unreachable specs, a small remaining gap.

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 both parameters carry URL examples, so baseline is 3. The description adds real meaning beyond the schema by stating that base= and head= accept 'URLs (or raw JSON)', clarifying an input form the schema examples do not show.

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+resource ('OpenAPI breaking-change diff — Compare two versions of an API spec') and names the exact input formats supported (OpenAPI 3.x, Swagger 2.0, JSON). It is clearly distinguishable from generic siblings like util_json_diff and text_diff by scoping to API specs and semantic change classification.

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?

It gives an explicit use context: 'Use it in CI to gate API releases', which tells the agent when this tool is the right choice. It does not explicitly exclude or route to alternatives (e.g. util_json_diff for non-spec JSON), so it stops short of full when-not guidance.

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