Skip to main content
Glama
Nativelink MCP Server

Nativelink MCP Server

Official
by TraceMachina

analyze-build-performance

Analyze Bazel build metrics and profile data to identify bottlenecks and recommend optimizations for speed, cost, or balanced targets.

Instructions

Analyze build performance and provide optimization recommendations

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": "analyze-build-performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricsNoBuild metrics
profileDataNoBazel profile JSON data
targetOptimizationNoOptimization target

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and falls well short. It does not say what analysis is performed, whether 'metrics' or 'profileData' is effectively mandatory given zero required parameters, whether any side effects occur, or what form the recommendations take.

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 short sentence with the action front-loaded and no filler. It is efficient rather than padded, though its brevity reflects under-specification rather than disciplined editing.

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

Completeness1/5

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

The tool takes a nested metrics object, a free-form Bazel profile string, and an optimization target, with no annotations and no output schema. Given that complexity, the description should at minimum explain what combination of inputs is expected and roughly what is returned, and it explains none of 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%, so the baseline of 3 applies: every parameter, including the nested metrics fields and the speed/cost/balanced enum, is already documented in the schema. The description adds no meaning beyond that, but the schema does the heavy lifting.

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 pairs a specific verb ('Analyze') with a specific resource ('build performance') and adds the outcome ('optimization recommendations'). This is distinguishable from siblings like get-bazel-config or generate-deployment-config, though it never states what inputs the analysis consumes or what scope of build it covers.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives or exclusions. An agent cannot tell whether this should be called before setup-watch-and-build, after a failed build, or only when profiling data is already available.

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