Skip to main content
Glama

Inspect Nix Derivation

derivation_inspect
Idempotent

Show the build recipe for an installable or .drv path, optionally including the recursive derivation graph.

Instructions

Show the build recipe for an installable or .drv path, optionally including the recursive derivation graph.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "installable": "<installable>"
    },
    "name": "derivation_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
recursiveNo
installableYes
timeoutSecondsNo

Output Schema

NameRequiredDescriptionDefault
runIdYes
statusYes
outputsYes
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotent, non-destructive, open-world behavior, so the description only needs to add context. It adds the recursive-graph scope but never mentions that installable resolution may evaluate/fetch from the network (consistent with openWorldHint and readOnlyHint=false) or that the default timeout is 1800s for a potentially long-running 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?

One front-loaded sentence with zero filler; the scope caveat is attached directly to the action rather than buried.

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

Completeness4/5

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

With an output schema present the description needn't explain return values, and it correctly frames the tool as returning a recipe. It is nearly complete for a four-parameter read-style tool, missing only timeout/network behavior.

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 only 25% — only cwd is documented. The description compensates for installable (accepts an installable or a .drv path) and recursive (recursive derivation graph), but says nothing about timeoutSeconds or accepted installable syntax, leaving a real 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?

A specific verb ("Show") paired with a specific resource ("build recipe") and explicit input forms ("an installable or .drv path"), which is more informative than the title alone. It does not name any sibling (build, closure_inspect, eval) to sharpen the boundary, so it stops short of a 5.

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?

The phrase "optionally including the recursive derivation graph" implies when to set recursive, but there is no guidance on when to inspect a derivation versus using build, eval, or closure_inspect. Usage is left to be inferred from the tool name.

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