Skip to main content
Glama

Search npm for browser-suitable packages

search_packages
Read-onlyIdempotent

Search npm for a need (e.g. 'date picker', 'markdown parser') and annotate each result with browser readiness for direct UNPKG file lookup: browser-ready ESM, CommonJS-only, or unclear, with the entry file and size when known. Ranking is npm's relevance order; readiness is annotated, never hidden, so a CJS-only result is visible as such rather than silently dropped.

Input Schema

NameRequiredDescriptionDefault
limitNoResults to annotate. Defaults to 5.
queryYesWhat the package should do, e.g. 'confetti', 'sanitize html', 'date picker'.

Output Schema

NameRequiredDescriptionDefault
noteYes
queryYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description adds real behavioral value: ranking is npm relevance order and readiness is annotated rather than filtered, so CJS-only results remain visible. It stops short of mentioning rate limits, auth, or network failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, and each subsequent phrase carries new information (readiness categories, entry file/size, ranking, non-filtering). The middle sentence is long and stacks several clauses, but nothing is redundant.

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 an output schema, a complete input schema, and rich annotations, the description supplies what those cannot: what the readiness annotations mean and that results are not silently dropped. Only the relationship to sibling resolution tools is left implicit.

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 coverage is 100%, so query and limit are already documented, including the default of 5 and the maximum of 10. The description's "search for a need" phrasing reinforces that query is intent-based rather than a package name, but adds no syntax or format detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Search npm") plus a concrete example-driven notion of the input ("a need (e.g. 'date picker', 'markdown parser')"), and the added value (browser-readiness annotation for UNPKG lookup) distinguishes it from siblings like resolve_package or shield_check_packages.

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 implied: this is the discovery entry point that produces candidates annotated for direct UNPKG file lookup. However, it never explicitly says when to prefer this over resolve_package or shield_check_packages, nor does it describe prerequisites or follow-up steps, so the agent must infer the routing.

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.

Resources