Skip to main content
Glama

Inspect Nix MCP Run

run_inspect
Read-onlyIdempotent

Read status, diagnostics, or bounded stdout/stderr from an earlier MCP run to inspect results and troubleshoot failures.

Instructions

Read status, extracted diagnostics, or bounded stdout/stderr from an earlier MCP run. Use nix log through command for unrelated derivations.

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": {
      "runId": "<runId>"
    },
    "name": "run_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
grepNo
headNo
tailNo
viewNosummary
runIdYes
contextNo

Output Schema

NameRequiredDescriptionDefault
textYes
runIdYes
statusYes
summaryYes
exitCodeYes
operationYes
resourcesYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the read-only, idempotent, non-destructive profile, so the bar is lower. The description still adds two real behavioral facts beyond them: only runs previously executed by this MCP server are inspectable, and stdout/stderr are returned bounded rather than in full — both affect how an agent should plan its read.

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 sentences, no filler: the capability leads and the sibling routing follows. Every clause carries information an agent needs before calling.

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 values need no prose, and the annotations cover the safety profile. The gap is on the input side — for a six-parameter tool with zero schema descriptions, the filtering and truncation parameters go unexplained, which is the main thing an agent could get wrong here.

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 0%, so the description must carry parameter meaning, and it only partially does: the enumerated values of `view` map onto 'status, extracted diagnostics, or bounded stdout/stderr', and 'bounded' hints at the length controls. Nothing explains `grep`, `context`, or how `head`/`tail` interact, leaving the highest-value parameters undocumented in both places.

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

Purpose5/5

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

Names a specific verb (read) and resource (an earlier MCP run) plus the three payload classes it can return: status, extracted diagnostics, bounded stdout/stderr. It also separates itself from the command sibling by routing unrelated derivations to `nix log` through `command`, so the agent can pick it apart from `run` and `command` without opening schemas.

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?

Gives an explicit exclusion: for unrelated derivations use `nix log` via the `command` tool, which is the key routing decision. It stops short of saying when to prefer `view=summary` versus `diagnostics` or when to add `grep`/`head`/`tail`, so selection among its own modes is left implicit.

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