Skip to main content
Glama

discover_tools

Find the right CONNECTED tool for a job without loading every tool schema: searches the gateway's live proxied tools by intent keywords and returns the top matches with compact schemas. Then call invoke_tool with the chosen tool_uid.

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": {
      "intent": "<intent>"
    },
    "name": "discover_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNoMax matches 1-5 (default 3).
intentYesWhat you need to do, e.g. 'current weather in Halifax'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the important constraint that only connected/proxied tools are searched and that matches come back with compact rather than full schemas. It omits other useful traits for a search tool: no-match behavior, ranking/relevance semantics, and whether results are cached or live at call time.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and its efficiency benefit, followed by the required next step. No filler and no restatement of the tool name.

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 two-parameter discovery tool with no output schema, this covers purpose, scope constraint, return shape (compact schemas) and the follow-up call, which is most of what an agent needs. The remaining gap is failure handling and result-quality expectations, which is minor.

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 schema already explains both intent and top_k, making 3 the baseline. The description adds a little by framing intent as 'keywords' describing a job, but contributes nothing about top_k or how intent phrasing affects match quality.

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?

States a concrete verb-and-resource: it searches the gateway's live proxied (i.e. connected) tools by intent keywords and returns top matches with compact schemas. The 'CONNECTED' scoping and the gateway-level framing distinguish it from the provider-specific discover_tools siblings, though it never names one explicitly.

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?

Gives a clear trigger — use this instead of loading every tool schema when you need to find the right tool for a job — and closes the loop by telling the agent to call invoke_tool with the chosen tool_uid. It stops short of stating when not to use it (e.g. when the tool is already known) or what to do on zero matches.

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.