Skip to main content
Glama

独行录 / opcmenu

统一搜索(人 / 需求 / 产品一次出)

search_all
Idempotent

【何时用】用户一句话找东西、而你分不清他要的是人、需求还是产品时的默认入口:三类并行一次返回(people 与 needs 共享同一次查询向量,比连调三个搜索少两次 embedding、少两个往返)。三组各有多少本身就是答案——这个领域是人多还是产品多。

【组合链】search_all → 人 get_creator 看档案 → 需求 get_need → contact_need 开聊;只要一类且要拉长列表时才用 scope=people|needs|products。

【口径】① 会跑 embedding + 查询扩展 + 精排,是真花钱,别循环调(但不写任何数据)。② 手机号查询服务端恒掐语义腿,people 必为空——这是隐私口径不是数据问题。③ 全空就如实说没有,并可转 create_need 让对方来找他。④ 登录后 people 里可能有 isCloud=true 的云用户(还没用 App),联系只能 send_cooperation_request,由独行录人工小秘书转达。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYes自然语言或关键词
limitNo每类条数上限,最多 30(服务层硬夹值);scope=all 默认 人10/需求10/产品12
scopeNoall(默认,三类都出)| people | needs | products;单类 = 「查看更多」

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior1/5

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

The description is otherwise rich, disclosing embedding cost, empty-result behavior, phone-number privacy pruning, and cloud-user contact restrictions. However, it explicitly states '不写任何数据' while the annotations declare readOnlyHint=false, which is a direct contradiction: an operation that writes no data is read-only. Per rubric, this caps the score at 1.

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 compact despite being detailed, with clear section headers and numbered operational caveats. It front-loads the decision rule ('何时用') and follow-up chain, and every sentence contributes practical guidance or behavioral context.

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 search tool with no output schema, the description covers routing, cost, privacy, empty-result fallback, cloud-user handling, and contact escalation. The only notable gap is that it does not spell out the exact response shape or item fields returned for each category, but the high-level behavior is complete enough for a capable agent.

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 the baseline is 3. The description adds meaningful usage semantics beyond the schema: scope=people|needs|products means 'view more' for a single category, the default per-category limits are 10/10/12, and phone-number queries cause people results to be empty. This goes beyond schema descriptions, though the schema still carries most parameter mechanics.

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 search_all as a unified search that returns people, needs, and products in one parallel call, using a specific verb (search) and resource set. It also distinguishes this tool from single-category siblings by framing it as the default entry when the user's intent is ambiguous.

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 states when to use it: when a user asks one vague sentence and the agent cannot tell whether they want people, needs, or products. It also tells when NOT to use it (single category with long list → use scope=people|needs|products), gives a recommended follow-up chain, and warns against loop calls due to cost.

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