Skip to main content
Glama

discover_tools

Two-step tool finder and executor for all enterprise APIs.

STEP 1 — DISCOVER: Call with only 'query'. Returns matching tools with their names and inputSchemas.

STEP 2 — EXECUTE: Call again with 'query' + 'tool_name' + 'tool_args'. Gateway executes the tool and returns real data directly.

You NEVER call any other tool directly. Always use discover_tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamNoOptional department filter.
queryYesUser intent in plain natural language.
top_kNoNumber of tools to return. Default 5, max 10.
tool_argsNoSTEP 2 only — arguments matching the tool's inputSchema exactly. Provide together with tool_name to execute the tool.
tool_nameNoSTEP 2 only — exact tool name from previous discover response. Must match a name returned in the previous discover call exactly.

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description takes on heavy responsibility. It discloses the two-step behavior, what returns in discovery (names and inputSchemas), that execution returns real data directly, and that the tool name must match exactly. It doesn't mention side effects or permissions, but the core behavioral workflow is clearly documented.

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?

The description is well organized with clear STEP 1 and STEP 2 markers, using a compact list format. Every sentence adds value, and the critical directive about not calling other tools is prominent. No redundancy or filler is present.

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?

Given the tool's complexity (5 params, nested objects, two-phase usage) and lack of an output schema, the description covers the core flow and return values well enough for an agent to invoke it correctly. It does not detail error cases or edge scenarios, but for a tool finder gateway, the described two-step protocol is sufficient for expected use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds meaningful phase-specific semantics for parameters like 'tool_name' ('exact tool name from previous discover response') and 'tool_args' ('arguments matching the tool's inputSchema exactly'). It clarifies the role of 'query' as user intent and the optional 'team' filter, going beyond mere schema repetition.

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?

The description clearly identifies the tool as a two-step finder and executor for all enterprise APIs, with a specific verb ('discover'/'execute') and resource. It explicitly distinguishes its role by stating that no other tool should be called directly, making it unique even without siblings.

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?

It provides explicit step-by-step usage instructions: STEP 1 for discovery with only 'query', and STEP 2 for execution with 'query' + 'tool_name' + 'tool_args'. It also gives a strong directive ('You NEVER call any other tool directly') that clarifies when to use this tool versus any alternative.

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.

TDQS

A4.6/5.0
Disambiguation5/5

Only one tool exists, so there is zero risk of selecting the wrong tool. The tool's description clearly defines its role as the sole gateway.

Naming Consistency5/5

The single tool name 'discover_tools' follows a consistent verb_noun pattern. There are no other tools to create inconsistency.

Tool Count4/5

One tool is minimal, but intentional for a gateway pattern that dynamically exposes other tools. It is slightly under the typical 3-15 range yet justified by the meta-purpose.

Completeness4/5

The tool covers both discovery and execution, fully addressing the server's stated purpose. A minor gap is the lack of a way to list all available tools without a query, but query-based discovery is sufficient.

Resources