Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

update_company

Idempotent

Update a CallRail company's mutable settings by sending only explicit fields; omitted values remain unchanged, and boolean toggles override current state.

Instructions

Update mutable settings on a company. Pass None to leave a field unchanged; only fields with explicit values are sent in the PUT body.

CRITICAL: Any boolean toggle you set will OVERRIDE current state. If a company has CallScribe enabled and you call update_company(name='New Name') without passing callscribe_enabled, CallScribe stays on. But passing callscribe_enabled=False will DISABLE CallScribe (a paid feature). Be deliberate with bool args.

Empty-string name / time_zone are rejected (almost always a mistake; pass None to leave them alone).

Args: company_id: 'COM...' id. name: New display name. Empty string rejected. Max 255 chars. time_zone: IANA tz string (e.g. 'America/New_York'). callscore_enabled: CallScore AI lead scoring. PAID add-on. lead_scoring_enabled: NOT settable via the API (read-only field); passing it returns an error. Toggle it in the CallRail UI. swap_exclude_jquery: Deprecated by CallRail, has no effect. Not sent; reported under api_warnings in the response. callscribe_enabled: Conversation Intelligence (transcripts + call highlights). PAID feature. keyword_spotting_enabled: Deprecated by CallRail, has no effect. Not sent; reported under api_warnings in the response. form_capture: Enable CallRail Form Tracking on this company. Sent as CallRail's external_form_capture PUT field. swap_ppc_override: Override the original source when a visitor arrives via PPC. swap_landing_override: Landing-page URL parameter (for example 'utm_source') that overrides the original source. Pass "" to turn the override off (sent as null). swap_cookie_duration: Visitor cookie lifetime, with swap_cookie_duration_unit ('months' | 'weeks' | 'days'). CallRail caps it at 6 months. account_id: CallRail account ID. Auto-resolves if omitted.

Returns: JSON string with the updated company object, plus api_warnings when a deprecated no-op field was dropped.

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": {
      "company_id": "<company_id>"
    },
    "name": "update_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
time_zoneNo
account_idNo
company_idYes
form_captureNo
callscore_enabledNo
swap_ppc_overrideNo
callscribe_enabledNo
swap_exclude_jqueryNo
lead_scoring_enabledNo
swap_cookie_durationNo
swap_landing_overrideNo
keyword_spotting_enabledNo
swap_cookie_duration_unitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.2
    • addedInput schema / properties / swap_cookie_duration
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Swap Cookie Duration"
      +}
    • addedInput schema / properties / swap_cookie_duration_unit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Swap Cookie Duration Unit"
      +}
    • addedInput schema / properties / swap_landing_override
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Swap Landing Override"
      +}
    • addedInput schema / properties / swap_ppc_override
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Swap Ppc Override"
      +}
  2. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

The description discloses the PUT body semantics (only explicit values are sent), that boolean toggles override rather than merge, that some flags are paid features, and that deprecated no-ops surface under `api_warnings` — all beyond the annotations, which only say readOnly=false, idempotent=true, destructive=false. It notably sharpens the destructiveHint=false claim by warning that a stray bool can disable a paid feature, a nuance the annotation cannot convey; the description would rate lower without this content, so a 3 reflects that the annotations already cover the safety profile while the description still adds real override semantics.

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?

Front-loaded with the None/override rule, then the CRITICAL bool warning, then an Args block that maps one-to-one onto the schema. Every sentence carries operative information — the paid-add-on and deprecation notes exist precisely because those flags are easy to set by accident.

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 a 14-parameter mutation tool with zero schema descriptions, this is close to complete: override semantics, rejected values, unsupported fields, and the api_warnings return signal are all covered, and an output schema exists so detailed return documentation is not required. Only the company_id identifier format and account_id fallback behavior are left slightly thin.

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% across 14 parameters, so the description carries the full burden — and it does, documenting every parameter including the traps: lead_scoring_enabled is read-only API-side, swap_exclude_jquery and keyword_spotting_enabled are no-ops, form_capture maps to CallRail's `external_form_capture`, swap_landing_override accepts "" to disable (sent as null), and swap_cookie_duration pairs with a unit capped at 6 months. Minor gaps remain: no format example for company_id beyond the 'COM...' prefix and no stated default for account_id resolution.

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?

The description opens with a specific verb and resource: 'Update mutable settings on a company,' and the emphasis on *mutable* implicitly draws the boundary against create_company/delete_company. It does not explicitly name a sibling for reading or deleting, so routing depends on the agent inferring the boundary from the verb.

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?

It gives clear usage rules: pass None to leave fields unchanged, empty-string name/time_zone are rejected, lead_scoring_enabled cannot be set via the API and must be toggled in the CallRail UI, and deprecated flags are silently dropped. No explicit 'use X instead when Y' statement against a named sibling, but the field-level direction is unusually strong.

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