Skip to main content
Glama

Recent

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.

Input Schema

NameRequiredDescriptionDefault
periodNoday | week | month
packageYes

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNoResponse type
packageNoPackage name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "package": "requests"
      +  },
      +  {
      +    "package": "numpy",
      +    "period": "month"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "properties": {
      +        "last_day": {
      +          "description": "Downloads in last day",
      +          "type": "integer"
      +        },
      +        "last_month": {
      +          "description": "Downloads in last month",
      +          "type": "integer"
      +        },
      +        "last_week": {
      +          "description": "Downloads in last week",
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "package": {
      +      "description": "Package name",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Response type",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. Description adds that it queries pypistats.org and returns a single aggregate count, providing useful external context.

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?

Single sentence of 22 words, front-loaded with verb and resource. No wasted words.

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 an output schema present, description need not detail return structure. It states returns a single aggregate count, which suffices. No mention of errors or limits, but acceptable for this low-complexity tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 50% description coverage (period gets a description, package does not). Description adds meaning for 'package' by stating it fetches count for a package, and clarifies period values as day, week, month. This compensates for schema gaps.

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?

Description specifies verb 'fetch', resource 'total PyPI download count for a package', and scope 'over a recent period (day, week, or month)'. Clearly distinguishes from siblings like 'overall' which likely covers all-time data.

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?

Implies usage for recent period data but does not explicitly state when to use this vs alternatives, nor does it provide exclusions or prerequisites.

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.