Will this branch name pass the repo's hooks?
rrt_validate_branchValidate a branch name against the repository's configured branch-type allow-list and extra types before creation to catch invalid names before pre-commit rejection.
Instructions
Check a branch name against this repo's configured type allow-list before you create it.
Cheaper than creating it and having the pre-commit hook reject it. Honors [[tool.rrt.branch_types]] and extra_branch_types from config, which a hardcoded regex would miss.
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": {
"branch_name": "<branch_name>"
},
"name": "rrt_validate_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| branch | Yes | ||
| reason | No |