Skip to main content
Glama

Build Nix Installables

build
Idempotent

Compiles Nix packages, NixOS systems, checks, or store paths, returning output paths and a durable run ID for diagnostics.

Instructions

Build one or more packages, NixOS systems, checks, or store paths. Returns output paths and a durable run ID for diagnostics.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
jsonNo
coresNo
dryRunNo
impureNo
noLinkNo
systemNo
maxJobsNo
offlineNo
outLinkNo
rebuildNo
refreshNo
buildersNo
showTraceNo
installablesNo
printOutPathsNo
overrideInputsNo
printBuildLogsNo
timeoutSecondsNo
acceptFlakeConfigNo

Output Schema

NameRequiredDescriptionDefault
runIdYes
statusYes
outputsYes
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds that results include output paths and a durable run ID usable for later diagnostics, which is genuine added context. It says nothing about the 30-minute default timeout, dryRun behavior, or local-store side effects (outLink/noLink), which matter for a build operation.

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?

Two sentences, zero filler, with the capability statement front-loaded and the return-value statement second. Nothing is redundant or padded.

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?

For a 20-parameter build tool with 5% schema coverage, the description is far too thin; it omits dry-run semantics, timeout behavior, flake/config options, and store-path output side effects. The output schema does cover return values, so restating them is not required, but the input-side guidance is essentially absent.

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?

Schema description coverage is 5% across 20 parameters, so nearly every parameter (dryRun, impure, noLink, outLink, maxJobs, overrideInputs, acceptFlakeConfig, timeoutSeconds) is undocumented. The description supplies no parameter-level meaning at all, so it does not compensate for the coverage gap.

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 opens with a concrete verb and enumerates the resource types it accepts (packages, NixOS systems, checks, store paths), which lets an agent distinguish it from evaluate/inspect siblings. It does not address the boundary with the `check` or `run` siblings, even though it claims to build 'checks', leaving ambiguity about which tool to pick for validation.

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 named alternative among the many siblings. An agent must infer from the tool name alone whether to choose build versus check, eval, or run.

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