specgate_openapi_diff
Deterministically compare base vs. head OpenAPI 3.0/3.1 or JSON Schema specs to detect breaking API changes, compute exact MAJOR/MINOR/PATCH SemVer bumps, and generate PR review comments (<15ms, zero LLM).
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": "<base_spec>",
"head_spec": "<head_spec>"
},
"name": "specgate_openapi_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Optional output format: 'json' (default) or OASIS 'sarif' v2.1.0. | |
| base_spec | Yes | Base OpenAPI 3.x / JSON Schema object or JSON string (e.g., from main branch). | |
| head_spec | Yes | Head OpenAPI 3.x / JSON Schema object or JSON string (e.g., from Pull Request). |