Skip to main content
Glama
mcp-server-npm-registry

mcp-server-npm-registry

Search npm packages

search_packages
Read-onlyIdempotent

Search npm registry packages by keyword and qualifiers such as author, scope, keywords, and exclusions. Returns names, versions, descriptions, scores, links, and publish details.

Instructions

Search the npm registry for packages by keyword. Supports npm search qualifiers such as author:name, maintainer:name, scope:name, keywords:word, not:unstable and not:insecure. Returns name, version, description, keywords, last publish date, publisher, links and npm quality/popularity/maintenance scores (0 to 1).

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_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return (1-25). Default 10.
queryYesSearch text, e.g. "http client" or "keywords:typescript author:sindresorhus".
offsetNoNumber of results to skip for pagination. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructiveness, so safety is covered. The description adds behavior the annotations don't: the supported qualifier vocabulary, including negative filters like not:unstable and not:insecure, and the exact shape of a returned result including 0-to-1 quality scores.

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?

Three sentences: purpose, query capability, return shape. The most decision-relevant content (what it searches, how to qualify) is front-loaded and every sentence carries distinct information with no repetition of schema values.

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?

With no output schema, the description correctly takes on the job of describing return fields, and it does so. Pagination is left to the schema where it is already documented. Minor gaps remain: no mention of empty results, error behavior, or rate limiting for an open-world search.

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?

Schema coverage is 100%, so query, limit and offset are already documented with ranges and defaults. The description goes beyond that by enumerating qualifier forms (author:, maintainer:, scope:, keywords:, not:) that the schema only gestures at with a single example, which materially changes how an agent should phrase a query.

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?

"Search the npm registry for packages by keyword" gives a specific verb and resource, clearly distinct from sibling lookups like get_package_info or get_download_stats, which require a known package. It stops short of naming a sibling, but the search-vs-fetch distinction is implicit and clear.

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 you would use this to find packages by keyword, and it explains qualifier syntax that shapes how you search, but it never states when to prefer this over the sibling lookup tools or what to do once a result is found. Usage is inferable rather than stated.

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