Skip to main content
Glama

Inspect Nix Workspace

workspace_inspect
Idempotent

Inspect a Nix repository to detect its flake, outputs, Nix version, deployment adapters, and recommended next tool, helping agents choose the right action.

Instructions

Start here in a Nix repository. Detect the flake, outputs, Nix version, deployment adapters, and the most useful next tool.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
includeOutputsNo

Output Schema

NameRequiredDescriptionDefault
rootYes
hasLockYes
outputsYes
systemsYes
hasFlakeYes
nixVersionYes
workspaceIdYes
catalogSourceYes
commonTargetsYes
catalogWarningNo
inspectionRunIdYes
recommendedToolsYes
deploymentAdaptersYes

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, and the description usefully enumerates what is discovered. However, it leaves an unresolved tension: an 'inspect' tool is annotated readOnlyHint=false, and the description never explains what non-read-only side effects are possible (network fetch, cache/state writes) despite 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.

Conciseness4/5

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

Two tight sentences with the routing instruction front-loaded and no filler. Slight cost: the second sentence is a bare list, so the reader must infer how the detections relate to the next-tool recommendation.

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?

An output schema exists, so return details need not be described, and the description covers purpose and sequencing for a zero-required-parameter discovery tool. Only the non-read-only side effects and cost of the call are left unaddressed.

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?

Two optional parameters at 50% coverage; 'cwd' is documented in the schema, while 'includeOutputs' remains undocumented except for an indirect echo in 'Detect the flake, outputs'. The description hints at what outputs means but adds no formatting or scope detail beyond the schema default.

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?

Specific verb set ('Detect the flake, outputs, Nix version, deployment adapters') applied to a clear resource (a Nix repository/workspace), plus an explicit entry-point role ('Start here'). It separates itself from inspection siblings by positioning as the first call that recommends a next tool, though it never names an alternative tool.

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?

'Start here in a Nix repository' is an explicit when-to-use trigger and 'the most useful next tool' tells the agent this call routes onward. It stops short of stating when NOT to use it (e.g., if the flake shape is already known, call flake_inspect directly).

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