Skip to main content
Glama

Check Nix Flake

check
Idempotent

Validate Nix flake outputs and run repository-wide quality gates; use for broad validation rather than a single focused build.

Instructions

Validate flake outputs and checks. Prefer this for repository-wide quality gates; use build for one focused output.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
coresNo
impureNo
systemNo
maxJobsNo
noBuildNo
offlineNo
refreshNo
buildersNo
flakeRefNo.
keepGoingNo
showTraceNo
allSystemsNo
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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, and openWorldHint=true, so the safety profile is covered structurally. The description adds the repository-wide vs. single-output scope distinction, but does not disclose that validation actually builds/evaluates every check derivation (arbitrary code execution, potentially long-running) nor anything about timeouts, offline behavior, or failure semantics.

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 short sentences, both front-loaded: capability first, routing second. No filler, no restatement of the name or title.

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 and annotations cover the safety profile, so return values and side-effect risk are not the description's job. However, for a 17-parameter, build-executing tool, the definition does not explain the parameters that most affect cost and correctness, which is a meaningful remaining gap.

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?

There are 17 parameters with only 6% schema description coverage, so the description carries the burden of explaining them — yet it mentions none of them. Terms like noBuild, impure, allSystems, keepGoing, overrideInputs, and timeoutSeconds materially change behavior and are left entirely to bare field names.

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 states a specific verb and resource ('Validate flake outputs and checks') and explicitly contrasts scope with the 'build' sibling. It is clear enough to disambiguate the two, though it does not differentiate from the many other siblings (eval, flake_inspect, syntax_check), leaving some ambiguity about what 'validate' covers.

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

Usage Guidelines4/5

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

'Prefer this for repository-wide quality gates' gives a concrete selection criterion, and 'use build for one focused output' names the alternative and its distinguishing condition. It stops short of stating when NOT to use this tool (e.g., for quick evaluation-only checks), but the core routing guidance is explicit.

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