Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

search_packages

Read-onlyIdempotent

Search Packagist for PHP/Composer packages by keyword, then filter by package type or tags to compare names, descriptions, downloads, and abandoned status.

Instructions

Search Packagist for PHP/Composer packages by keyword. Returns name, short description, repository URL, total downloads, favourites and an abandoned flag (true, or the replacement package name), sorted by relevance. Optional filters: type (e.g. 'library', 'symfony-bundle', 'composer-plugin', 'wordpress-plugin') and tags. Use get_package for the full profile of one result.

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": {
      "query": "<query>"
    },
    "name": "search_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1.
tagsNoKeyword tag filter, e.g. 'psr-3'.
typeNoComposer package type filter, e.g. 'library' or 'symfony-bundle'.
queryYesSearch text, e.g. 'http client' or 'monolog'.
per_pageNoResults per page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world behavior, so the bar is lower. The description still adds real value by naming the returned fields, the relevance ordering, and the dual semantics of the abandoned flag (true or replacement package name) — a detail an agent could not infer from annotations or schema. It omits rate limits and pagination behavior, which the schema only partly covers.

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?

Three sentences, all front-loaded with purpose before the return-shape detail and the sibling pointer. Every sentence carries information, though the filter example lists duplicate what the schema already provides and could be trimmed.

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 carries the burden of describing returns and does so adequately (name, description, repo URL, downloads, favourites, abandoned). Pagination via page/per_page is only in the schema, and there's no note on result counts or empty-result behavior, which keeps it from a 5.

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 all five parameters (query, type, tags, page, per_page) are already documented with examples. The description's filter examples ('library', 'symfony-bundle', 'composer-plugin', 'wordpress-plugin') largely restate the schema's own examples. Baseline 3 applies since the schema does the heavy lifting.

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 ("Search Packagist for PHP/Composer packages by keyword") and immediately frames the scope as keyword search over a registry. The list of returned fields and the relevance sort make it distinguishable from profile-oriented siblings like get_package.

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?

Explicitly routes the agent: keyword search here, full profile via get_package. The 'optional filters' framing tells the agent filtering is available but not required. It doesn't contrast with list_packages or explain when keyword search is the wrong choice (e.g., exact-name lookup), so it stops short of full when/when-not coverage.

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