Skip to main content
Glama

PyPI Package Metadata & Releases MCP

Get PyPI download statistics

get_download_stats
Read-onlyIdempotent

Fetch recent last-day, last-week, and last-month download counts for a Python package from pypistats.org.

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_name": "<package_name>"
    },
    "name": "get_download_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
package_nameYesPyPI package name (e.g. "requests", "urllib3", "boto3").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds real value by disclosing the upstream source (pypistats.org, which explains the open-world nature) and the three aggregation windows returned, but says nothing about data freshness lag, rate limits, or what happens for a nonexistent package.

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?

A single front-loaded sentence with zero filler; the resource, the time windows, and the source all appear before anything else could be needed.

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?

With one simple parameter and no output schema, the description carries enough: it names the three count values that effectively constitute the response shape. Only the upstream failure/freshness behavior is left unstated, a minor gap for a read-only stats call.

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?

Only one parameter and the schema documents it at 100% coverage with examples. The description adds only the notion that the name is a Python package name, which the schema already conveys, so baseline 3 applies.

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?

States a specific verb ("Fetch"), a specific resource (last-day/week/month download counts), and the data source (pypistats.org). The resource is distinct enough from metadata/dependencies/release-history siblings that an agent can route correctly, though no sibling is named explicitly.

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 description makes clear you call this when you want download popularity figures, but it gives no explicit when-to-use framing, no exclusions, and no pointer to alternatives for related package questions.

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.