Skip to main content
Glama

AI 客服国标合规知识库 (GB/T 47746—2026)

search_answers

Read-onlyIdempotent

按关键词检索合规问答,返回最相关的若干条(含简要答案)。

Args:
    query: 检索词,如「转人工」「备案 登记」「知识库 切分」
    top_k: 返回条数,默认 5

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": {
      "query": "<query>"
    },
    "name": "search_answers"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes检索词,中英文均可,例如:转人工、知识库 切分、备案
top_kNo返回条数上限,整数,默认 5,建议 3-10

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / query / description
      Added value: +"检索词,中英文均可,例如:转人工、知识库 切分、备案"
    • addedInput schema / properties / top_k / description
      Added value: +"返回条数上限,整数,默认 5,建议 3-10"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds only that results are ranked as 'most relevant' and include brief answers; it does not say how relevance is computed (keyword vs semantic), whether answers are truncated, or anything about pagination. Useful but thin beyond the annotations.

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 purpose sentence is front-loaded and short, and the Args block is compact. The Args block is somewhat redundant with a fully documented schema, but it costs little and does not obscure the main statement.

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?

This is a simple two-parameter read tool with an output schema, so return-value detail is not required of the description. The definition covers what it searches, what it returns in outline, and both parameters, leaving only ranking semantics and sibling routing unaddressed.

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%: both query and top_k already carry descriptions with examples and a default. The description's Args block largely restates the schema (检索词 examples, 默认 5) and adds no new syntax, format, or constraint information, so baseline 3 applies.

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?

The description names a specific verb and resource (按关键词检索合规问答) and says what comes back (最相关的若干条,含简要答案), so an agent knows this is a keyword search over a compliance Q&A corpus. It stops short of distinguishing itself from siblings such as get_answer or list_questions, so it is clear but not sibling-differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: '按关键词检索' suggests free-text lookup rather than fetching a specific known item, which loosely routes against get_answer. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the boundary itself.

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.