Skip to main content
Glama

Run Discovered Nix Operation

command
Destructive

Execute a discovered non-interactive installed Nix operation, validating options against the runtime catalog and effect policy.

Instructions

Execute a non-interactive installed Nix operation returned by discover. Options are validated against the runtime command catalog and effect policy.

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": {
      "operationId": "<operationId>"
    },
    "name": "command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
optionsNo
operationIdYes
positionalsNo
timeoutSecondsNo

Output Schema

NameRequiredDescriptionDefault
runIdYes
statusYes
outputsYes
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Adds real context beyond the annotations: options are validated against a runtime command catalog and an effect policy, which tells the agent invalid options may be rejected. However, with destructiveHint=true and openWorldHint=true already declared, it says nothing about what side effects occur, whether execution is reversible, or how the effect policy constrains a call.

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, front-loaded with the core action and its prerequisite, with no filler. The validation clause is the only extra and it earns its place by warning about option rejection at call time.

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?

Given a declared operationId prerequisite, an output schema that removes the need to describe return values, and annotations covering safety, this is close to complete. The main shortfall is that a destructive, policy-constrained executor should say more about failure modes and what the effect policy can block.

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?

This description is not about parameters; it is about the semantic meaning of the operation. The 'options' bag is explained as being validated against a runtime command catalog and effect policy, which is meaningful guidance for a free-form nested object. Still, operationId, positionals, and timeoutSeconds remain undocumented at only 20% schema coverage.

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?

States a specific verb ('Execute') and resource ('a non-interactive installed Nix operation returned by discover'), and ties itself to the discover tool as the source of operationIds. It does not differentiate from other execution-flavored siblings like run, build, check, or develop, so it falls short of full sibling disambiguation.

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 description implies when to use it: after discover, and only for non-interactive installed operations. It gives no explicit when-not guidance or comparison to run/build/develop, and the restriction to non-interactive operations is stated but never explained in terms of consequences.

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