Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

usage_summary

Read-onlyIdempotent

Generates per-company cost-attribution summaries from active trackers and call minutes, showing each client's share of the agency CallRail bill for renegotiation, invoice checks, or reviews.

Instructions

Per-company cost-attribution summary for the current cycle.

Aggregates active trackers + per-company call minutes and projects what each client is contributing to the agency's CallRail bill. Useful for:

  • Deciding which client to renegotiate / upsell / drop

  • Sanity-checking the upcoming invoice

  • Quarterly reviews

Pricing assumes Call Tracking Starter ($50 base + 5 numbers + 250 mins bundled; $3/local number, $5/toll-free number, $0.05/local minute, $0.08/toll-free minute over bundle). Edit PRICING_* constants in server.py if you're on a different plan.

Args: account_id: Auto-resolves if omitted. days: Lookback window in days (default 30 = roughly one cycle). Ignored if start_date provided. start_date: 'YYYY-MM-DD'. end_date: 'YYYY-MM-DD' (defaults to today).

Returns: - agency: plan + totals + bundle utilization + cycle estimate - by_company[]: each company's minutes, active numbers, cost share (sorted by cost-share descending) - biggest_cost_driver: name of top company - partial_failures[]: per-company API errors. Each entry carries partial_calls_before_failure, partial_minutes_before_failure, partial_local_numbers, partial_tollfree_numbers so an under- reporting agency_total is observable, not silent. - notes: caveats about the cost model (toll-free minute pricing not yet differentiated; SMS not included).

Cost shares sum exactly to agency.estimated_cycle_total via largest- remainder rounding.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "usage_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
end_dateNo
account_idNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the exact pricing model assumed, that partial API failures are surfaced per-company with partial counters so an under-reported total is observable, and that SMS and toll-free minute differentiation are excluded. That is precisely the kind of hidden-behavior disclosure that prevents misreading the numbers.

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-loaded with the purpose and use cases, then cleanly sectioned into Args/Returns/notes; nothing is buried. The one piece of waste is the developer-facing instruction to edit PRICING_* constants in server.py, which does not help an agent call the tool.

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?

Covers aggregation semantics, failure modes, rounding guarantees, and cost-model caveats for a four-parameter analytics tool with no required arguments. An output schema exists and the description nonetheless enumerates key return fields and the largest-remainder rounding guarantee that ties cost shares to agency.estimated_cycle_total, which is exactly the interpretive context an output schema cannot express.

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?

Schema description coverage is 0%, so the description must carry the load, and it does: it explains that account_id auto-resolves, days defaults to 30 roughly one cycle, start_date format 'YYYY-MM-DD', end_date defaults to today, and critically that days is ignored when start_date is supplied. That parameter interaction is nowhere in 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?

States a specific verb+resource+scope: 'Per-company cost-attribution summary for the current cycle,' then pins down that it aggregates active trackers and per-company minutes and projects bill contribution. An agent can distinguish this from call_summary or call_stats without opening either schema.

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 three concrete use cases (renegotiate/upsell/drop decisions, invoice sanity-check, quarterly reviews), which clearly frames when the tool is appropriate. It never names a sibling alternative or states when not to use it, so the routing guidance is contextual rather than explicit.

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