Skip to main content
Glama

search_packages

Read-only

Search active packages by substring of package name or author (GET /search).

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": {
      "q": "<q>"
    },
    "name": "search_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSubstring to match in package name or author.
limitNoMax search hits to return. Clamped to 1-50 (default 10).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Max search hits to return. Clamped to 1-50 (default 10)."
    • addedInput schema / properties / q / description
      Added value: +"Substring to match in package name or author."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds only that results are limited to 'active' packages and that the upstream call is GET /search; it says nothing about result ordering, what happens on zero hits, or pagination behavior beyond the schema's limit cap.

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?

One front-loaded sentence with no filler. The trailing '(GET /search)' is a minor implementation detail that adds little for an agent, but it costs almost nothing and does not obscure the core statement.

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?

For a simple two-parameter read tool with an output schema, fully described parameters, and annotations covering safety, the definition supplies everything needed to invoke it. Only the 'active' filter and its implications for excluded packages are left slightly underspecified.

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 description coverage is 100%, so both q and limit are already documented with their semantics and the 1-50 clamp. The description restates the q semantics rather than adding anything new, which is the expected baseline when the schema does the work.

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 gives a specific verb and resource ('Search active packages') plus the matching dimensions ('substring of package name or author'), so an agent knows exactly what the tool returns a list of. It does not explicitly contrast itself with siblings like package_info or package_depends_on, but the purpose is unambiguous on its own.

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 only implied by the phrase 'active packages' — an agent can guess this is the lookup-by-name/author tool, but the description never says when to prefer it over package_info or package_depends_on, nor does it mention exclusions such as inactive or unpublished packages beyond the single word 'active'.

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.