Skip to main content
Glama

account_stats

Métricas globales de la cuenta (enviados, entregados, abrieron, hicieron clic, bajas, rebotes, contactos nuevos) en un rango de días de la zona horaria de la cuenta, ambos incluidos; la cohorte es el día de ENVÍO de cada correo, la misma fuente que /metricas. avg_open_rate y avg_click_rate en % con 2 decimales sobre ENTREGADOS (avg_*_rate_fraction: alias deprecados en fracción). Si hay días aún sin calcular responde 503 metrics_recalculating: reintenta, nunca son sumas parciales. Rebote separado: bounced_hard / bounce_rate_hard (definitivo, el que se vigila) y bounced_soft / bounce_rate_soft (temporal), en % sobre enviados (bounce_rates_base: "sent"); null si el período no tiene el tipo medido, nunca un 0 inventado. total_bounces = definitivos + temporales. Ojo: en la ficha de campaña (get_campaign_stats) el mismo dato se llama bounce_hard_rate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoFecha fin YYYY-MM-DD (opcional).
fromNoFecha inicio YYYY-MM-DD (opcional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the 503 metrics_recalculating condition with retry guidance and that results are never partial sums, the null-vs-invented-0 semantics, and the delivered/sent denominators for rates. It also flags deprecated alias fields and a cross-tool naming mismatch (bounce_hard_rate vs bounce_rate_hard), which is valuable behavioral context beyond any structured field.

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?

The purpose and core metric list are front-loaded, and nearly every clause earns its place by encoding return-value semantics that no output schema captures. It is nonetheless a single dense run-on paragraph, which costs it a point on structure.

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

Completeness5/5

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

With no annotations and no output schema, the description compensates by documenting the return shape in depth: rate units and decimals, rate bases, hard/soft bounce separation, total_bounces composition, and the recalculation state. An agent has everything needed to call and interpret the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so from/to are already documented, and the baseline would be 3. The description adds meaning the schema lacks: both bounds are inclusive ('ambos incluidos') and the range is interpreted in the account's timezone, which materially affects how an agent sets the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

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

Names the resource (métricas globales de la cuenta) and enumerates the exact metrics returned (enviados, entregados, abrieron, clic, bajas, rebotes, contactos nuevos), which is concrete enough to distinguish it from list_campaigns or get_subscriber. It explicitly contrasts itself with get_campaign_stats at the end, letting an agent separate the two.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives solid selection context: it is scoped to account-wide metrics over a day range, the cohort is the send day (same source as /metricas), and get_campaign_stats is named for the per-campaign case. It stops short of a fully explicit when-to-use-this-vs-that rule, but an agent can route correctly.

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