diff_specs
Compare two versions of an OpenAPI or Swagger spec and classify every change as breaking, potentially breaking, non-breaking, or informational, with reasons and exact locations.
Instructions
Compare two versions of an API and classify every change as BREAKING, POTENTIALLY_BREAKING (needs a human look), NON_BREAKING or INFO, with the reason and exact location (operation, schema path, JSON pointer, line).
Rules follow request/response variance: in a request, tightening is breaking (new required parameter or property, narrower type, removed enum value, stricter min/max/pattern); in a response, loosening or removing guarantees is breaking (property removed or made optional, type changed, nullable added, success code removed). Also checks auth changes, content types, parameter style/location, oneOf/anyOf/allOf and discriminator. Equivalent specs written differently (reordered keys, $ref vs inline, nullable vs type [x,'null'], Swagger 2.0 vs OpenAPI 3) report no changes.
old and new are paths inside the allowed directory, or spec text.
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": {
"old": "<old>",
"new": "<new>"
},
"name": "diff_specs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |