Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

get_lead_timeline

Read-onlyIdempotent

Retrieve a lead's full cross-channel timeline—every call, form, and text thread with first-touch and last-touch attribution—to reconstruct a customer's history in one response.

Instructions

Get a lead's full cross-channel activity timeline: every call, form submission, and text thread from that person in one response, with first-touch/last-touch attribution.

This replaces the manual "search calls by number + search forms by email" dance when reconstructing a customer's history.

Args: lead_id: 'PER...' lead id (from list_leads). account_id: Auto-resolves if omitted. per_page: Timeline page size (max 250). page: 1-indexed.

Returns: JSON string with lead (the person record) and timeline[] (chronological interaction entries, paginated).

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": {
      "lead_id": "<lead_id>"
    },
    "name": "get_lead_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
lead_idYes
per_pageNo
account_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds value beyond that: results are paginated, the timeline is chronological, per_page caps at 250, and account_id auto-resolves when omitted — meaningful behavioral context for invocation.

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 core purpose is front-loaded in the first sentence, with structured Args/Returns blocks after. Wording is efficient, though the Returns block partially duplicates the existing output schema and could be trimmed.

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 a 4-parameter read tool with annotations and an output schema, the description covers purpose, invocation context, all parameter meanings, and pagination behavior. Nothing an agent needs to call it correctly is missing.

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 description coverage is 0%, so the description carries the full burden and does so well: lead_id format ('PER...') and its source (list_leads), account_id auto-resolution, per_page maximum, and 1-indexed paging are all explained. The only minor gap is not restating the per_page default of 100, which the schema already supplies.

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 states a specific verb and resource ('Get a lead's full cross-channel activity timeline') and enumerates exactly what is aggregated: calls, form submissions, and text threads in one response, plus first-touch/last-touch attribution. This clearly distinguishes it from single-channel siblings like get_call, get_form_submission, and get_sms_thread.

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?

It gives a concrete usage scenario ('replaces the manual search calls by number + search forms by email dance when reconstructing a customer's history'), which tells the agent when this aggregate view is preferred. It stops short of explicit exclusions or naming a narrower sibling for single-interaction lookups.

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