Skip to main content
Glama

Search MCP Gateway tools

mcp_gateway_search_tools
Read-onlyIdempotent

Primary deferred-discovery tool for downstream MCP capabilities. Search by the user's intent or capability words; the target computer queries its enabled MCP Registry and returns compact matches with stable server_id/tool_name/capability_id provenance. Use this before saying a needed MCP capability is unavailable. Do not require the user to name the downstream MCP server or tool. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.

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": "mcp_gateway_search_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum compact matches. Defaults to 12.
queryYesNatural-language capability query, such as 'search GitHub repositories' or 'query production orders'.
device_idNoTarget computer device_id. Omit when only one computer is paired.
server_idNoOptional downstream server_id when discovery should be restricted to one known server.
device_nameNoComputer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer.
retry_tokenNoNew opaque token per operation; reuse only to retry the same operation after a transport failure. No user content.
workflow_idNoOptional workflow id; pass together with ai_session_id.
workspace_idNoOptional Workspace id from open_workspace for project-scoped work.
ai_session_idNoOptional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description is consistent with all of them. It adds real context beyond the annotations: the query runs against the target computer's enabled MCP Registry, results carry stable provenance identifiers, and a local destination may be inherited from project or conversation context. It does not describe result limits or failure behavior, though the limit default is covered by the schema.

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

Conciseness3/5

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

The opening sentence is well front-loaded, but the closing sentences repeat the same idea twice: 'Do not require the user to name the downstream MCP server or tool' and 'The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.' The 'Select this tool from the user's intent when it is the best match' sentence also adds little beyond the earlier instruction.

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 nine-parameter discovery tool with an output schema and full annotation coverage, the description supplies what the structured data cannot: the intent-based framing, the provenance of matches, and the anti-assumption rule about unavailable capabilities. The main omission is how it composes with sibling gateway tools (list/describe/call) once a match is found.

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 the baseline is 3. The description only obliquely touches parameters by noting the destination may be explicit or inherited from context, which loosely explains why device_id/device_name can be omitted; it adds nothing about query, server_id, or retry_token beyond what the schema already says.

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 enabled downstream MCP Registry capabilities by intent and return compact matches with server_id/tool_name/capability_id provenance. That is clearly more than a restatement of the name and separates it from a plain listing tool. It stops short of naming the sibling alternatives (mcp_gateway_list_tools, mcp_gateway_describe_tool) that an agent might otherwise confuse it with.

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

Usage Guidelines4/5

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

Strong conditional guidance: use it before declaring a capability unavailable, do not require the user to name a server or tool, and select it from intent when it is the best match. It does not explicitly state when NOT to use it or point to list_tools/describe_tool as the alternative for known-server enumeration, so the routing story is incomplete.

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