Skip to main content
Glama
ragflow-kb-mcp
by feci

ragflow_get_chat_session

Read-only

Retrieves a RAGFlow chat session and its messages using chat and session IDs, optionally returning the source chunks cited by each answer.

Instructions

Get a chat session with its messages.

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": {
      "chat_id": "<chat_id>",
      "session_id": "<session_id>"
    },
    "name": "ragflow_get_chat_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesChat assistant ID
session_idYesSession ID
include_referencesNoAlso return the chunks each answer cited

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this a safe, read-only, closed-world operation, so the description need not cover the safety profile. The clause 'with its messages' adds useful context about what is returned alongside the session, but nothing about pagination, message ordering, or size limits.

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?

A single short sentence, front-loaded with the verb and resource, with zero filler. It is efficient, though the brevity borders on under-specification.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the parameters are fully documented. Still, for a session-retrieval tool one would expect at least a note on how it relates to listing sessions or whether messages are truncated.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters — chat_id, session_id, and include_references — are already documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource ('Get a chat session') and notes it returns the session's messages, so the agent knows what it retrieves. It does not distinguish itself from close siblings such as ragflow_list_chat_sessions or ragflow_get_chat, which would be needed for a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus listing sessions or fetching a chat assistant. The agent must infer that this is the retrieval call once it already holds a chat_id and session_id.

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

Deploy Server

Other Tools