Skip to main content
Glama

Packagist Search

packagist_search
Read-onlyIdempotent

Search the Packagist PHP/Composer registry by free text with optional type (e.g. library, symfony-bundle) and tag filters. Returns package names, descriptions, download counts, and latest versions.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "laravel orm"
    },
    "name": "packagist_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page
tagsNoComma-separated tags
typeNocomposer-plugin | library | symfony-bundle | wordpress-plugin | ...
queryYesFree-text, package name / description
per_pageNo1-15 (default 15, API max)

Output Schema

NameRequiredDescriptionDefault
nextNoURL for next page of results
totalNoTotal number of matching results
resultsNoArray of matching packages

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free-text — package name / description"New value: +"Free-text, package name / description"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety and external-registry profile is covered. The description adds the shape of the result payload (names, descriptions, download counts, latest versions), which is mild value given an output schema exists, but says nothing about pagination limits, result caps, or rate limits on the upstream registry.

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?

Two sentences, zero filler: the search surface and filters come first, the return payload second. Nothing is repeated or padded.

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 a full input schema, an output schema, and complete annotations, the description only needs to convey purpose and filtering, which it does. The one remaining gap is guidance on paging through or narrowing results, which matters for a search tool but is partly handled by the page/per_page schema fields.

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 every parameter (query, type, tags, page, per_page) is already documented with its format and constraints. The description only restates the filter concepts and gives type examples that duplicate the schema's own examples, 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 names a specific verb and resource ('Search the Packagist PHP/Composer registry') plus the two optional filter axes, which is enough to distinguish it from packagist_get_package and packagist_list_versions by operation type. It stops short of explicitly naming those siblings, so it lands at a clear-but-undifferentiated 4.

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: an agent can infer this is the discovery tool for finding packages by keyword rather than fetching a known package. There is no explicit statement of when to prefer this over packagist_get_package, nor any note about paging through results or when to stop.

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.