Skip to main content
Glama

ai_search_npm

ai_search_npm

Search for NPM packages and documentation to find relevant JavaScript libraries and tools for development projects.

Instructions

📦 NPM包搜索 - 搜索NPM包和相关文档

【重要】此工具会返回NPM搜索URL,Claude Code应该使用WebFetch工具访问该URL以获取真实搜索结果。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
sizeNo
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: the tool returns URLs rather than direct search results, and requires a secondary tool (WebFetch) to get actual content. This is valuable context about the tool's output format and workflow requirements that isn't obvious from the schema alone.

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?

The description is extremely concise and front-loaded with essential information. The first sentence states the purpose, the second provides critical usage guidance. Every sentence earns its place, with no wasted words or redundant information.

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 search tool with no annotations and no output schema, the description provides good workflow guidance but lacks parameter details. It explains what the tool does and how to use its output, but doesn't cover what the parameters mean or what the return format looks like beyond 'NPM search URL'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It provides no information about the 'query' or 'size' parameters beyond what the schema indicates (string and number types). The description doesn't explain what the query should contain, what 'size' controls, or any parameter constraints or examples.

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 clearly states the tool searches for NPM packages and related documentation ('搜索NPM包和相关文档'), providing a specific verb and resource. However, it doesn't explicitly differentiate from sibling tools like ai_search_github or ai_search_web, which likely search different platforms.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: it states the tool returns NPM search URLs and instructs Claude Code to use WebFetch to access the actual results. This clearly indicates when to use this tool (for NPM searches) and what to do with its output, distinguishing it from direct web search tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaobenyang-com/smart-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server