Skip to main content
Glama
Nativelink MCP Server

Nativelink MCP Server

Official
by TraceMachina

setup-watch-and-build

Automate Bazel builds and tests on file changes with Nativelink by configuring watch paths, exclusions, debounce timing, and optional iBazel intelligent watching.

Instructions

Set up automatic Bazel builds and tests on file changes with Nativelink

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "setup-watch-and-build"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandNoWhat to run on file changes (default: both)
targetsNoBazel targets to build/test (default: //...)
useIbazelNoUse iBazel for intelligent watching (recommended)
debounceMsNoMilliseconds to wait before rebuilding (100-10000, default: 1000)
watchPathsNoPaths/patterns to watch for changes
excludePathsNoPaths/patterns to exclude from watching

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It never says whether this starts a long-running background watcher, blocks the call, returns a handle that must later be stopped, or what permissions/environment it needs — all critical for a 'setup' tool that spawns a watch process.

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

Conciseness4/5

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

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is part of why behavior is under-explained.

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

Completeness2/5

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

With six optional parameters, no annotations, and no output schema, the description should explain lifecycle and return behavior for a watcher-setup tool. It does not, leaving the agent unable to know what happens after setup or how to stop/reconfigure it.

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%, with defaults, enum values and ranges all documented in the schema itself, so the baseline of 3 applies. The description adds no additional meaning about parameters (e.g. how targets interact with useIbazel or watchPaths).

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

Purpose4/5

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

The description gives a specific verb ('Set up') and resource ('automatic Bazel builds and tests on file changes'), which is clearly distinct from siblings like get-bazel-config or analyze-build-performance. It stops short of naming or contrasting an alternative, so it is clear but not fully differentiated.

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?

Usage is only implied by the phrase 'on file changes' — an agent can infer this is for continuous rebuild/watch workflows, but there is no explicit statement of when to prefer it over get-bazel-config or other siblings. No prerequisites, no when-not-to-use conditions.

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