Skip to main content
Glama

Packagist PHP Composer Ecosystem MCP

Search Packagist PHP packages

search_packages
Read-onlyIdempotent

Search PHP packages on Packagist by keyword, optional tag, or package type.

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
tagsNoOptional Packagist tag filter (e.g. "psr-7", "symfony").
typeNoOptional Composer package type (e.g. "library", "symfony-bundle").
limitNoMaximum packages to return (default 10).
queryYesSearch query (e.g. "laravel", "http client", "pdf").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety and scope are covered. The description adds almost nothing beyond that: no result ordering, no statement about how the limit interacts with truncated result sets, and no note on empty-result behavior for a query against an external registry.

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?

A single front-loaded sentence with no filler; the search dimensions are stated up front. It is efficient but so terse that it borders on under-specification rather than trimming excess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter search tool with full schema coverage and no output schema, the essentials are present. However, nothing explains what a result entry contains or how tag/type filters combine with the query, which an agent needs to use the filters confidently.

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 four parameters (query, tags, type, limit) are already documented with examples and bounds in the schema. The description restates three of them without adding syntax or matching semantics beyond what the schema says, so the baseline 3 applies.

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 gives a specific verb and resource ("Search PHP packages on Packagist") plus the three search axes: keyword, tag, and type. It is clearly distinct from lookup siblings like get_package_metadata or get_package_downloads, though it never names an alternative explicitly.

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 by the phrase "by keyword, optional tag, or package type" - an agent can infer it is the discovery tool. There is no explicit when-to-use, no when-not-to-use, and no routing to siblings such as get_popular_packages for browsing popular packages.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.