Skip to main content
Glama

gateway.search_registry

Search the public MCP Registry for external servers and packages when a requested capability is not available locally, returning metadata needed to register and provision a discovered server.

Instructions

Search the public MCP Registry for external servers not in the local manifest. Use this when gateway.request_capability returns not_available. Returns package names and metadata; call gateway.register_discovered_server then gateway.provision to install. Provisioning a discovered package needs an operator to approve its exact version first (pmcp trust approve-package) unless package policy allows it.

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": "gateway.search_registry"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return
queryYesNatural language description of the capability needed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.1
    • addedInput schema / properties / query / minLength
      Added value: +1
  2. First observedv1.18.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that results are package names plus metadata, that the path to install requires register_discovered_server then provision, and that provisioning needs operator approval of the exact version (pmcp trust approve-package) unless policy allows. It omits read-only/public-access and rate-limit details, keeping it short of a 5.

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?

Front-loaded with purpose in the first sentence, followed by trigger, follow-up flow, and prerequisite in a logical order. Four dense sentences with no filler, though the approval caveat is tightly packed and could be split for scanability.

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

Completeness5/5

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

For a two-parameter search tool with no output schema, the description covers what comes back (package names and metadata), the downstream workflow, and the authorization prerequisite — everything an agent needs to invoke it correctly and interpret the result.

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 'query' and 'limit' are already documented in the schema. The description adds no syntax, format, or ranking semantics beyond the schema baseline.

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 the public MCP Registry') plus a scope qualifier ('external servers not in the local manifest'), which cleanly separates it from sibling catalog_search (local) and request_capability.

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?

Gives an explicit trigger condition — 'Use this when gateway.request_capability returns not_available' — and names the exact follow-up siblings (gateway.register_discovered_server then gateway.provision), so the agent knows both when to call it and what to do next.

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