Skip to main content
Glama

npm_downloads

Read-only

$0.09 via x402: download counts for any npm package over the last day/week/month. Live from the npm registry stats API.

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

Input Schema

NameRequiredDescriptionDefault
periodNolast-day|last-week|last-month
packageYesnpm package name, for example react
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / package / description
      Added value: +"npm package name, for example react"
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, covering the safety and external-access profile. The description adds useful behavioral context: this is a paid x402 call costing $0.09 and returns live npm registry statistics rather than cached data. It does not cover rate limits, error behavior, or the full payment handshake, so it is strong but not exhaustive.

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?

The description is one compact sentence that front-loads the price and then states the resource, time scope, and data freshness. Every clause contributes useful information, and there is no redundant wording.

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?

For a low-complexity three-parameter read tool with full schema coverage and no output schema, the description is complete enough: it identifies the payment model, package scope, time windows, and live source. Detailed payment terms are appropriately left to the x_payment schema field rather than repeated in the description.

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%, including descriptions for period, package, and x_payment, so the schema already carries the parameter semantics. The description restates the period granularity and 'any npm package' scope but adds no syntax, defaults, or payment-payload meaning beyond what the schema provides. Baseline 3 is appropriate.

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?

The description states a specific verb and resource: 'download counts for any npm package', with the bounded scope 'last day/week/month'. It also identifies the live npm registry stats API as the source, so an agent can immediately tell this is a read-only npm metrics tool. The sibling names provided are unrelated, so no sibling differentiation is possible, but the purpose itself is unambiguous.

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?

The description implies usage for retrieving npm package download counts, but gives no explicit when-to-use, when-not-to-use, or alternative guidance. The paid x402 flow is hinted by '$0.09 via x402', though the first-call terms behavior is only described in the schema's x_payment field. This is adequate implied usage rather than clear 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.