Skip to main content
Glama

Groundsocial

Search npm

npm_search_all
Read-onlyIdempotent

Search npm packages, with downloads and scores.

Search the npm registry. q takes npm’s qualifiers (keywords:, author:, maintainer:, scope:, not:unstable, is:unstable). Each object has the package (name, version, description, date, links, publisher), weekly and monthly downloads, dependents and scores. page is 1-based, limit up to 100 (default 20). since/until filter on the latest publish date.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "q": "<q>"
    },
    "name": "npm_search_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch terms.
pageNoPage number, 1 to 100. Defaults to 1.
limitNoPackages per page, 1 to 100. Defaults to 20.
sinceNoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp.
untilNoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the safety profile needs no repeating. The description goes further by disclosing the cost model (1 credit per call, auto-refunded on failure), the public-data-only constraint, and the fact that results carry cost_credits and credits_remaining — meaningful operational context an agent cannot get from annotations.

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

Conciseness4/5

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

Front-loaded and dense: purpose first, then query grammar, then pagination, then date scoping, then cost. The opening two sentences slightly overlap ("Search npm packages..." / "Search the npm registry") and the cost note could be folded in, but nothing is genuinely wasteful.

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 carries the burden of describing returns and does so by enumerating the per-object fields (package name, version, description, date, links, publisher, downloads, dependents, scores) plus the cost metadata. Pagination bounds and date semantics are covered, leaving only minor gaps such as sort order and total-result-count behavior.

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 the baseline is 3, but the description earns more by explaining that q accepts npm's qualifier syntax (keywords:, author:, not:unstable, is:unstable) — real meaning beyond the schema's terse "Search terms." It also clarifies that page is 1-based and that since/until filter on the latest publish date rather than any date field.

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 names a specific verb and resource ("Search npm packages"/"Search the npm registry") and adds what comes back (downloads, scores). It is clearly distinguishable from npm_package_get in spirit, but it never explicitly contrasts itself with that sibling, so it falls short of 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?

Usage context is implied through the query grammar (keywords:, author:, maintainer:, scope:, not:unstable) and the date filters, which tells an agent roughly what this tool is for. However, there is no explicit when-to-use vs. when-not-to-use guidance, and no routing to npm_package_get for single-package lookups.

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.