Skip to main content
Glama

package registry

package_registry
Read-only

Package facts from crates.io (Rust), RubyGems, NuGet (.NET), Packagist (PHP), Hex (Elixir) and the Go module proxy: latest version, description, license, repository, downloads, publish dates and the install command. (npm and PyPI: /v1/package/info.) Costs $0.002 USDC per call (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": {
      "ecosystem": "<ecosystem>",
      "name": "<name>"
    },
    "name": "package_registry"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ecosystemYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds the genuinely useful pricing model ($0.002 USDC per call via x402), which an agent must know before calling. It does not mention rate limits, error behavior, or what happens on unknown ecosystems.

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 compact sentences with the covered-registry list and returned fields front-loaded, followed by the redirect and cost note. No filler or repetition 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?

There is no output schema, so the enumeration of returned fields does useful work, and the cost/redirect notes cover the main invocation risks. The remaining gap is the undocumented and un-enumerated 'ecosystem' value format, which an agent must guess.

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 0% for both parameters: 'ecosystem' and 'name' have no descriptions or enums. The description partially compensates by listing supported registries, but it never gives the accepted identifier spelling for 'ecosystem' (e.g., 'crates' vs 'crates.io'), and 'name' is entirely undocumented.

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+resource ('Package facts from...') and enumerates exactly which registries are covered and what fields are returned (latest version, license, repository, downloads, publish dates, install command). It also distinguishes itself from the npm/PyPI path, so an agent can tell it apart from siblings like package_info.

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?

The description explicitly routes npm and PyPI lookups to /v1/package/info, which is a clear when-not condition, and notes the per-call cost before invocation. However, it never names a sibling tool for the alternative path or states prerequisites (e.g., whether an x402 wallet/payment setup is required beforehand).

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