search_packages
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
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. | |
| tags | No | Keyword tag filter, e.g. 'psr-3'. | |
| type | No | Composer package type filter, e.g. 'library' or 'symfony-bundle'. | |
| query | Yes | Search text, e.g. 'http client' or 'monolog'. | |
| per_page | No | Results per page. |