Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

security_advisories

Read-onlyIdempotent

Check known security advisories for one or many PHP packages in one call; append a version to see which advisories affect that release and count the others.

Instructions

Known security advisories for one or many packages in one call (title, CVE, severity, affected version range, report date, link). Append '@version' to a package, e.g. 'monolog/monolog@2.9.0', and the advisories are split into those that affect that version and a count of others, using Composer's range syntax. Data comes from Packagist's advisory database (GitHub Security Advisories and FriendsOfPHP). An empty result means no known advisories, not proof of safety.

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

Input Schema

NameRequiredDescriptionDefault
packagesYesEntries like 'vendor/name' or 'vendor/name@1.2.3'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), so the description's job is added context, and it delivers: data provenance (Packagist, GitHub Advisories, FriendsOfPHP), the exact splitting behavior when '@version' is appended, and the important false-negative caveat that empty results do not prove safety.

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?

Three sentences, front-loaded with what the tool returns, then the version-matching mechanic, then provenance and the safety caveat. No filler and no repetition of annotation or schema content.

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?

With one parameter, no output schema, and thin annotations, the description carries the necessary burden by describing the effective return fields and the shape changes when a version is pinned. An agent can call it correctly and interpret results without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents the single array parameter at 100% coverage, but the description adds real meaning: the '@version' suffix convention, that Composer range syntax governs matching, and that results are partitioned into affecting versus non-affecting counts. Only the 100-item cap is left to the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (security advisories) with scope ('one or many packages in one call') and enumerates what comes back (title, CVE, severity, affected range, report date, link). It is unambiguous on its own, but never names or contrasts the closest sibling, audit_requirements, which an agent could reasonably confuse with a vulnerability lookup.

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

Usage Guidelines3/5

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

Usage is only implied: the 'one call' framing signals batching as the intended mode and the empty-result caveat hints at how to interpret output. There is no explicit when-to-use/when-not statement and no routing to audit_requirements or list_versions for version resolution.

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