Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

get_call_page_views

Read-onlyIdempotent

Retrieve a caller's page-view history with timestamps before and around dialing to trace the session journey for conversion debugging.

Instructions

Get the visitor's page-view history behind a call: which pages they browsed (with timestamps) before and around dialing. Pairs with call_eligibility_check for conversion debugging: shows the actual session journey that led to the call.

Args: call_id: 'CAL...' id. account_id: Auto-resolves if omitted. per_page: Page size (max 250). page: 1-indexed.

Returns: JSON string with page_views[] (paginated).

Only available for calls placed to session trackers (a CallRail restriction). time_zone (IANA) localizes the timestamps.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "call_id": "<call_id>"
    },
    "name": "get_call_page_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
call_idYes
per_pageNo
time_zoneNo
account_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.2
    • addedInput schema / properties / time_zone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Time Zone"
      +}
  2. Addedv1.0.4

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world semantics, and the description adds genuinely new behavioral context: the CallRail session-tracker availability restriction and the fact that `time_zone` localizes returned timestamps. Return shape is mentioned but is largely redundant with the existing output 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 sibling pairing before the arg list, and each sentence carries information. The trailing aside about session trackers and time_zone is slightly buried and would read better next to the usage context, but there is no filler.

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 an output schema and full annotations, the description supplies what those fields cannot: the session-tracker availability restriction, param formats, and localization behavior. Only explicit error/failure behavior when the tracker restriction is violated is left unstated, a minor gap for a read-only paginated tool.

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 carries the full burden and does so: call_id format ('CAL...'), account_id auto-resolution when omitted, per_page maximum of 250, page being 1-indexed, and time_zone as an IANA identifier affecting timestamp output. Every one of the five parameters gains meaning beyond the bare schema types.

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 and resource: retrieving a call's visitor page-view history with timestamps of pages browsed before/around dialing. It also differentiates itself by naming `call_eligibility_check` as the companion tool for conversion debugging, so an agent can place it in the sibling set without opening a 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 a clear usage context (conversion debugging, tracing the session journey that led to a call) and a hard precondition: only available for calls placed to session trackers. It doesn't name an explicit alternative to use when that precondition fails, which keeps it short of a 5.

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