Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

list_leads

Read-onlyIdempotent

Retrieve unique lead records across calls, forms, and texts, with company filtering and pagination for account-wide lead review.

Instructions

List leads (unique people) across calls, forms, and texts.

A lead is CallRail's deduplicated person record: one entry per customer regardless of how many times they called / submitted / texted. Use get_lead_timeline for a lead's full cross-channel history.

Args: account_id: Auto-resolves if omitted. company_id: Filter to one company. per_page: Page size (max 250). page: 1-indexed.

Returns: JSON string with page, per_page, total_pages, total_records, and leads[]. Each lead has id ('PER...'), name, phone, email, company_id, company_name, created_at.

sort ('created_at' | 'name' | 'email') with order ('asc' | 'desc').

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

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNo
orderNo
per_pageNo
account_idNo
company_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.2
    • addedInput schema / properties / order
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Order"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sort"
      +}
  2. Addedv1.0.4

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: deduplication semantics ('one entry per customer regardless of how many times they called') and that account_id auto-resolves when omitted. It does not describe pagination limits behavior or ordering defaults.

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 tool's purpose and the key deduplication concept, then cleanly sectioned into Args and Returns. The per-lead field list in Returns is largely redundant because an output schema exists, which is the main wasted wording.

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?

A paginated read with six optional parameters is fully covered: purpose, every parameter's meaning, alternative for history, and return shape. Since an output schema exists, the Returns section is a bonus rather than a necessity, and no critical calling information appears 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 must carry the parameters, and it does: account_id auto-resolves, company_id filters to one company, per_page max 250, page is 1-indexed, and sort/order values are enumerated. The sort/order explanation is tacked on after the Returns block, and defaults are not restated, so it is slightly loose rather than exhaustive.

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 ('List leads') and then defines the resource precisely as CallRail's deduplicated person record, which an agent could not infer from the name alone. It also distinguishes the resource from raw call/form/text records, so an agent can tell what it is getting versus the sibling list_* tools.

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?

Explicitly routes the agent to get_lead_timeline when full cross-channel history is needed, which is the most likely confusion case for this tool. It does not say when to prefer list_calls or list_form_submissions instead, leaving some sibling selection to inference.

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