Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

update_sms_thread

Idempotent

Update an SMS thread's lead-management fields, including notes, tags, monetary value, and lead qualification, to tag, note, or qualify texting leads via API.

Instructions

Update an SMS thread's lead-management fields. This is the texting equivalent of update_call. Closes the gap where texting leads couldn't be tagged / noted / qualified via API.

Args: thread_id: Thread id (from list_sms_threads). notes: Note text (max 4000 chars). Empty string rejected. value: Monetary value; sent as a currency string ("12.50"), which is what PUT /sms-threads accepts. tags: Tag names to apply (max 100). append_tags: If True (default), tags are ADDED to existing ones (CallRail's append_tags flag). If False, tags REPLACES the thread's tag list. lead_qualification: 'good_lead' or 'not_a_lead' (CallRail docs; null clears it, which this tool does not expose). account_id: Auto-resolves if omitted.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "update_sms_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
notesNo
valueNo
thread_idYes
account_idNo
append_tagsNo
lead_qualificationNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.4

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare a non-read-only, non-destructive, idempotent mutation; the description adds the behavior that actually matters: `append_tags` defaults to True so tags are ADDED, while False REPLACES the whole tag list. It also discloses input rejections (empty note string), the currency-string wire format PUT /sms-threads expects, and that nulling `lead_qualification` is not exposed.

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 purpose sentence followed by a structured Args block, so an agent can scan it quickly. The one piece of slack is the 'Closes the gap...' rationale, which is context rather than actionable instruction, though it is short enough not to hurt.

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?

With 7 parameters, 0% schema coverage, and an output schema already covering return values, this description supplies everything needed to call correctly: the thread_id source, per-param semantics and limits, the append-vs-replace fork, and the unsupported null-clear case. Nothing material is left for the agent to guess.

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: every one of the 7 parameters gets meaning plus constraints (notes max 4000 chars, tags max 100, allowed `lead_qualification` values, `account_id` auto-resolves). It even resolves the type mismatch between the schema's numeric `value` and the currency string actually sent.

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 opens with a specific verb and resource plus scope: "Update an SMS thread's lead-management fields." The analogy to `update_call` immediately tells an agent this is the texting counterpart of a known mutation tool, so it is distinguishable from siblings like `get_sms_thread` or `list_sms_threads` without opening the 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?

Guidance is clear: use this to tag/note/qualify texting leads via the API, and it points at `update_call` as the call-side equivalent, implicitly routing by resource type. It also tells the agent where `thread_id` comes from (`list_sms_threads`). It does not state explicit when-not conditions (e.g. bulk operations vs `bulk_update_calls`), keeping 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.