Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

get_package

Read-onlyIdempotent

Retrieve a consolidated Composer package profile—including version, license, requirements, dependencies, downloads, and security advisories—in one call.

Instructions

One-call profile of a Composer package: description, latest stable version with release date and age in days, any newer pre-release, abandoned status (with replacement), licence, keywords, repository and support links, PHP/extension requirements, runtime dependencies, download totals (total/monthly/daily), version counts and security advisories (total, those affecting the latest stable release, and the most recent). Combines three Packagist endpoints and avoids the very large raw package document. Use list_versions for release history.

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": "get_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name as 'vendor/package', e.g. 'laravel/framework'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety and idempotency profile is covered structurally. The description adds genuine behavioral value by disclosing that it fans out to three Packagist endpoints and deliberately avoids the large raw package document, which explains cost and payload shape. It says nothing about rate limiting, caching, or what happens for an unknown/unpublished package name, which are the remaining behavioral questions for an open-world lookup.

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 core claim, followed by a routing hint. The long enumeration of returned fields is dense but each clause carries distinct information rather than repeating the name or title; it reads as a single run-on list that could be lightly grouped.

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?

There is no output schema, so the description carries the full burden of describing return values — and it does so exhaustively, down to download granularity and the three advisory breakdowns. Nothing an agent needs in order to decide to call it, or to interpret what comes back, is missing.

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?

There is a single required parameter and schema description coverage is 100%, with the schema already spelling out the 'vendor/package' format and giving 'laravel/framework' as an example. The description adds no extra semantics about the name argument, so the baseline of 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 opens with a concrete verb+resource ('One-call profile of a Composer package') and then enumerates exactly what the profile contains — version, release age, abandonment, licence, requirements, downloads, advisories. An agent can distinguish it from list_versions or download_stats without inspecting any 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 gives a clear use condition ('one-call profile', 'avoids the very large raw package document') and names one alternative explicitly: 'Use list_versions for release history.' It does not address overlap with the other siblings that surface subsets of this data (download_stats, security_advisories, get_dependencies), which would be the natural follow-on guidance, so it stops short of full when/when-not coverage.

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