Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

list_text_messages

Read-onlyIdempotent

Retrieve and filter SMS conversations sent to or received via CallRail trackers, with pagination plus company and date-window filtering.

Instructions

List SMS/text message conversations sent to or received via CallRail trackers. Paginated. Filterable by company and date window.

Receiving SMS works on standard accounts. Outbound SMS sending requires CallRail's A2P SMS API permission (returns 403 otherwise); see create_text_message notes if available on your plan.

Args: account_id: CallRail account ID. Auto-resolves if omitted. company_id: Filter to one company. Omit for all companies. days: Lookback in days (default 7). Ignored if start_date provided. start_date: 'YYYY-MM-DD'. end_date: 'YYYY-MM-DD' (defaults to today). per_page: Page size (max 250). page: 1-indexed.

Returns: JSON string with page, per_page, total_pages, total_records, and conversations[]. Each conversation has a list of inbound + outbound messages, customer phone number, the tracking number used, and timestamps.

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_text_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
pageNo
end_dateNo
per_pageNo
account_idNo
company_idNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered by structured data. The description adds pagination semantics, parameter defaults, and the 403 permission failure mode. The 403 remark is about outbound sending on what is a read-only listing tool, which is slightly misdirected but not contradictory.

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 purpose, filtering, and pagination before the Args block, with each argument line earning its place. The Returns block is somewhat redundant given an output schema exists, and the outbound-SMS parenthetical is a mild digression.

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 7-param, zero-required, read-only listing tool with annotations and an output schema, everything needed to call it correctly is present: defaults, precedence between days and start_date, page size cap, and auto-resolution of account_id. The Returns prose duplicates the output schema but adds no harm.

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 carries the full burden and does: it explains each of the 7 params, including that account_id auto-resolves, that days is ignored when start_date is given, that per_page maxes at 250, and that page is 1-indexed. That is meaning well beyond the bare schema titles and defaults.

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 ('List SMS/text message conversations') plus scope ('sent to or received via CallRail trackers') and the filtering/pagination dimensions. It does not distinguish itself from the sibling list_sms_threads, so an agent comparing the two list-style SMS tools gets no explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives some real conditions: filtering by company or date window, and a warning that outbound SMS behavior depends on the A2P permission and returns 403 otherwise. However, it never says when to choose this over list_sms_threads or get_text_message, so the when-to-use guidance is implied rather than explicit.

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