Skip to main content
Glama

bazel_build

Compile and test software using Bazel build system. Execute build targets with custom flags and retrieve output, errors, and exit status.

Instructions

Run a Bazel build and return stdout, stderr, and exit code.

options are passed as extra bazel flags (e.g. --config=ci, -c opt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetsYes
optionsNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Annotations provide basic info (not read-only, destructive, or idempotent), but the description adds no behavioral context beyond the build action. It does not disclose side effects like file system changes, concurrency, or required permissions, which are important for a build tool with openWorldHint true.

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

Conciseness5/5

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

The description is concise with two sentences, front-loading the core purpose. Every sentence adds value without unnecessary words.

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?

The description covers return values but lacks details on side effects, failure behavior, or prerequisites. Given the complexity (3 parameters, output schema exists), it is adequate but not comprehensive.

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

Parameters2/5

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

The description explains the 'options' parameter ('extra bazel flags') but does not mention 'targets' or 'timeout'. With schema description coverage at 0%, the description insufficiently compensates, leaving key parameters undocumented.

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

Purpose5/5

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

The description clearly states the verb 'Run a Bazel build' and the resource, and specifies the return values (stdout, stderr, exit code). It distinguishes from siblings like 'bazel_test' by focusing on the build action.

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 description does not provide explicit guidance on when to use this tool versus alternatives (e.g., 'bazel_test', 'bazel_query'). It only describes what it does, missing context on prerequisites or when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/saeid-rez/bazel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server