Skip to main content
Glama

cbs__CollectSessionStats

Retrieves user session statistics for a specified QA bot within a project, using configurable time range, interval, and time zone for usage analysis.

Instructions

[CBS] 获取用户会话统计信息。

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>"
    },
    "name": "cbs__CollectSessionStats"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeNo查询的结束时间,long,UTC时间,默认值为当前时间的毫秒数。
intervalNo统计周期目前支持month,week,day。
qabot_idYesqabot编号,UUID格式。
time_zoneNo请求所在时区,例如:中国东八区为"+08:00";美国西五区为"-05:00";默认为"UTC"。UTC
project_idYes来自公有云的Project ID,用于资源隔离。
start_timeNo查询的起始时间,long,UTC时间,默认值为0。0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it discloses almost nothing. It does not state that this is a read-only query, whether it is rate-limited or expensive over long time ranges, what granularity/aggregation the 'statistics' represent, or what the response shape looks like. Only the verb '获取' weakly implies a non-mutating operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, so nothing is wasted. But for a six-parameter, annotation-free query tool the brevity reads as under-specification rather than economy, leaving the agent with one generic clause to work from.

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

Completeness2/5

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

With six parameters, one enum, a time-window query model, no annotations, and no output schema, this description is far too thin. Nothing about result content, aggregation semantics, or read-only behavior is stated, and with no output schema the description cannot defer return-value explanation to structured data either.

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 every parameter (start_time, end_time, interval, time_zone, qabot_id, project_id) is already documented with format and defaults in the schema, which sets the baseline at 3. The description adds nothing beyond echoing 'session statistics', and notably does not explain how the combination of start_time/end_time/interval/time_zone interacts to define a statistics window.

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 gives a verb ('获取' / retrieve) and a resource ('用户会话统计信息' / user session statistics), so the general purpose is inferable. However, it never says which statistics are returned, and it does not distinguish this tool from siblings like cbs__CollectHotQuestions, cbs__CollectKeyWords, or cbs__CollectReplyRates, all of which also 'collect' session-derived data. An agent must read the schema and guess to pick correctly.

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 when-to-use guidance, no prerequisite note (e.g., that project_id and qabot_id must already exist), and no mention of any alternative tool. The description is purely nominal; usage must be inferred entirely from parameter names.

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