Skip to main content
Glama

Machine Utility Foundry (x402 + ICP Trust & Safety Oracles)

diff_breaking_openapi

Read-onlyIdempotent

[x402 Paid: $0.02 Base USDC] Audit two OpenAPI 3.x specifications (up to 2 MB) with memoized local $ref and allOf resolution to detect breaking endpoint, parameter, request, and response contract changes.

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": {
      "previous": "<previous>",
      "current": "<current>"
    },
    "name": "diff_breaking_openapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
currentYesCandidate OpenAPI 3.x specification JSON object (after change).
previousYesBaseline OpenAPI 3.x specification JSON object (before change).

Output Schema

NameRequiredDescriptionDefault
changesYes
summaryYes
breakingCountYes
nonBreakingCountYes
truncatedByBudgetNo
hasBreakingChangesYes

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?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral facts: a $0.02 Base USDC x402 charge, a 2 MB input ceiling, and that $ref/allOf resolution is memoized and local rather than network-fetched — all material to whether an agent should call it.

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?

A single dense sentence with the cost tag front-loaded and the core purpose before the implementation detail. Every clause carries information; the only mild cost is that the billing prefix and technical clause compete for the reader's first attention.

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 an output schema present, return values need not be described, and the annotations carry the safety semantics. The description still covers cost, size limits, ref-resolution strategy, and the categories of change detected, leaving little an agent needs to know before invoking it.

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%, so the previous/current objects are already documented, giving a baseline of 3. The description adds the 'up to 2 MB' size constraint that appears nowhere in the schema, which is a real calling constraint rather than a restatement.

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 pairs a specific verb ('Audit') with a specific resource ('two OpenAPI 3.x specifications') and states the outcome ('detect breaking endpoint, parameter, request, and response contract changes'). It is immediately clear what the tool produces, though it does not need sibling differentiation since no listed sibling competes with it.

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 by the previous/current framing ('before change' / 'after change'), so an agent can infer this is a pre-merge contract gate. However, there is no explicit when-to-use statement, no exclusions, and no guidance on when a different approach would be preferable.

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