Skip to main content
Glama
Knuckles-Team

Repository Manager

Phase Direction Here

rm_gates_phase_direction_here

Run and inspect two-tier pre-commit gates across repositories, exercising fast or heavy stages to validate code before commit or push.

Instructions

Phase direction here (rm_gates). Run and inspect the two-tier (fast/heavy) pre-commit gate across repos.

The single tool that can actually drive both tiers of the two-tier gate model: stage="fast" exercises a repo's pre-commit-stage hooks, stage="heavy" exercises its pre-push-stage hooks (pytest, cargo, uv lock --check, ...) via pre-commit run --hook-stage <stage>.

Input Schema

NameRequiredDescriptionDefault
repoNoTarget one repo's latest gate job for 'status'/'explain'/'profile' (alternative to job_id).
fleetNoFor 'audit_fail_fast': scan every repository in the workspace rather than the ones named by 'repos'.
reposNoComma-separated repo names or absolute paths to target. Omit for 'run'/'retest' to target the whole workspace.
stageNo'fast' -> `pre-commit run --hook-stage pre-commit` (formatters/linters, no network/tests). 'heavy' -> `--hook-stage pre-push` (pytest, cargo, `uv lock --check`, ...). For 'run'/'retest'.fast
startNoFor 'phase_direction_here': directory to resolve the repository from (default: this process's current working directory).
top_nNo'profile' with no job_id/repo: how many slowest hooks to report fleet-wide.
job_idNoTarget one gate job for 'status'/'explain'/'profile'.
dry_runNoFor 'xdist_apply': report what would change without writing. Defaults to True on purpose -- rewriting ~40 repositories' pre-commit configs must be an explicit choice, never the consequence of omitting an argument.
summaryNo'status': compact roll-up (counts + failed set) vs the full per-job detail.
threadsNoParallel workers.
timeoutNoPer-repo pre-commit timeout in seconds.
escalateNo'retest' only: when a repo's narrowed retest passes every requested hook, also submit a SECOND job for that repo's full wave (a narrowed pass alone is never sufficient evidence of shippability -- see gate_ledger.is_shippable).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.1

TDQS

C2.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false, so the agent already knows this is a mutating, non-idempotent, non-destructive local operation. The description adds useful context about what 'running' actually means (executing pre-commit hooks, and that heavy pulls in pytest/cargo/uv lock --check), which implies cost/latency. It does not, however, cover permissions, side effects on the repo, or what a partial/failed run leaves behind.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is two short paragraphs and front-loads the run/inspect purpose reasonably. But the first sentence 'Phase direction here (rm_gates)' is pure filler that restates the name, and the description never touches the multi-mode operation model that its own schema alludes to. Some waste, but not bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 parameters, an output schema, and annotations, the structured fields carry most of the load, and the description covers the fast/heavy dimension adequately. But it is silent on the multiple operations referenced only inside parameter descriptions ('status', 'explain', 'profile', 'run', 'retest', 'audit_fail_fast', 'xdist_apply', 'phase_direction_here') with no visible mode selector in the schema, leaving the agent unable to tell how the tool's behavior is chosen.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 12 parameters, including the fast/heavy stage mapping. The description's stage explanation largely duplicates the schema's own enum description ('fast' -> pre-commit run --hook-stage pre-commit, 'heavy' -> --hook-stage pre-push), adding no syntax or format detail beyond it. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The second sentence does state a concrete verb+resource: running and inspecting the two-tier (fast/heavy) pre-commit gate across repos. However, the opening clause 'Phase direction here (rm_gates)' is a bare restatement of the placeholder name/title and adds no meaning. It never clearly distinguishes itself from the many gate siblings (rm_gates_run, rm_gates_status, rm_gates_explain, rm_gates_profile) even though its own schema references modes like 'status'/'explain'/'profile'/'run'/'retest' that appear to belong to those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is the vague claim that this is 'the single tool that can actually drive both tiers of the two-tier gate model', with no condition stated for when to pick it over rm_gates_run/rm_gates_retest/rm_gates_status. There is no when-to-use, when-not-to-use, or prerequisite guidance for a tool that executes hooks. The stage fast/heavy explanation is parameter guidance, not tool-selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools