Skip to main content
Glama
pghdma

CallRail MCP

call_stats

Retrieve grouped totals of call metrics—such as total calls, missed calls, and leads—by dimension (source, campaign, etc.) for a date range.

Instructions

Server-side call aggregation via CallRail's /calls/summary.json.

One request instead of paginating every call — prefer this over call_summary (which fetches and counts calls client-side) when you only need grouped totals. call_summary remains useful for metrics this endpoint doesn't expose (first-time vs repeat split, per-source-name breakdown, exact duration sums).

Args: group_by: Dimension to group by. One of: 'source', 'keywords', 'campaign', 'referrer', 'landing_page', 'company'. days: Lookback (default 30). Ignored if start_date given. start_date / end_date: 'YYYY-MM-DD'. Explicit dates win. company_id: Filter to one company. fields: Comma-separated metrics, e.g. 'total_calls,missed_calls,answered_calls,first_time_callers, average_duration,leads'. Default: total_calls only. account_id: Auto-resolves if omitted.

Returns: JSON string with start_date, end_date, time_zone, total_results and grouped_results[] ({key, }).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
fieldsNo
end_dateNo
group_byNosource
account_idNo
company_idNo
start_dateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Without annotations, the description effectively explains the tool's server-side nature and contrasts with call_summary. It details return format and parameter behavior. However, it could be more explicit about potential limitations (e.g., max days, result size) and authentication requirements.

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 description is well-structured with a first-line summary, usage context, parameter list, and return format. It is concise but could be slightly tightened in parameter explanations. Overall, effective and efficient.

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?

Given the presence of an output schema in the description, detailed parameter semantics, and differentiation from siblings, the description is contextually complete. Minor gaps like error handling or edge cases are acceptable, as the tool is well covered.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining each parameter: group_by options, days default, start_date/end_date precedence, company_id filtering, fields as comma-separated metrics with default, and account_id auto-resolution. This adds significant meaning beyond the schema.

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?

The description clearly states the tool performs server-side call aggregation via a specific API endpoint, and explicitly distinguishes it from the sibling tool 'call_summary' (client-side pagination). This meets the highest standard of specificity and differentiation.

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

Usage Guidelines5/5

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

The description gives explicit guidance: 'prefer this over `call_summary` when you only need grouped totals', and notes when `call_summary` remains useful. This provides clear context and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pghdma/callrail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server