Compare two API specs
compare_specsCompare two API specs to identify breaking changes, additions, modifications, and warnings with a risk score and compatibility summary. Analyzes API contract compatibility without modifying code.
Instructions
Compares two API specs and lists breaking changes, additions, modifications, and warnings with a risk score and compatibility summary. For a merge/deploy decision prefer is_change_safe. Analyzes API contract compatibility only; it does NOT modify code.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_specs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specFormat | No | ||
| baseSpecPath | No | Path to the base (old) spec file. | |
| failOnBreaking | No | If true, the header flags when any breaking change is present. | |
| targetSpecPath | No | Path to the target (new) spec file. | |
| baseSpecContent | No | Inline base (old) spec content. | |
| targetSpecContent | No | Inline target (new) spec content. |