Skip to main content
Glama

Agent Data Tools: Everyday data

npm package downloads

npm_downloads

Download counts of an npm package for the last day, week and month, from the official npm registry API. Use to judge how widely a dependency is used. Example: package=hono. Price $0.003/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only; not marked read-only because each call is charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageYesPackage name, e.g. react or @scope/name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses pricing ($0.003/call via x402 USDC or card key, first 25 free, failed calls free) and explicitly reconciles the counterintuitive readOnlyHint=false by explaining the call is charged even though it 'reads or computes only'. That is exactly the kind of context annotations cannot carry.

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 purpose, then usage, then pricing/auth caveats — no sentence is wasted. The 'Example: package=hono' fragment is mildly redundant with the schema's own example, keeping it just under top marks.

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?

No output schema exists, and the description does convey the returned shape (counts for day/week/month) plus auth and billing prerequisites. It omits any mention of error/rate-limit behavior, but for a single-parameter read tool this is close to complete.

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% and the single parameter is already documented with a format example in the schema ('react or @scope/name'). The description's 'Example: package=hono' adds a concrete case but no new syntax or constraint, so the baseline 3 applies.

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 (download counts of an npm package), the exact time granularities returned (last day, week, month), and the data source (official npm registry API). The 'npm' qualifier cleanly separates it from the sibling pypi tool without needing to name it.

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 to judge how widely a dependency is used' gives a clear context for when to reach for it, and the npm scope implicitly routes Python-package lookups elsewhere. It stops short of naming the pypi sibling as the explicit alternative, so it is clear-but-not-exhaustive.

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.