Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

audit_requirements

Read-onlyIdempotent

Check a composer.json or package-to-constraint map in one call for outdated, blocked, abandoned, and vulnerable dependencies, with problem packages listed first.

Instructions

Audit a project's dependencies in one call. Pass the text of a composer.json (or a mapping of package to constraint). For each package it reports the latest stable version, the newest version your constraint allows, whether an update is available or blocked by a major-version constraint, whether the package is abandoned (and its replacement), and known security advisories that affect the newest allowed version. Problem packages are listed first. Platform requirements (php, ext-*) are listed separately. Constraints with branches or aliases (dev-main, 'x as y') are not analysed. It reads constraints, not composer.lock, so installed versions may differ. Capped at 60 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": "audit_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_devNoAlso audit 'require-dev' from composer_json.
requirementsNoAlternative: {'vendor/package': 'constraint'}.
composer_jsonNoContents of a composer.json file, as text or a JSON object (reads 'require', and 'require-dev' if include_dev).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, yet the description adds substantial behavior beyond them: problem packages are listed first, platform requirements are separated out, branch/alias constraints are skipped, lock-file versions may differ, and results are capped at 60 packages. These are exactly the constraints an agent needs to interpret output and avoid surprises.

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?

Front-loaded with purpose, then input form, then a dense but ordered enumeration of outputs and caveats. Every sentence carries a distinct fact (advisories, abandonment, platform split, branch exclusion, lock-file caveat, 60-package cap); nothing is filler.

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 does the work of explaining return contents and ordering, plus limits and edge-case exclusions. The one remaining gap is the behavior when neither composer_json nor requirements is provided (both are optional), which is left unstated.

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 the schema already explains composer_json, requirements, and include_dev. The description restates the two input modes and adds the useful detail that require-dev is only read when include_dev is set, but it does not clarify mutual exclusivity or what happens if both (or neither) are supplied. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource+scope: 'Audit a project's dependencies in one call'. The enumeration of what is reported (latest stable, newest allowed, update blocked by major constraint, abandoned, advisories) makes it clearly distinct from siblings like get_dependencies and security_advisories without opening their schemas.

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?

Clearly states the input mode ('Pass the text of a composer.json (or a mapping of package to constraint)') and the operational caveat that it reads constraints, not composer.lock. It does not explicitly name when to prefer a sibling such as security_advisories or get_dependencies, so the when-not guidance is implied rather than stated.

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