check_version_alignment
Verify that the version in pyproject.toml aligns with a specified tag to prevent release mismatches.
Instructions
Check that pyproject.toml [project].version matches an optional expected tag.
No network access. Fail-closed when version cannot be detected.
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_path": "<repo_path>"
},
"name": "check_version_alignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute or relative path to the repository root. | |
| expected_tag | No | Optional target tag, e.g. "v0.1.0". Leading "v" is stripped before comparison with the file-level version string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||