search_packages
Search for a package on PyPI or npm to retrieve metadata including version, description, license, homepage, and GitHub URL.
Instructions
Search for a package on PyPI or npm (not GitHub — does not use GitHub API or rate limits). PyPI: exact-match lookup returning version, description, license, homepage, and GitHub URL. npm: text search returning multiple results with links. Use for looking up package metadata and versions — chain with search_repos to explore the source repository.
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": "search_packages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name to search for. | |
| ecosystem | No | Package registry: pypi or npm. | pypi |
| limit | No | Max results (npm only; PyPI returns exact match). |