Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

call_timeseries

Read-onlyIdempotent

Fetch call volume trends over time with server-side bucketing by hour, day, week, or month. Validates the 200-datapoint limit before requesting, returning clear errors instead of raw 400s.

Instructions

Call volume over time via CallRail's /calls/timeseries.json. One request for a trend line instead of client-side bucketing.

CallRail refuses any request whose result set would exceed 200 data points. With the default daily interval that caps the window at ~200 days; use interval='week' or 'month' for longer ranges. This tool checks the limit before sending so you get a clear message instead of a raw 400.

Args: 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. Valid: total_calls, missed_calls, answered_calls, abandoned_calls, first_time_callers, average_duration, formatted_average_duration, leads. interval: Bucket size. One of 'hour', 'day', 'week', 'month', 'year'. Defaults to CallRail's own choice (daily) when omitted. account_id: Auto-resolves if omitted.

Returns: JSON string with total_results and data[], one entry per bucket ({key/date, }).

Server-side filters (documented, live-verified 2026-10-05): answer_status ('answered' | 'missed' | 'voicemail'; missed includes voicemail), direction, device, lead_status ('good_lead' | 'not_a_lead' | 'not_scored'), first_time_callers, min_duration / max_duration (seconds), tags (any of), tracker_ids, search (phone fragment, name, note, source) and time_zone (IANA; also sets "today" for days). fields is validated against VALID_CALL_STATS_FIELDS.

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": "call_timeseries"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
tagsNo
deviceNo
fieldsNo
searchNo
end_dateNo
intervalNo
directionNo
time_zoneNo
account_idNo
company_idNo
start_dateNo
lead_statusNo
tracker_idsNo
max_durationNo
min_durationNo
answer_statusNo
first_time_callersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.3.2
    • addedInput schema / properties / answer_status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Answer Status"
      +}
    • addedInput schema / properties / device
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Device"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Direction"
      +}
    • addedInput schema / properties / first_time_callers
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "First Time Callers"
      +}
    • addedInput schema / properties / lead_status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Lead Status"
      +}
    • addedInput schema / properties / max_duration
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Max Duration"
      +}
    • addedInput schema / properties / min_duration
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Min Duration"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Search"
      +}
    • addedInput schema / properties / tags
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tags"
      +}
    • addedInput schema / properties / time_zone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Time Zone"
      +}
    • addedInput schema / properties / tracker_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tracker Ids"
      +}
  2. Changed1 schema field changedv1.2.2
    • addedInput schema / properties / interval
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Interval"
      +}
  3. Addedv1.0.4

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the supplied readOnly/idempotent annotations, it discloses a real operational constraint: CallRail rejects result sets over 200 data points, and this tool pre-validates so the caller gets a clear message instead of a raw 400. It also notes account_id auto-resolution, time_zone's effect on what 'today' means for days, and that filters were live-verified with a date stamp — none of which is in the schema.

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 purpose and the 200-point cap, then organizes details into Args/Returns/filters blocks, which is easy to scan. A few phrases restate themselves (the daily default appears twice) and the nested description-for-a-description structure is long, but nearly every line carries usable information.

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?

For an 18-parameter read tool with zero schema descriptions, the definition covers purpose, parameter meanings, limits, precedence rules and filter vocabulary. The output schema exists, and the brief Returns note is a bonus rather than a crutch, so nothing essential is missing.

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 coverage is 0%, so the description must carry the burden and does: it explains days vs start_date/end_date precedence, documents interval's full enum including the default, enumerates the valid fields values, and lists every server-side filter (answer_status, direction, device, lead_status, first_time_callers, min/max_duration units, tags-as-any-of, tracker_ids, search semantics, time_zone). This covers all 18 parameters with meaning the schema does not provide.

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 and resource with the exact upstream endpoint ('Call volume over time via CallRail's /calls/timeseries.json') and clarifies the output shape is a trend line rather than a single aggregate. It does not name the sibling it displaces (e.g. call_stats or compare_periods), so the differentiation from those tools must be inferred from the 'trend line' framing.

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 concrete selection rules: use interval='week' or 'month' for ranges beyond ~200 days, days is ignored when start_date is given, and omitted interval lets CallRail choose daily. Lacks explicit 'use X instead when you only need totals' routing to siblings, but the in-tool guidance is clear and actionable.

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