Skip to main content
Glama
Ancient Echoes MCP

Ancient Echoes MCP

RAG Query

lingxi.rag_query
Read-only

Queries Ancient Echoes RAG using a specified dataset, persona, and retrieval parameters to return sourced answers. Requires dataset_key or source_persona_id to search, except when scene is coding.

Instructions

按用户提供的资料库、人物和检索参数查询 Ancient Echoes RAG,返回答案与出处。会按当前用户的 AI 套餐、模型权限和额度计费;没有 dataset_key 或 source_persona_id 时不会检索知识库,因此必须显式指定(scene=coding 除外)。可用数据集见 GET /api/v1/rag/datasets。

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": {
      "messages": "<messages>"
    },
    "name": "lingxi.rag_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
sceneNo
top_kNo
top_pNo
guidanceNo
messagesYes
metadataNo
tone_hintNo
collectionNo
max_tokensNo
dataset_keyNo
temperatureNo
system_promptNo
guidance_overrideNo
source_persona_idNo
tone_hint_overrideNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description adds genuinely useful context beyond that: the call consumes the user's AI plan quota, is gated by model permissions, and silently skips knowledge-base retrieval when dataset_key/source_persona_id are absent. The quota-billing disclosure is material for an agent deciding whether to call it. Error and quota-exhaustion behavior is still unstated.

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?

Three compact sentences: purpose and return value first, then cost/permission behavior, then the hard retrieval precondition and dataset-discovery endpoint. Nothing is redundant, though the mandatory-parameter rule is buried after the billing sentence rather than front-loaded.

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?

Wait—reconsider: with 16 parameters, a nested required messages object and zero schema coverage, the omission of parameter documentation is a real completeness gap, so this should not be top marks.

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

Parameters2/5

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

Schema description coverage is 0% across 16 parameters, so the description must carry the load, and it covers only dataset_key, source_persona_id and scene. The required nested messages array, plus model, top_k, top_p, temperature, max_tokens, guidance, guidance_override, tone_hint, tone_hint_override, collection, metadata and system_prompt are all left entirely undefined.

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 (Ancient Echoes RAG) and states the return contract: an answer plus its sources (返回答案与出处). It is clear what the tool does but never names or differentiates itself from the sibling lingxi.rag_search, which is the closest competing operation.

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?

It gives one concrete usage rule: retrieval only happens when dataset_key or source_persona_id is supplied, and that requirement is waived when scene=coding. It also points to GET /api/v1/rag/datasets for discovery. However, it gives no guidance on when to pick this over lingxi.rag_search, so the most important routing decision is left to inference.

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