Skip to main content
Glama
Knuckles-Team

Repository Manager

Request

rm_build_request

Request a repository build to deduplicate and cache artifacts in a shared, checksummed store, preventing redundant builds across lanes.

Instructions

Request (rm_build). Content-addressed build broker for ANY repository (CONCEPT:RM-TASK-LEDGER).

Keyed by (repo, tree-sha, feature-set, toolchain-fingerprint, target-triple). The DEDUP is the value: N lanes asking for the same build today each pay for a full cargo/pnpm build into their own target-isolated/node_modules — measured at 21.7 GB across 4 duplicate directories after pruning. This tool publishes named artifacts to a shared, checksummed cache instead.

Honest degradation: a dirty tree or an unfingerprintable toolchain BUILDS — it never serves a possibly-stale artifact and never silently skips the cache as though it were consulted.

Co-location: this tool always passes colocated=True to the underlying reservation, because being inside this pinned MCP server process IS the proof of same-node execution that a bare CLI invocation cannot provide — fcntl leases do not arbitrate across nodes, and the lease files live under an NFS-exported path. Route build requests through this tool rather than a bare local invocation when you are not certain you are on the pinned node.

Arbitration is advisory (D-CP-8): an agent running cargo build directly bypasses this broker entirely.

Input Schema

NameRequiredDescriptionDefault
keyNoA cache key, for status/artifacts/explain.
hostNoFor 'request': dispatch to this REGISTERED, authorized remote host (its rm_remote_workers 'register_worker' host_id) instead of building locally. Requires a clean local tree (its HEAD sha + origin are what gets staged and built remotely) and does not yet retrieve artifacts back — see the returned result's 'note'. Omit to build locally (the default, always colocated=True).
specNoWhich declared build spec to use (.buildcache.yaml). Defaults to the repo's first.
repo_pathNoAny working tree of the target repository. Defaults to the server's cwd.
keep_recentNoFor gc: always keep this many most-recent cache entries.
max_age_daysNoFor gc: reclaim cache entries older than this (subject to keep_recent).
wait_timeoutNoSeconds 'request' waits on an in-flight build of the same key before building anyway.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.1

TDQS

B3.1/5.0
Behavior4/5

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

With annotations declaring readOnlyHint=false, idempotentHint=false and destructiveHint=false, the description adds substantial non-duplicative context: honest degradation (a dirty tree or unfingerprintable toolchain always BUILDS, never serves a possibly-stale artifact, never silently skips the cache), the always-colocated=True invariant and why (fcntl leases don't arbitrate across nodes), and that arbitration is advisory (D-CP-8). It does not say what a gc-mode call destroys, which is the one behavioral gap given the max_age_days/keep_recent parameters in the schema.

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

Conciseness2/5

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

The purpose line is front-loaded and the bold headers give it shape, but the body is heavy with material that does not help an agent act: a measured '21.7 GB across 4 duplicate directories' anecdote, the CONCEPT:RM-TASK-LEDGER tag, and the spec-style 'D-CP-8' citation. Em-dash-laden prose inflates the size well past the information it carries, so few sentences earn their place.

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?

An output schema exists, so return values need not be explained, and the primary 'request' path plus its degradation and co-location invariants are covered. What is missing is the tool's own mode surface: the schema exposes gc/status/artifacts/explain parameters that the description never acknowledges, leaving the agent unable to tell whether to call this tool or rm_build_gc/rm_build_status/rm_build_artifacts/rm_build_explain.

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 seven parameters, making 3 the baseline. The description adds a conceptual gloss on the cache key — the (repo, tree-sha, feature-set, toolchain-fingerprint, target-triple) tuple — which is genuinely beyond the schema's terse 'A cache key, for status/artifacts/explain', but it does not attach that explanation to the `key` parameter explicitly and says nothing about wait_timeout, keep_recent or max_age_days.

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 description characterizes the tool as a 'content-addressed build broker' and explains the dedup payoff (publishing named artifacts to a shared checksummed cache instead of N lanes each paying for a full cargo/pnpm build), so the general intent is graspable. However, it never states the primary action as a verb, and the schema's own parameters ('for gc', 'for status/artifacts/explain') reveal this tool also serves GC and status/explain modes that the description never mentions or reconciles with the sibling tools rm_build_gc, rm_build_status, rm_build_artifacts and rm_build_explain. Purpose is therefore clear-ish but muddled about what the tool actually does and where it stops.

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

Usage Guidelines3/5

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

There is real guidance for one alternative: 'Route build requests through this tool rather than a bare local invocation when you are not certain you are on the pinned node,' plus the note that a direct `cargo build` bypasses the broker. But the far more decision-relevant routing — this tool vs the four rm_build_* siblings that appear to cover the gc/status/artifacts/explain parameters exposed here — is entirely absent, and no conditions are given for choosing the `host` remote-dispatch path beyond what the schema already says.

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