Skip to main content
Glama

cbs__DeleteSession

Closes a Q&A session using project, bot, and session identifiers. Use the Q&A robot API for new integrations because this CBS endpoint is being retired.

Instructions

[CBS] 问答会话API由开启会话、处理会话、关闭会话三个接口组成。用户可通过调用该接口关闭会话。该接口即将下线,请优先使用问答机器人API接口进行调用。

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": {
      "project_id": "<project_id>",
      "qabot_id": "<qabot_id>",
      "session_id": "<session_id>"
    },
    "name": "cbs__DeleteSession"
  }
}

Input Schema

NameRequiredDescriptionDefault
qabot_idYes机器人标识符。
project_idYes来自公有云的Project ID,用于资源隔离。获取方式请参见获取项目编码。
session_idYes会话标识符。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It usefully reveals a deprecation/lifecycle warning, which matters a great deal for tool selection, but says nothing about whether closing a session destroys its conversation data, whether the action is recoverable, or what error behavior occurs for an invalid or already-closed session_id.

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 short sentences with no filler, and the core action is stated early. The deprecation warning, arguably the most decision-relevant fact, is buried at the end rather than front-loaded.

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?

For a simple three-parameter deletion-style call with no output schema and no annotations, the description covers purpose, family context, and deprecation. It remains incomplete on mutation semantics and permission requirements, which are exactly the gaps annotations would normally have filled.

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 all three path parameters (project_id, qabot_id, session_id) are documented in the schema itself. The description adds no extra meaning such as identifier formats or cross-parameter constraints, 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?

The description states a specific verb and resource, namely closing a session ('关闭会话'), and situates it within the three-endpoint Q&A session family (open/process/close). This lets an agent distinguish it from cbs__CreateSession and cbs__ExecuteSession without opening either schema, though it never names those siblings explicitly.

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

Usage Guidelines4/5

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

It gives clear when-to-use context (call this to close a session) and an explicit when-not/prefer-instead directive: the interface is going offline and the Q&A bot API should be used instead. The alternative is described only by a generic API name rather than an identifiable tool, so the routing is directional but not fully actionable.

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