Skip to main content
Glama

Lookup Kit

package_info

Read-only

npm, PyPI and crates.io package lookup: latest version, licence, downloads. Facts about an open-source package on npm, PyPI or crates.io: latest version, description, licence, homepage and repository, release date, dependency count and recent downloads. Price: $0.005 per call (x402, USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
nameYes
ecosystemYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 genuinely non-schema context: the $0.005 per-call price via x402/USDC on Base, plus a concrete list of what the call returns. It omits error behavior for unknown package names and any rate-limit or caching detail, keeping it below 5.

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

Conciseness3/5

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

The description is front-loaded and short in absolute terms, but two consecutive sentences restate the same framing — 'npm, PyPI and crates.io package lookup: latest version, licence, downloads' followed by 'Facts about an open-source package on npm, PyPI or crates.io: ...'. The second sentence supersedes the first, so roughly a sentence of the budget is wasted.

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 two-required-parameter, read-only lookup with no output schema, the description covers what the tool returns, which registries it spans, and the cost of calling it. The main remaining gap is behavior on a miss (package not found, or name valid in PyPI but not npm) and whether a specific version can be requested.

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%, so the description must carry the parameter burden. It partially does: naming npm, PyPI and crates.io makes the ecosystem enum values obvious (though the actual enum value is 'crates', not 'crates.io'). It says nothing about the name parameter's expected form, such as scoped npm names (@scope/pkg) or PyPI normalization, which the pattern would otherwise require the agent to infer.

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 resource (open-source package metadata) and the three ecosystems covered, then enumerates the returned facts: latest version, description, licence, homepage, repository, release date, dependency count, downloads. That is far more than a restatement of the name. It stops short of 5 because it never distinguishes itself from the closest sibling, github_repo, which also returns repo/package-style facts.

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 is only implied: the agent can infer it is the right tool when it needs registry facts for an npm/PyPI/crates package. There is no explicit when-to-use framing, no exclusion (e.g. 'use github_repo for GitHub repository data'), and no guidance for packages that exist in multiple registries.

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