Skip to main content
Glama

retrieve_tools

Read-onlyDestructive

Search all connected MCP servers with natural language to discover relevant tools for your task. Call this first to find which tool to use.

Instructions

🔍 CALL THIS FIRST to discover relevant tools! This is the primary tool discovery mechanism that searches across ALL upstream MCP servers using intelligent BM25 full-text search. Always use this before attempting to call any specific tools. Use natural language to describe what you want to accomplish (e.g., 'create GitHub repository', 'query database', 'weather forecast'). Results include 'annotations' (tool behavior hints like destructiveHint) and 'call_with' recommendation indicating which tool variant to use (call_tool_read/write/destructive). Then use the recommended variant with an 'intent' parameter. NOTE: Quarantined servers are excluded from search results for security. Use 'quarantine_security' tool to examine and manage quarantined servers. TO ADD NEW SERVERS: Use 'list_registries' then 'search_servers' to find and add new MCP servers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
debugNoEnable debug mode with detailed scoring and ranking explanations (default: false)
explain_toolNoWhen debug=true, explain why a specific tool was ranked low (format: 'server:tool')
include_statsNoInclude usage statistics for returned tools (default: false)
limitNoMaximum number of tools to return (default: configured tools_limit, max: 100)
queryYesNatural language description of what you want to accomplish. Be specific about your task (e.g., 'create a new GitHub repository', 'get weather for London', 'query SQLite database for users'). The search will find the most relevant tools across all connected servers.
Behavior1/5

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

The description implies a read-only discovery operation, but annotations declare destructiveHint=true, creating a contradiction. No explanation of why destructiveHint is set; this undermines trust. The description does not disclose any destructive behavior.

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?

The description is front-loaded with the most critical instruction ('CALL THIS FIRST') and provides structured details. While somewhat lengthy (8 sentences), each sentence adds useful information like BM25 search, quarantine exclusion, and server addition workflow.

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 role as a discovery mechanism, the description covers when to use it (always first), what results include, and related tools. However, it omits aspects like error handling, pagination for large result sets, and behavior when no tools match. The contradiction in annotations is not addressed.

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

Parameters2/5

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

Schema coverage is 100%, so parameters are well-documented in the schema. The description adds minimal value beyond repeating the natural language usage for the query parameter. No additional context for debug, explain_tool, include_stats, or limit beyond what the schema provides.

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 states the tool's purpose: discover relevant tools using BM25 search. It specifies the verb ('CALL THIS FIRST') and resource ('tools across all upstream MCP servers'), and distinguishes itself from sibling tools like call_tool_read/write/destructive.

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?

Explicitly says 'Always use this before attempting to call any specific tools.' Provides guidance on natural language queries, explains results include annotations and call_with recommendation, and tells agents to use recommended variant. Also mentions quarantined servers and links to related tools for adding servers.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smart-mcp-proxy/mcpproxy-go'

If you have feedback or need assistance with the MCP directory API, please join our Discord server