openapi_diff
Compares two local OpenAPI specs to classify semantic contract changes as breaking or non-breaking, helping identify compatibility risks before API updates.
Instructions
Compare two local OpenAPI specs (base_spec_path vs target_spec_path) and classify semantic contract changes into breaking vs non-breaking.
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_spec_path": "<base_spec_path>",
"target_spec_path": "<target_spec_path>"
},
"name": "openapi_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Workspace for both specs. When a server root is configured, this path must remain within it. | |
| max_bytes | No | UTF-8 budget for diff JSON (default: 16384). | |
| base_spec_path | Yes | Path to the baseline OpenAPI spec inside the workspace. | |
| target_spec_path | Yes | Path to the target/updated OpenAPI spec inside the workspace. |