Skip to main content
Glama

Message stats

get_message_stats
Read-onlyIdempotent

Per-day message volume and reply rates for a bounded date range (max 92 days, org timezone): inbound/outbound counts, active conversations, and the share of conversations that received a customer message and got a reply the same day. Counts only - no message content. Respects the org AI access settings, so numbers match what the other tools can see. When team numbers are known (team members, contacts labelled as staff, or an employee list confirmed this session), team_reply_rate also counts replies team members write from their own phones; when none are known (staff_numbers_known = 0) only sent_from_number_rate applies; it counts messages sent from this number and is not a response rate.

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes

Output Schema

NameRequiredDescriptionDefault
toYes
daysYes
fromYes
totalsYes
timezoneYes
definitionYes
metric_labelYes
staff_numbers_knownYes

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 cover the safety profile (readOnly, idempotent, non-destructive), and the description adds meaningful context beyond them: data visibility is scoped by org AI access settings so numbers reconcile with other tools, and the reply-rate metric changes semantics depending on whether staff numbers are known. That conditional explanation of team_reply_rate vs sent_from_number_rate is exactly the kind of disclosure annotations cannot carry. It loses a point for not stating the failure behavior when the 92-day bound is exceeded.

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?

Front-loads the core purpose and metric list, then layers constraints and metric caveats. Every clause carries information, but the final sentence is a dense run-on with nested parentheticals that is harder to parse than it needs to be. Slightly over-packed, though nothing is truly 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 an output schema present, the description is not obliged to explain return values, and it instead spends its budget on metric definitions and visibility scoping, which is the right allocation. The only meaningful gap is the absence of any pointer to sibling reporting tools for overlapping questions, and the undefined behavior at the 92-day boundary.

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 0%, so the description must compensate for two undocumented parameters. It partially does: it discloses the date range bound (max 92 days) and the timezone interpretation, but never states whether from/to are inclusive, in what order, or that they must be YYYY-MM-DD (that only exists as a regex pattern). Useful but incomplete compensation.

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: per-day message volume and reply rates over a bounded date range, listing the concrete metrics (inbound/outbound counts, active conversations, same-day reply share). An agent can distinguish it from reporting siblings like get_period_report or get_business_overview. It stops short of naming those siblings explicitly, so it lands at 4 rather than 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?

Gives real usage constraints (max 92-day window, org timezone, counts only, no content) that implicitly define when this tool applies. However, it never says when to prefer it over get_period_report, get_usage_summary, or get_business_overview, nor what to do when the range exceeds 92 days. Usage is implied rather than routed.

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.

Resources