Skip to main content
Glama

Inspect Nix Closure

closure_inspect
Idempotent

Measure Nix closure sizes, inspect references, explain dependency chains, or compare two closures to identify storage and dependency differences.

Instructions

Measure a closure, inspect references, explain a dependency chain, or compare two closures.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
runIdYes
statusYes
outputsYes
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations carry the safety profile (destructiveHint=false, idempotentHint=true) but notably set readOnlyHint=false for a tool whose name and description are entirely about inspecting, so the description should explain why inspection may write (e.g. evaluating or fetching store paths). It says nothing about cost of traversing large closures, auth or store access requirements, or what the output schema contains.

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?

A single front-loaded sentence with no filler. The comma-separated capability list is efficient, though it would be clearer if structured as a mode list or split into what is done versus how it is selected.

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?

An output schema exists, so return values need not be explained. However, a zero-parameter tool that advertises four different operations leaves the agent without any model of how the operation is chosen, what closure is targeted by default, or what the response of each variant looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema is empty with zero parameters, so there is no parameter semantics for the description to add; the baseline of 4 applies. The description's mention of four operations with no parameters to select among them is a gap, but it belongs to completeness rather than parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates four distinct capabilities (measure, inspect references, explain a dependency chain, compare two closures) over the object named by the title, 'Nix closure'. It never commits to a single verb+resource, and an agent cannot tell whether one call performs all four or whether some hidden mode chooses among them. It also does not distinguish this from sibling inspectors such as derivation_inspect or flake_inspect.

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 statement of when to reach for this tool rather than derivation_inspect, flake_inspect, or run_inspect, and no exclusions. The four listed operations read as a capability menu with no guidance on which one applies in a given situation.

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