Check before tagging
would_tagChecks whether the version declared at HEAD would reuse an existing git tag label before a release tag is created. Exit 1 means do not tag; bump the version first.
Instructions
Use BEFORE creating a release tag: would the version that HEAD declares reuse a label that already names other code in the tags? Exit 1 means do not tag; bump the version first. Returns exit 0, 1 or 2 and the JSON report. Exit 2 is not a pass: nothing was decided, and output says why (no label found, a file not read, a tag not compared). Read-only: it runs git reads only, on the local repository, with no network.
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": {
"repo": "<repo>"
},
"name": "would_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | path to a local git repository with its tags fetched |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit | Yes | 0 clean, 1 drift, 2 not decided (the reason is in output) | |
| output | Yes | the JSON report (docs/REPORT.md), or the refusal as text | |
| meaning | Yes | the exit code in words |