npm_search
Search npm packages by keyword to find relevant libraries and dependencies for your project.
Instructions
Search npm packages by keyword
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| size | No | Number of results |
Search npm packages by keyword to find relevant libraries and dependencies for your project.
Search npm packages by keyword
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| size | No | Number of results |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'Search' but doesn't describe what the search returns (e.g., list of packages with basic info), whether it's a read-only operation, any rate limits, or authentication needs. This leaves significant gaps in understanding the tool's behavior beyond the basic action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste—it directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a search tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the search results include (e.g., package names, versions, descriptions), how results are ordered, or any limitations (e.g., pagination). This leaves the agent with insufficient context to fully understand the tool's functionality.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, with clear documentation for both parameters (query and size). The description adds no additional meaning beyond what the schema provides, such as examples of search queries or context for the size parameter. Since the schema does the heavy lifting, the baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Search') and resource ('npm packages'), and specifies the search method ('by keyword'). However, it doesn't differentiate this search tool from potential sibling tools like npm_compare or npm_info, which might also involve searching or retrieving package information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like npm_info (for detailed package info) or npm_compare (for comparing packages). It lacks explicit context about use cases, exclusions, or prerequisites, leaving the agent to infer usage based on the name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofershap/mcp-server-npm'
If you have feedback or need assistance with the MCP directory API, please join our Discord server