Skip to main content
Glama
mcp-chatwoot

mcp-chatwoot

by serversmx

get_conversation_statistics

Retrieves conversation statistics grouped by agent, team, inbox, or channel, including counts and average first-response and resolution times, optionally filtered by date range and business hours.

Instructions

Get conversation statistics grouped by entity (via API v2). Returns metrics like conversations_count, avg_first_response_time, avg_resolution_time per entity.

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": {
      "entity_type": "<entity_type>"
    },
    "name": "get_conversation_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoStart timestamp (Unix timestamp)
untilNoEnd timestamp (Unix timestamp)
account_idNoChatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var.
entity_typeYesEntity to group statistics by
business_hoursNoCalculate metrics using business hours only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the API version and the concrete return metrics, which compensates for the absent output schema, but says nothing about default time ranges when since/until are omitted, permissions, rate limits, or result format.

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 short sentences with the core operation front-loaded and the return fields listed second. Slightly redundant, since "grouped by entity" and "per entity" convey the same constraint twice, but there is no padding beyond that.

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 five-parameter read-only reporting tool with no annotations and no output schema, the description covers purpose and return metrics adequately. It leaves open the practical questions an agent faces before calling it: what time window applies by default and how business_hours affects the numbers.

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 is already documented in the input schema, setting the baseline at 3. The description only restates the grouping parameter with "per entity" and adds no formatting, default, or interaction detail beyond the schema.

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 gives a specific verb and resource ("Get conversation statistics") plus the key differentiator "grouped by entity," which separates it from sibling report tools. It also enumerates the returned metrics, so an agent knows exactly what it produces. It stops short of naming which sibling to prefer when the agent doesn't want an entity breakdown.

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 only implied: the entity grouping signals this is for per-agent/team/inbox/channel breakdowns rather than totals. There is no explicit when-to-use or when-not guidance and no reference to alternatives such as get_conversation_metrics or get_conversation_counts, which produce overlapping data.

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