Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

list_sms_threads

Read-onlyIdempotent

Retrieve SMS threads with lead-management details like notes, value, tags, qualification, and state. Filter by date range, company, or search to find and update lead threads.

Instructions

List SMS threads. Unlike list_text_messages (conversation transcripts), threads carry the lead-management surface: notes, value, tags, lead_qualification, state. Threads are UPDATABLE via update_sms_thread.

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 sms_threads[]. Each thread has id, customer_name / customer_phone_number, current + initial tracker/tracking-number, notes, value, tags, lead_qualification, state.

days / start_date / end_date window the threads (CallRail wants start and end together, so a lone start_date is paired with today); search matches phone number, name and tag name.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
pageNo
searchNo
end_dateNo
per_pageNo
account_idNo
company_idNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.2
    • addedInput schema / properties / days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Days"
      +}
    • addedInput schema / properties / end_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "End Date"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Search"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Start Date"
      +}
  2. Addedv1.0.4

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare this a safe, idempotent, closed-world read; the description goes further by disclosing implicit behavior an agent could not otherwise predict: `account_id` auto-resolves, `per_page` is capped at 250, `page` is 1-indexed, and a lone `start_date` gets silently paired with today because CallRail requires both bounds. Those are non-obvious coercion rules that materially affect call correctness.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the sibling distinction and the mutation pointer, then uses Args/Returns/windowing blocks that scan cleanly. Every sentence carries information — no filler, no restatement of the tool name beyond the opening identification.

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 eight-parameter, zero-schema-coverage read tool, the description supplies the parameter meanings, the return shape, the date-pairing quirk, and the sibling routing. An output schema exists, yet the brief field listing still helps an agent recognize which thread fields are lead-management relevant.

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 all eight parameters, and it largely does: auto-resolution for `account_id`, filtering for `company_id`, the 250 cap on `per_page`, 1-indexing for `page`, windowing for `days`/`start_date`/`end_date`, and what `search` actually matches (phone, name, tag name). The remaining gap is that precedence between `days` and explicit date bounds is never stated, so an agent cannot tell what happens if both are supplied.

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?

"List SMS threads" is a specific verb+resource, and the description immediately distinguishes it from the sibling `list_text_messages` (transcripts) by naming the lead-management fields threads carry. It also flags the mutability path via `update_sms_thread`, so an agent can place the tool among its siblings 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 Guidelines5/5

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

It states explicitly when to pick this over the transcript tool and names `update_sms_thread` as the mutation counterpart. The Args section clarifies filtering usage (company scoping, paging, date windowing, search), leaving little to inference about how the tool is meant to be driven.

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