openapi_diff
Compare two OpenAPI 3.x specifications and classify every change as breaking, non-breaking, or info.
Use this when you want to know if a candidate OpenAPI spec change
is safe to ship or will break existing clients. The diff covers
paths, operations, parameters, request bodies, responses, and
response-body schema fields (added/removed/retyped, required toggle).
Both arguments are the OpenAPI spec as a JSON or YAML string.
Returns {summary: {breaking, non_breaking, info}, 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": {
"old_spec": "<old_spec>",
"new_spec": "<new_spec>"
},
"name": "openapi_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_spec | Yes | ||
| old_spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |