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

ragflow_delete_agent_sessions

Destructive

Permanently delete specified conversation sessions for an agent using its agent ID and session IDs to remove stored session data.

Instructions

Permanently delete conversation sessions of an agent.

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": {
      "agent_id": "<agent_id>",
      "session_ids": "<session_ids>"
    },
    "name": "ragflow_delete_agent_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent ID
session_idsYesIDs of the sessions to delete

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 destructiveHint=true, readOnlyHint=false, and openWorldHint=false, so the safety profile is given. The description's one added word, 'Permanently', reinforces irreversibility but adds little beyond what destructiveHint conveys, and it says nothing about whether deleting a session also removes its messages or whether the operation is batch-atomic.

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 front-loaded sentence with no filler and the destructive nature stated immediately. It is efficient, though arguably terse to the point of under-specification for a permanent-delete operation.

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?

The tool has an output schema, full parameter documentation, and annotations covering safety, so much is already structured. Still, for a permanent batch delete the description omits cascade effects, partial-failure behavior, and the distinction from sibling delete tools, leaving a moderate gap.

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% and both parameters (agent_id, session_ids) are documented in-schema, so baseline 3 applies. The description adds no semantics beyond the schema — notably it doesn't clarify that session_ids accepts multiple sessions for a batch delete or what happens if some IDs are invalid.

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 ('Permanently delete') and a precise resource ('conversation sessions of an agent'), which distinguishes it from the sibling ragflow_delete_chat_sessions (chat sessions) and from ragflow_list_agent_sessions. It never names the siblings explicitly, so the differentiation is inferred from the 'agent' scope rather than spelled out.

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?

The description gives no when-to-use guidance, no prerequisites, and no alternatives. An agent could reasonably wonder whether deleting an agent (ragflow_delete_agent) or deleting chat sessions is the right call in a given situation; nothing here helps resolve that.

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