Diff contracts
diff_contractsCompare two contract versions and classify every change as breaking or compatible, with rule, field path, before/after values, and severity to assess API change impact.
Instructions
Compare two versions of a contract (any supported format) and classify every change as breaking or compatible, with the rule, field path, before/after and severity. Example: base_spec='origin/main:openapi.yaml', head_spec='openapi.yaml'.
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": "diff_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_spec | Yes | ||
| head_spec | Yes | ||
| breaking_only | No |