Skip to main content
Glama
x402-preflight-mcp

x402-preflight-mcp

by animus3d

openapi_breaking_diff

Compares base vs head OpenAPI 3.x specs to classify breaking versus non-breaking contract changes and recommends a semver bump.

Instructions

[x402 $0.04 USDC on Base/Solana] Compares base vs head OpenAPI 3.x specs to classify breaking vs non-breaking contract changes and recommend a semver bump.

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": "openapi_breaking_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase OpenAPI 3.x spec object
headYesHead OpenAPI 3.x spec object
_paymentSignatureNoOptional base64-encoded x402 v2 payment-signature header (overrides X402_PAYMENT_SIGNATURE env var).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the paid x402 pricing model ($0.04 USDC on Base/Solana), which is valuable operational context. However, it says nothing about spec size limits, failure modes, or determinism of the classification, leaving real behavioral gaps for a tool with zero annotation coverage.

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 efficient sentence with no filler, though it leads with the pricing tag rather than the tool's function, so the core purpose is not strictly front-loaded. Nothing is wasted.

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?

With no annotations and no output schema, the description should say roughly what the agent gets back (a change list, breaking-change categories, a recommended version). It states the outputs conceptually (classification and semver recommendation) but not their shape, which is the main remaining gap.

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 coverage is 100%, so base, head, and _paymentSignature are already documented in the schema; the description adds no extra meaning about accepted spec formats or version edge cases. Baseline 3 is appropriate when the schema does the heavy lifting.

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 and resource: compares base vs head OpenAPI 3.x specs, classifies breaking vs non-breaking changes, and recommends a semver bump. An agent can tell this apart from sibling tools like diff_bug_triage or json_config_preflight without opening any schema.

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?

The scope is implied by 'base vs head OpenAPI 3.x specs', which tells the agent the input domain, but there is no explicit when-to-use/when-not guidance and no named alternative for related diffing tasks. Usage must be inferred from the stated purpose.

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