Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

bulk_update_calls

Destructive

Apply the same tags, note, lead status, or spam flag to all CallRail calls matching a filter; preview changes first with dry-run and cap batches at 500 calls.

Instructions

Apply the same update to every call matching a filter.

Useful for: "tag every Bing call this month as low-priority", "mark all <30s unanswered calls from this number as spam", "add a note to every call from a specific landing page". Replaces dozens of sequential update_call invocations with one tool call.

Safety: dry_run=True by default, so this tool returns a preview of which calls WOULD be updated without actually writing. Pass dry_run=False to commit. Hard cap of 500 calls per invocation to prevent runaway bulk operations.

Args: company_id, days: filter (same semantics as list_calls). At least one filter must be provided to avoid "update everything ever". answer_status: server-side filter. One of 'answered', 'missed', or 'voicemail'. 'missed' includes calls that reached voicemail. answered: DEPRECATED alias ('true' -> answered, 'false' -> missed). Before v1.2.0 this was forwarded as an answered query param that CallRail does not implement: the filter was silently dropped, so a commit run updated EVERY call in the window. source: applied CLIENT-SIDE (exact, case-insensitive match on each call's source field) because CallRail has no server-side source filter. Matching happens before the 500-cap is applied. set_tags_add: tag names to ADD to each matched call (preserves existing tags). Mutually compatible with other set_* fields. set_note: note text to set on each matched call (replaces existing). set_lead_status: e.g. 'good_lead', 'not_a_lead'. set_spam: True to mark spam. NOTE: CallRail does not support un-marking spam via the API, so set_spam=False is rejected. dry_run: If True (default), return preview only. False = commit. account_id: Auto-resolves if omitted.

Returns: - If dry_run: {"dry_run": true, "matched": N, "would_update_calls": [...], "set_fields": {...}} - Else: {"dry_run": false, "matched": N, "updated": M, "failed_count": K, "failures": [...]}

Performance note: when set_tags_add is used, the commit phase issues 1 extra GET per call to fetch fresh tags before merging (race protection against concurrent tag writes). For a max bulk of 500 calls, this is ~2× the latency vs other set_* fields. Other update fields (note, lead_status, spam) skip the extra GET.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
sourceNo
dry_runNo
answeredNo
set_noteNo
set_spamNo
account_idNo
company_idNo
set_tags_addNo
answer_statusNo
set_lead_statusNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • addedInput schema / properties / answer_status
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Answer Status"
      +}
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

This goes well past the annotations (readOnlyHint=false, destructiveHint=true): it discloses that dry_run defaults to True, that there is a 500-call cap, that set_spam=False is rejected by the API, that source filtering is client-side and applied before the cap, and that set_tags_add costs one extra GET per call. Minor gap: it doesn't say whether partial failures on the commit path roll back or leave the batch half-updated, which matters for a destructive tool.

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, then examples, safety, args, returns, and a performance note; the section headers make it skimmable. It's long, but almost all of it earns its place – the only clear redundancy is the Returns block restating a return shape the tool already exposes via an output schema.

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?

For an 11-parameter destructive bulk tool with zero schema coverage this covers filters, defaults, caps, failure modes, and cost. The main omission is what happens to already-applied mutations when some of the batch fails, and whether a caller can see partial state before re-running.

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% across 11 parameters, so the description carries the full burden and does: every parameter (company_id, days, answer_status, answered, source, set_tags_add, set_note, set_lead_status, set_spam, dry_run, account_id) is explained with semantics beyond its name, including enum values, the client-side exact/case-insensitive source match, the additive-vs-replace distinction, and account_id auto-resolution.

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 first sentence names a specific verb and resource with scope: 'Apply the same update to every call matching a filter.' It explicitly contrasts with the sibling update_call by saying it 'Replaces dozens of sequential `update_call` invocations with one tool call', so an agent can pick between them 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?

Three concrete use-case examples ('tag every Bing call this month as low-priority', spam-marking short unanswered calls, adding a note by landing page) show the intended shape of a call, and the description states the hard constraint that at least one filter must be provided 'to avoid update everything ever'. It also directs the agent to dry_run for preview and to list_calls for filter semantics.

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