Skip to main content
Glama

fagai-policy-kb

search_policy

检索国家、省级、规划三类政策库,返回带出处的原文片段。

什么时候用:用户问政策依据、申报条件、支持标准、某地有什么政策、
「有没有文件规定」这类问题时,先用这个工具拿原文再回答。

Args:
    query: 检索问题,用自然语言描述即可。例:「高标准农田建设每亩补助多少」
    region: 限定地域,填省份简称(如「四川」「山东」)或 6 位行政区划码
            (如「510000」)。留空表示不限地域,全国范围检索。
    top_k: 返回条数,1-10,默认 5。

Returns:
    每条包含文件名、发文机关、文号、发布日期、相关度分数和原文片段。

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_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo
regionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose meaningful behavior: the search spans three distinct policy corpora, empty region means nationwide scope, and results are attributed source snippets. It omits any note on result truncation, latency, or whether snippets are excerpted from longer documents, which an agent might want before citing.

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 purpose, then when-to-use, then per-argument notes, then returns — an easy scan. The Returns block restates fields the output schema already covers, which is mild redundancy rather than bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter search tool with no annotations, the definition covers intent, triggering conditions, every parameter's format and defaults, and the nature of the returned evidence. An agent can invoke it correctly without opening the schema.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must do all the work and it does: query accepts natural language with a worked example, region accepts a province abbreviation or a 6-digit administrative code with empty meaning unrestricted, and top_k is bounded to 1-10 with a stated default of 5.

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 states the output shape (带出处的原文片段). It does not explicitly contrast with the siblings corpus_stats or list_recent, so an agent must infer the boundary from the names alone.

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?

The 什么时候用 section gives concrete triggering questions (政策依据、申报条件、支持标准、某地有什么政策、有没有文件规定) and even prescribes an ordering: fetch original text first, then answer. It lacks any when-not guidance or named alternative for cases better served by corpus_stats or list_recent.

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