Skip to main content
Glama

chatbot_stats

Read-only

Статистика сценария чат-бота за 7 и 30 дней: сколько раз подписчики дошли до каждого шага (button пустая) и сколько раз нажали каждую кнопку шага. Номера шагов и кнопок — как в документе сценария (chatbot.show).

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": {
      "botId": "<botId>",
      "scenarioId": "<scenarioId>"
    },
    "name": "chatbot_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdYesНомер своего бота клиента (uuid) — из ответа действия chatbots.list без указания бота.
scenarioIdYesНомер сценария этого бота — из ответа действия chatbots.list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with a safe read. It adds genuine behavioral context beyond annotations: the two fixed aggregation windows (7 and 30 days), the row semantics (a step row with empty button means steps reached), and the numbering convention tied to chatbot.show. It does not discuss freshness/latency of the statistics, so not a 5.

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 compact sentences, front-loaded with the purpose and time windows, followed by the result-structure caveat. Every clause carries information; the parenthetical 'button пустая' is terse but functional rather than redundant.

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

Completeness4/5

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

With no output schema, the description must convey what comes back — and it does: per-step reach counts and per-button press counts across two time windows, plus how to map numbers back via chatbot.show. Missing only minor details such as whether both windows are always returned together or any ordering/size of the result.

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 are documented with provenance ('from chatbots.list'), so the schema carries the parameter burden and baseline 3 applies. The description adds no further constraint on botId or scenarioId beyond noting that step/button ids align with chatbot.show.

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+resource: statistics for a chatbot scenario over 7- and 30-day windows, broken down per step and per button. It also disambiguates the result structure ('button пустая' = step reached) and points to chatbot.show as the reference for step/button numbering, so an agent can tell it apart from the raw scenario document. It does not explicitly contrast with channel_stats, which keeps it from 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 Guidelines3/5

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

Usage is implied — measure funnel progression through scenario steps and button presses — and the reference to chatbot.show tells the agent how to interpret the returned numbers. There is no explicit when-not guidance and no mention of channel_stats as the alternative for channel-level metrics, so routing rests on inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.