Skip to main content
Glama

Inspect Nix Flake

flake_inspect
Idempotent

Inspect Nix flake outputs, locked inputs, revision metadata, or resolved details to understand dependencies and build context; evaluate one exact value separately.

Instructions

Inspect flake outputs, locked inputs, revision metadata, or resolved flake information. Use eval for one exact value.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
jsonNo
viewNoshow
offlineNo
flakeRefNo.
allSystemsNo
timeoutSecondsNo

Output Schema

NameRequiredDescriptionDefault
runIdYes
statusYes
outputsYes
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already say idempotent, non-destructive, and open-world, but the description adds nothing behavioral: it does not say that inspection may fetch from the network (which the offline parameter implies), that it can be long-running (default timeout 1800s), or what distinguishes show vs metadata vs info. Notably, readOnlyHint=false paired with destructiveHint=false is ambiguous and the description does nothing to clarify whether anything is written (e.g., lock file fetches).

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 with zero filler; the capability list is front-loaded and the sibling disambiguation follows immediately. Nothing is redundant with 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, so return-shape explanation is legitimately omitted, and the purpose sentence is adequate for selection. But for a 7-parameter tool with 14% schema coverage, a 30-minute default timeout, and an unexplained view enum, the description leaves too much for the agent to infer from an already sparse schema.

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 only 14% — solely cwd is documented — across 7 parameters. The description's mention of 'locked inputs, revision metadata, resolved flake information' gestures at the view enum but never maps those phrases to show/metadata/info, and it says nothing about flakeRef, offline, allSystems, or timeoutSeconds.

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?

Names a specific verb (Inspect) and resource (flake) and enumerates the facets covered: outputs, locked inputs, revision metadata, resolved flake information. It is clearly separable from eval, though it does not distinguish itself from the other inspect siblings (closure_inspect, derivation_inspect), which is acceptable since those target different resources.

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?

Provides one explicit routing rule: 'Use eval for one exact value,' which is a genuine alternative-plus-condition. However, there is no guidance on when to choose among the view modes (show/metadata/info), no mention of prerequisites, and no when-not conditions for the remaining alternatives.

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