Skip to main content
Glama

Pypi Stats Recent

pypi_stats_recent
Read-onlyIdempotent

Fetch total PyPI download count for a package over a recent period (day, week, or month). Returns a single aggregate count from pypistats.org.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "package": "requests"
    },
    "name": "pypi_stats_recent"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoday | week | month
packageYes

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNoResponse type
packageNoPackage name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description goes beyond them by disclosing the upstream data source and that the result is a single aggregate count rather than a time series. It omits what happens when 'period' is omitted (default behavior) and any rate-limit/latency context.

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?

Two front-loaded sentences with no filler: purpose and window first, return shape and source second. The day/week/month enumeration is slightly redundant with the period schema description, which is the only real inefficiency.

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-parameter read tool with an output schema and rich annotations, the description covers purpose, window options, data source, and aggregate return shape. The remaining gaps — default period when omitted and expected package-name format — are modest but real.

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 only 50%: 'period' has a description but no declared enum, and 'package' has no description at all. The description restates the period values 'day, week, or month', which usefully compensates for the missing enum, but it says nothing about package identifier format or validity, leaving half the parameter space undocumented.

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?

Names a specific verb and resource: 'Fetch total PyPI download count for a package over a recent period,' plus the data source (pypistats.org). An agent can tell what it returns. It does not explicitly distinguish itself from likely-related siblings such as python_major or python_minor, so it stops short of a 5.

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 parenthetical '(day, week, or month)' implies the use case of recent-window lookups, but there is no explicit when-to-use guidance, no when-not-to, and no named alternative for historical or version-specific statistics. Usage is inferable but not directed.

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.