Skip to main content
Glama

查找工具(两段式第 1 步)

find_tool

Matches natural-language task keywords to relevant tools and returns concise summaries, helping you discover the right API before calling it. Pass an exact tool_id to view full parameter details.

Instructions

两段式调用的第 1 步:按自然语言任务关键词匹配工具,默认返回最相关的 5 条精简摘要(id、名称、Auth、简短描述、参数名、必填项),体积通常小于 1.5KB。BotPouch 刻意只在 tools/list 暴露 find_tool 与 call_tool 两个元工具,不把几十个工具定义塞进模型上下文(省 Token 架构)。想看某个工具的完整入参,传 tool_id 精确查询。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo可选。返回条数,默认 5,范围 1~10
queryNo任务关键词或一句话需求,例如:查 GitHub 项目的 star 数 / 美元换人民币汇率 / 查 IP 归属地 / 联网搜索 AI 新闻 / 查快递物流
tool_idNo可选。传精确 tool_id(如 crates_io、currency_rate)时返回该单工具的完整参数说明,此时忽略 query 匹配

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses the default result count, the exact fields returned in condensed summaries, an approximate payload size (<1.5KB), and the important behavioral override that tool_id ignores query matching. It omits what happens on zero matches and any rate/throughput limits, which is why it is not 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 the two-stage framing and the default return shape, then the mode switch. The sentence about BotPouch deliberately exposing only two meta-tools is architectural rationale rather than actionable instruction, but it does explain why this tool exists instead of a flat tool list, so it largely earns its place.

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?

There is no output schema, and the description compensates by enumerating the returned fields and the payload size, and by describing the richer response in tool_id mode. For a read-only discovery tool with no annotations this is close to complete; only empty-result behavior and any limits are unaddressed.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real value by front-loading the query/tool_id mode switch and explaining that the two modes return different levels of detail (condensed summary vs. full parameter documentation). That interaction is the main source of invocation error, and the description surfaces it before the schema does.

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 (match tools by natural-language task keywords) and immediately situates itself as step 1 of a two-stage flow whose counterpart is call_tool. It also names the two operating modes (keyword query vs. exact tool_id lookup), so an agent knows exactly what the tool does without opening the schema.

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?

Explicitly frames when to use it — first step before invocation — and tells the agent to pass tool_id when it already knows which tool's full parameters it needs, versus a keyword query otherwise. The sibling call_tool is only implied by '两段式' (step 1) rather than named as the follow-up action, which keeps it just short of a 5.

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

Deploy Server

Other Tools