Skip to main content
Glama

search_packages

Read-only

Package registry search (npm, crates, RubyGems, Packagist, NuGet, pub) — Search open-source package registries in one call: npm, crates.io (Rust), RubyGems, Packagist (PHP), NuGet (.NET) and pub.dev (Dart/Flutter). Returns name, latest version, description, downloads (with the registry's own period), license, last update, repository and registry URL for each hit, in each registry's relevance order, plus exact-name matches across ecosystems. Optional ecosystem= one or a comma list (npm, crates, rubygems, packagist, nuget, pub; default all) and limit= results per registry (default 5 across all, 10 for one; max 10/25). Registries that fail are listed in sourcesFailed. PyPI has no public search API (use /v1/dev/pypi for an exact name). Price: $0.003 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
qYeshttp client

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description goes well beyond them: per-registry result caps and defaults, relevance ordering, exact-name cross-ecosystem matches, the sourcesFailed field for partial failures, and a paid x402 pricing requirement. That pricing/auth detail is exactly the kind of behavioral fact an agent must know before calling.

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 with the purpose and registry list, then return shape, then parameters, then pricing — a sensible order. The single dense paragraph packs a lot in, though the parenthetical registry glosses repeat names already listed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 enumerates every returned field (name, version, description, downloads, license, update, repo, registry URL) and ordering, plus failure handling and cost. For a one-required-parameter read tool this covers everything an agent needs, aside from the schema/description parameter mismatch noted above.

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?

The description supplies real semantics the schema lacks — allowed ecosystem values, comma-list syntax, default-all behavior, and limit defaults/maxima per mode. However, ecosystem and limit do not appear in the input schema at all, and the sole schema property q is described only as 'http client', so the parameter story is internally inconsistent rather than fully clarifying.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search open-source package registries') and enumerates the six covered registries by name. It also carves out PyPI explicitly with the alternative endpoint, so an agent can distinguish this from generic web/search siblings without opening any schema.

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 clear operating context: default behavior (all ecosystems, 5 results per registry), narrowing via a comma list, and the PyPI workaround pointing to /v1/dev/pypi. It stops short of saying when to prefer this over search_web or the other search siblings, but the domain specificity makes the boundary reasonably obvious.

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