Skip to main content
Glama

devanvil_check_contract_drift

Validate real API responses against OpenAPI 3.x or Swagger 2.0 contracts to detect breaking schema drift, missing required fields, type/enum/format mismatches, and undocumented fields.

Instructions

Validate a real API response (method, path, HTTP status, JSON body) against an OpenAPI 3.x / Swagger 2.0 contract to detect breaking schema drift, missing required fields, type/enum/format mismatches, and undocumented fields.

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": {
      "spec": "<spec>",
      "method": "<method>",
      "path": "<path>",
      "status": "<status>",
      "body": "<body>"
    },
    "name": "devanvil_check_contract_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesActual JSON response body string.
pathYesActual request path (e.g. /pets/42).
specYesOpenAPI 3.x or Swagger 2.0 YAML/JSON specification.
methodYesHTTP method (GET, POST, PUT, DELETE, etc.).
statusYesActual HTTP status code (e.g. 200).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden. It usefully discloses that the tool is a static comparison over a supplied contract and response and states what categories of findings it looks for, but it never says what the result looks like (a violation list? severity levels? a pass/fail flag) and there is no output schema to cover that gap.

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?

One sentence, front-loaded with the verb and resource, with the detection capabilities listed compactly at the end. Every clause carries information and nothing is repeated from the schema or title.

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 pure-function validation tool with no annotations and no output schema, the inputs are fully covered by schema documentation and the purpose is clear. The remaining gap is the return contract: an agent cannot tell from the definition whether it gets a boolean, a list of violations, or severity-classified findings, which matters for a tool whose entire value is its report.

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 all five parameters already carry inline documentation; the baseline is 3. The description adds a framing that ties the parameters together as a 'real API response (method, path, HTTP status, JSON body)' alongside the contract, but contributes no format or constraint detail beyond the schema (e.g. what body string is expected when a response has no payload).

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?

Names a specific verb and resource ('Validate a real API response ... against an OpenAPI 3.x / Swagger 2.0 contract') and enumerates the concrete defect classes it detects (schema drift, missing required fields, type/enum/format mismatches, undocumented fields). That is far more informative than a restated name. It does not distinguish itself from the sibling devanvil_semantic_diff, so it stops short of a 5.

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 inputs: you supply an actual response plus a contract, so the tool applies when you have both. There is no explicit when-not guidance, no prerequisites (e.g. that the spec must contain the given path/method), and no alternative tool named for related comparisons.

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