Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

download_stats

Read-onlyIdempotent

Retrieve all-time, monthly, and daily download counts plus a time series for a PHP package, optionally filtered by version, to analyze adoption trends and release rollout.

Instructions

Download counts for a package: all-time, monthly and daily totals plus a time series. Series is for all versions, or one version if given, with daily or monthly points (most recent N). Useful for adoption trends and for how fast a new release is rolling out.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name as 'vendor/package'.
periodNoPoint granularity.monthly
pointsNoNumber of most recent points.
versionNoSingle version such as '3.13.0'; omit for all versions combined.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so safety is covered; the description instead adds the substantive detail that the series is scoped to all versions unless one is given, and that it returns the most recent N points at daily or monthly granularity. That return-shape disclosure matters because there is no output schema. It still says nothing about rate limits, data freshness, or what happens for an unknown package/version.

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 sentences, front-loaded with the resource and its outputs, followed by usage framing; nothing is wasted. The phrase 'most recent N' is a mild restatement of the schema's 'points' field but costs little.

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 no output schema, the description carries the burden of explaining returns, and it does so adequately by listing the totals and the time series shape. Missing pieces are secondary: no mention of error behavior for unknown packages or whether all-time totals are included when a version filter is applied.

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%, so name, period, points and version are already fully documented in the schema. The description restates the version/period/points behavior in prose ('one version if given, with daily or monthly points (most recent N)') but adds no new constraint, format, or edge-case meaning beyond it. 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?

The description names a specific verb and resource ('Download counts for a package') and immediately enumerates what is returned: all-time, monthly and daily totals plus a time series. That is clearly distinct from sibling metadata tools like get_package or get_dependencies, so an agent can choose it without opening the schema.

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?

It supplies concrete use contexts: 'adoption trends' and 'how fast a new release is rolling out', which is exactly the decision signal an agent needs. It does not name an alternative tool or state when not to use it, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.