Skip to main content
Glama

Search Nix Packages

search
Idempotent

Search nixpkgs or another flake for packages by query. Returns matching results in JSON so agents can locate package names before inspecting outputs or building.

Instructions

Search nixpkgs or another flake for packages. Use flake_inspect to list a project's complete output tree.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory under an MCP workspace root.
jsonNo
queryYes
flakeRefNonixpkgs
timeoutSecondsNo

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 already declare openWorldHint=true, idempotent=true, and readOnlyHint=false, which is the surprising part: a 'search' that is not read-only implies network fetching or store writes. The description never explains that, nor the 1800-second default timeout (up to 86400), nor any result limits or caching. Beyond annotations it adds essentially no behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Two sentences, front-loaded, with no filler wording. However, the brevity is under-specification rather than economy: the second sentence spends its space on a sibling pointer while core invocation details for four undocumented parameters are omitted.

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 no explanation. But for a five-parameter, open-world, non-read-only tool with 20% schema coverage and a 30-minute default timeout, the description omits too much: no query semantics, no flake reference format, no timeout or side-effect guidance.

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 only 20%: query, flakeRef, json, and timeoutSeconds carry no schema descriptions. The description only implies flakeRef by mentioning 'nixpkgs or another flake' and says nothing about what query matches, what the json flag toggles, or why the timeout is so large. With low coverage the description should 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?

States a specific verb and resource: 'Search nixpkgs or another flake for packages.' It also names a sibling (flake_inspect) and what that sibling does instead, so an agent can separate the two without opening schemas. It stops short of saying what fields the query matches against (name, attribute path, description), which keeps it from a 5.

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?

There is one explicit routing statement: use flake_inspect for a project's complete output tree. That is a useful boundary, but it only covers one neighboring task; there is no guidance on when this search is preferable to other lookup approaches, or on prerequisites such as whether the flake must be reachable or already fetched.

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