Skip to main content
Glama

cbs__ExecuteSession

Sends a user question to a Huawei Cloud CBS Q&A bot within an existing session and returns the bot's answer for interactive question-answering workflows.

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>",
      "question": "<question>",
      "session_id": "<session_id>"
    },
    "name": "cbs__ExecuteSession"
  }
}

Input Schema

NameRequiredDescriptionDefault
extendsNo扩展参数。
user_idNo用户id,在日志中用于标识不通用户,可以为任意String。
qabot_idYes机器人标识符。
questionYes用户输入。
project_idYes来自公有云的Project ID,用于资源隔离。获取方式请参见获取项目编码。
session_idYes会话标识符。
chat_enableNo默认true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 burden. It does add one thing structured data lacks — the deprecation/migration warning — which is genuinely important. But it says nothing about whether the call mutates session state, what happens with an expired or unknown session_id, authentication requirements, or rate 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?

Two tight sentences with the functional statement first and the deprecation warning second. Slight waste in the opening clause, which enumerates the other two interfaces of the family instead of narrowing to this one.

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 7-parameter, nested-object, session-stateful tool with no annotations and no output schema, the definition covers the deprecation but not the session lifecycle semantics: whether this consumes or preserves the session, whether chat_enable toggles conversational mode, or what the response contains. The 100% schema coverage offsets some of this.

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%, with all seven parameters including the nested 'extends' object documented in-schema (source, tag_ids.should, domain_ids, chat_enable default). The description adds no parameter 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.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (Q&A session) and says users can converse with the bot through it, but it describes the whole three-interface family (open/process/close) rather than this specific tool. Against siblings like cbs__CreateSession and cbs__DeleteSession, an agent cannot tell from the text which of the three this is, short of inferring that ExecuteSession is the 'process' step from required params such as session_id.

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?

There is real guidance: the interface is being deprecated and callers should prefer the Q&A robot API. However, that guidance points at an external API, not at the in-catalog alternatives, and the description never states when to pick this over CreateSession or DeleteSession, nor that a session must already exist.

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