Skip to main content
Glama
MCP Server RAG

MCP Server RAG

by atengk

rag_doctor

Diagnose RAG system health by checking storage engine connectivity, local model configuration, disk usage, and system environment; returns a structured report to identify setup issues.

Instructions

全维自检诊断探针,检查存储引擎连通性、本地模型配置、磁盘占用与系统环境。

Returns:
    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_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the scope of the checks and that a structured report is returned, which is real behavioral value. It does not state whether the probe is read-only/side-effect free, how expensive or slow it is, or whether failures are reported as errors versus inside the report.

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 sentences, front-loaded with the purpose and the checked dimensions. The 'Returns' line is slightly redundant given the output schema exists, but it is a single line and does not dilute the definition.

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 diagnostic with an output schema, the definition is nearly complete: the agent knows what is inspected and that a structured report comes back. The one material gap is the absence of any routing guidance against the 'health_check' sibling and the lack of a read-only/side-effect statement.

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 nothing for the description to disambiguate; the baseline of 4 applies. The description correctly presents it as a no-argument probe.

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 ('self-check diagnostic probe') and enumerates the concrete dimensions checked: storage engine connectivity, local model configuration, disk usage, and system environment. That is far clearer than the bare name 'rag_doctor'. It does not, however, differentiate itself from the sibling 'health_check', leaving the agent to guess which diagnostic entry point to use.

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 – the word 'diagnostic/self-check' suggests troubleshooting or pre-flight verification, but there is no explicit statement of when to run it, when not to, or why to choose it over 'health_check'. No prerequisites or exclusions are given.

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