Skip to main content
Glama

npm_search

Read-onlyIdempotent

Search the npm / public packages catalog by free text — public npm packages — slid-phi, spl-pay-per-suite, shard-zip, shard-tsdb, and pulsar. Read-only; returns matching entries with name, price, notes, and links. Use to find an entry by keyword; use npm_get when you already know the entry id.

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

Input Schema

NameRequiredDescriptionDefault
qNoFree-text query matched against entry id, name, notes, price, and URL. Omit or send an empty string to list every entry in the catalog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / q / description
      Added value: +"Free-text query matched against entry id, name, notes, price, and URL. Omit or send an empty string to list every entry in the catalog."
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds real value beyond them by disclosing the returned fields (name, price, notes, links), which matters given there is no output schema; it does not discuss result limits or ranking.

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?

The core guidance is front-loaded and short, but the mid-sentence appositive repeating "public npm packages" and the unexplained package-name list add noise without earning their place. Trimming that clause would sharpen the definition.

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?

For a one-parameter read-only search with rich annotations and full schema coverage, the description covers purpose, alternative, return shape and safety. Only result-set limits and ordering are unstated, which is a minor gap for this complexity level.

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 100% and the single parameter q is fully documented there, including the omit/empty-string-lists-all semantics. The description only restates "by free text" and does not specify matching behavior or ranking, so the baseline 3 applies.

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?

Names a specific verb ("Search") and resource ("npm / public packages catalog") and explicitly contrasts with the sibling npm_get. The inserted list of odd identifiers ("slid-phi, spl-pay-per-suite, shard-zip...") muddies rather than clarifies what the catalog actually contains, keeping it below 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit selection rule: use this to find an entry by keyword, use npm_get when the entry id is already known. That is a genuine when-to-use/when-to-use-alternative statement; it stops short of 5 only because nothing is said about the other *_search siblings or about combining with list-all behavior.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources