diff_openapi
Compare two OpenAPI 3.x documents to classify each change as breaking, warning, non-breaking, or info, flag breaking changes, and suggest the SemVer version bump.
Instructions
Compare two OpenAPI 3.x documents. Each change is breaking, warning, non-breaking or info; breaking says
whether any is breaking, and semver suggests the version bump.
Typical use after editing a spec: revision_path="openapi.yaml", base_git_ref="main".
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": "diff_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The old version, as YAML or JSON text (or a JSON object). | |
| revision | No | The new version, as YAML or JSON text (or a JSON object). | |
| base_path | No | The old version as a local file. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read. | |
| base_git_ref | No | Use revision_path as it is at this git ref (e.g. main, HEAD) as the base. A branch, tag or commit; the file is read with `git show` and uploaded to the Specwise API. | |
| revision_path | No | The new version as a local file. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read. |