Skip to main content
Glama

fagai-policy-kb

corpus_stats

查看知识库规模和覆盖范围。

什么时候用:用户问「库里有多少文件」「覆盖哪些省」「有没有 XX 领域的 政策」时用,先确认覆盖范围再决定要不要检索,避免答非所问。

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": "corpus_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, but this is a zero-parameter read-only statistics lookup, so the behavioral risk surface is inherently small. The description conveys that it is a scope-check rather than a data-returning search, which is the key behavioral distinction; it does not mention whether results are cached or how fresh the counts are, which would be the remaining useful disclosure.

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?

Two short blocks: one line of what it does, one line of when to use it, with the purpose front-loaded. No filler or repetition of schema information.

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?

With an output schema present, the return shape needs no explanation, and with zero parameters there is no input ambiguity to resolve. The description covers purpose, trigger, and workflow placement adequately for a simple tool; only freshness or scope caveats are absent.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description correctly adds no parameter-level noise.

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 gives a specific verb and resource pair ('查看知识库规模和覆盖范围') and enumerates the concrete facets returned (file count, province coverage, domain policy presence), so an agent knows exactly what question this answers. It stops short of naming a sibling, but the described capability is clearly distinct from list_recent and search_policy.

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?

It provides explicit trigger conditions with quoted user-style questions and adds a workflow rule: confirm coverage first, then decide whether to retrieve. What is missing is an explicit 'do not use when' clause or a named alternative for the retrieval step.

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