Skip to main content
Glama

Agent Data Hub

Package info: npm, PyPI or crates.io

ref_package
Read-onlyIdempotent

Look up one package on npm, PyPI or crates.io: latest version, description, license, homepage, source repository, last publish date, number of versions and dependencies, downloads (npm weekly / crates total+recent), deprecated or yanked flag, Node/Python version requirement. Use before adding a dependency or to check the newest version. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name, e.g. hono, requests, serde, @x402/core
registryNonpm (default), pypi or crates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the description needn't restate safety. It does add genuinely non-structured behavior: the per-call price, the payment rail (USDC on Base via x402), and the 10-free-calls-per-day quota — real invocation constraints an agent must know before calling. It doesn't mention failure modes for unknown packages, keeping it at 4.

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 verb and scope, then field inventory, then usage, then pricing — a sensible ordering with no filler. The returned-field enumeration is long but serves as a substitute for the absent output schema, so it earns its space.

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 compensates by listing what is returned per field. It also discloses cost and free-tier limits and the default registry behavior. Nothing an agent needs to decide or invoke correctly is missing.

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 description coverage is 100%, with both `name` (example package names) and `registry` (enum plus default npm) documented in the schema itself. The description adds a registry list but no syntax, normalization or default behavior beyond what the schema already supplies, so the baseline 3 is correct.

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 ('look up one package'), names the three registries it covers, and enumerates the returned fields (version, license, downloads, deprecation flag). An agent can distinguish this single-package lookup from the search-oriented sibling search_npm without opening the 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?

'Use before adding a dependency or to check the newest version' gives a concrete trigger and a task context. No explicit when-not or named alternative is provided (search_npm is not referenced), so this stops short of full routing guidance.

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