Skip to main content
Glama
MCP Server RAG

MCP Server RAG

by atengk

rag_list_kbs

Lists all created knowledge bases with document counts, chunk statistics, and update timestamps, helping you audit and select available RAG resources.

Instructions

枚举所有已创建的知识库清单及其文档数、切片统计与更新时间。

Returns:
    list[dict[str, Any]]: 包含各知识库完整元数据的字典列表

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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. It does disclose the observable result shape and that the operation enumerates existing entries (implying a non-destructive read), but it says nothing about ordering, pagination, whether empty or deleted KBs are included, or any permission requirements.

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?

Two short sentences, front-loaded with the core enumeration statement. The trailing 'Returns:' block largely restates what the output schema already documents, which is mild redundancy, but it costs little space.

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 zero-parameter list tool with an output schema and 100% schema coverage, the description covers purpose and return content adequately. The remaining gap is operational detail (ordering, whether the list is truncated), which matters less here than for a mutation tool.

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 zero parameters, so there is no parameter meaning to add beyond the schema; the baseline for a 0-param tool applies. The description correctly makes no attempt to describe inputs.

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 (枚举 / enumerate) and resource (知识库清单) and even names the fields surfaced (文档数、切片统计、更新时间), which is enough to distinguish it from mutation siblings like rag_create_kb or rag_delete_kb. It stops short of naming an alternative for filtered or single-KB lookups, so it is clear but not sibling-differentiating.

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?

There is no explicit when-to-use or when-not-to-use statement; usage is only implied by the fact that it enumerates all knowledge bases, which makes it the natural discovery step before rag_search or rag_query_with_context. No prerequisites, no guidance on what to do instead when only one KB is needed.

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