Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

list_packages

Read-onlyIdempotent

Filter PHP packages by vendor or Composer package type to survey a vendor's offerings, with repository URL and abandoned flag for each result.

Instructions

List package names by vendor ('symfony', 'laravel') or by Composer package type ('phpstan-extension', 'composer-plugin'), with repository URL and abandoned flag. Use it to survey a vendor's packages; for keyword discovery use search_packages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
typeNoComposer package type, e.g. 'phpstan-extension'.
limitNoMaximum packages returned.
vendorNoVendor prefix, e.g. 'monolog'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is settled; the description adds useful result-content detail (repository URL and abandoned flag) that no output schema provides. It stops short of explaining behavior when both filters are omitted or how the limit interacts with result sets, so it is strong but not complete.

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?

Two sentences: the first leads with capability plus return fields, the second handles routing. Every clause carries information and nothing is repeated.

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 three-parameter, all-optional read tool with no output schema, the description covers what it returns and when to prefer the sibling. The remaining gaps are minor: no statement on whether vendor and type can be combined or what an unfiltered call yields.

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 100% and each parameter is documented with its own description and example, so the baseline is 3. The description's example values ('symfony', 'laravel') echo the schema's intent without adding syntax, combination rules, or constraint meaning beyond what the schema already states.

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?

States a specific verb and resource ('List package names') plus the two axes it can be sliced on (vendor, Composer package type) and the fields returned (repository URL, abandoned flag). It also explicitly distinguishes itself from search_packages, so an agent can pick it without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use it to survey a vendor's packages; for keyword discovery use search_packages' gives an explicit condition for this tool and names the alternative with the condition that selects it. The routing decision is fully made in the description.

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