Skip to main content
Glama

ai_detect_breaking_changes

Compare current and previous OpenAPI specs to classify changes as breaking or non-breaking and assess their impact before release.

Instructions

Compare two OpenAPI specs (current vs previous) and use AI to classify changes as breaking vs non-breaking, with impact analysis.

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": {
      "current_spec": "<current_spec>",
      "previous_spec": "<previous_spec>"
    },
    "name": "ai_detect_breaking_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
current_specYesCurrent OpenAPI JSON/YAML spec
previous_specYesPrevious OpenAPI JSON/YAML spec

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and discloses little: it does not state that the operation is non-mutating, whether it costs AI tokens or incurs latency, how invalid or partial specs are handled, or what the result contains despite there being no output schema. Only the 'AI classify + impact analysis' processing trait is new information.

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 the action first and the differentiating capability second. Every clause carries information and there is no filler or restatement of the tool name.

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?

For a two-parameter analysis tool with fully documented params but no annotations and no output schema, the definition covers what it does but not what comes back or how failures surface. Given the missing output schema, one sentence on the shape of the breaking-change/impact result would meaningfully close the 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 description coverage is 100%, so both parameters are already documented as 'current' and 'previous' OpenAPI JSON/YAML specs. The description reinforces the current-vs-previous orientation but adds no format constraints, size limits, or handling rules beyond what the schema states, putting it at the baseline.

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 names a specific verb-and-resource pair ('compare two OpenAPI specs') plus the differentiating capability ('AI to classify changes as breaking vs non-breaking, with impact analysis'). The OpenAPI/spec angle separates it from siblings like diff_responses or compare_environments without needing to name them, though no sibling is explicitly referenced.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternatives or prerequisites named. An agent must infer from the purpose alone that this is for API contract change review rather than, say, runtime response diffing, and the description never says why one would choose this over diff_responses or contract_test.

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