Skip to main content
Glama
npm-query-mcp

npm-query-mcp

by long36708

search_npm_packages

Search npm packages by query and retrieve matching results to support AI assistant package discovery.

Instructions

Search for npm packages

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_npm_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.4

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure and delivers almost none. It implies a read-only registry lookup, but says nothing about result volume, ranking, pagination, or whether results are cached/truncated, all of which matter for a search tool.

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?

A single front-loaded sentence with zero filler; nothing is redundant. Its shortness is a coverage problem rather than a conciseness problem, so it should not be penalized twice here.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only place an agent could learn what a call yields and how to phrase a query, and it supplies neither. For a simple single-parameter tool this is barely viable.

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?

There is exactly one parameter (query) with 100% schema description coverage, so the schema fully documents it. The description adds no syntax hints (keyword, 'scope:package', boolean terms) beyond the schema's generic "Search query" label, making baseline 3 correct.

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

Purpose2/5

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

The description "Search for npm packages" is a verbatim restatement of the tool name search_npm_packages, adding no distinguishing detail. An agent learns only that it searches, not what scope of search (registry-wide, by keyword, tag, scope) or what it returns.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no alternatives named (the sibling list is empty, so none could be inferred anyway). The agent must assume this is the default entry point for any npm lookup.

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

Deploy Server

Other Tools