Skip to main content
Glama

Discover Nix Capability

discover
Read-onlyIdempotent

Finds a matching MCP tool or version-supported Nix operation for an intent; use it before running a command when no first-class tool fits.

Instructions

Find the best MCP tool or version-supported Nix operation for an intent. Use before command when no first-class tool fits.

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": {
      "query": "<query>"
    },
    "name": "discover"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
queryYes
matchesYes
workflowYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety behavior needs no restatement. The description adds that results are version-aware and that this should precede command, which is useful, but it never says what the result looks like structurally or whether multiple candidates are ranked.

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, with the routing rule front-loaded after the purpose statement. Every clause carries information an agent would otherwise have to guess.

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-value explanation is correctly omitted, and the routing guidance is adequate. However, for a 2-parameter tool with zero schema documentation, leaving the query format unspecified is a real gap an agent could get wrong on the first call.

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 0% and the description says nothing about either parameter. The critical ambiguity is whether "query" is free-text intent, a tool name, or a Nix expression, and "limit" (default 8, max 20) is unexplained. With no schema documentation, the description needed to compensate and does not.

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?

"Find the best MCP tool or version-supported Nix operation for an intent" states a specific verb (find) and a specific resource (tool or Nix operation), and frames the tool as a router rather than an executor. It is distinguishable from siblings like build or eval because it returns a recommendation, not an action. The phrasing "version-supported Nix operation" is slightly dense but still concrete.

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?

"Use before command when no first-class tool fits" gives an explicit ordering rule and names the fallback sibling, which is exactly the routing decision an agent needs. It does not enumerate when-not to use discover (e.g., when a known tool name is already in hand), so it stops short of full coverage.

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