Skip to main content
Glama
zcag

npm-search-mcp

by zcag

search_packages

Search the npm registry for packages matching a query. Returns package details like name, description, version, and score to help find and compare options.

Instructions

Search the npm registry for packages matching a query. Returns name, description, version, score, and links. Use this to find packages for a specific task or compare options.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return (default 10, max 50)
queryYesSearch query (e.g. 'markdown parser', 'react state management')
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that this is a read-only search operation and enumerates the return fields, which is genuinely useful. However, it omits details like result ordering (by score? popularity?), pagination behavior beyond the limit param, or rate implications of querying the registry — modest but not rich behavioral disclosure.

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, both earning their place: the first states action + return format, the second gives usage guidance. Front-loaded with the core purpose, zero filler or redundant restatement of the tool name.

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 simple read-only search with fully-documented params, this is nearly complete. The explicit enumeration of return fields (name, description, version, score, links) compensates for the missing output schema. The only gaps: no mention of result ordering, and the limit cap (50) is only in the schema — but the description is adequate for the tool's low complexity.

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 coverage is 100% — both query and limit are documented with descriptions and constraints in the schema itself. The description's mention of 'matching a query' adds nothing beyond the schema's 'Search query (e.g. 'markdown parser'...)'. Baseline 3 is correct since the schema does the lifting and the description doesn't need to compensate.

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?

The description clearly states the verb ('Search'), resource ('npm registry'), and return payload (name, description, version, score, links). It's unambiguous what search_packages does. However, it doesn't explicitly differentiate from siblings (get_package, compare_packages) — the distinction is only implied by the tool name itself.

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 this to find packages for a specific task or compare options' gives explicit context for when to invoke this tool. It hints at the discovery-before-comparison workflow but doesn't state when NOT to use it (e.g., when you already know the exact package name and should use get_package instead).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zcag/npm-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server