audit_requirements
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
| Name | Required | Description | Default |
|---|---|---|---|
| include_dev | No | Also audit 'require-dev' from composer_json. | |
| requirements | No | Alternative: {'vendor/package': 'constraint'}. | |
| composer_json | No | Contents of a composer.json file, as text or a JSON object (reads 'require', and 'require-dev' if include_dev). |