Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

get_dependencies

Read-onlyIdempotent

Retrieve a PHP package version's platform requirements, runtime dependencies, conflicts, replaces, and provides to check PHP compatibility or see what installation pulls in.

Instructions

Requirements of one package version: PHP version and extensions (platform), runtime packages (require), conflicts, replaces and provides; require-dev and suggestions with extended=true. Defaults to the latest stable release; pass a version such as '2.9.1' for another. Use it to check PHP compatibility or what installing a package pulls in.

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_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name as 'vendor/package'.
versionNoExact version, e.g. '3.8.0'. Omit for the latest stable.
extendedNoAlso return require-dev and suggest (can be long).

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 declare readOnly, openWorld and idempotent, so safety is covered. The description adds real behavioral context beyond that, specifying that the payload is scoped to a single version, that the version defaults to the latest stable release, and that extended=true widens the result to require-dev and suggestions.

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?

The field inventory is front-loaded, then defaults, then intended use, so the agent reads the return shape first. The middle clause is a dense semicolon list, but each item is a returned field and none is padding.

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 must carry the return shape and it does so by enumerating the requirement categories, which is what an agent needs to decide whether to call it. Minor gaps remain, such as behavior for an unknown package or version, but nothing essential to correct invocation is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining the version default and showing a concrete example value, and by tying extended=true to the specific extra sections it returns. That adds meaning over the schema's shorter phrasing.

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?

The description names a specific resource and scope: the requirements of one package version, enumerating the fields returned (platform, require, conflicts, replaces, provides, require-dev, suggest). That clearly separates it from listing or searching packages, though it never names a sibling tool explicitly.

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 two concrete use cases, checking PHP compatibility and seeing what installing a package pulls in, plus the default-to-latest-stable behavior and how to target another version. It stops short of an explicit exclusion naming an alternative such as get_package, so it is clear context rather than full routing guidance.

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