Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

create_tracker

Provisions a new CallRail tracking phone number for a company, requiring billing confirmation. Specify destination number, source type, and area code or toll-free options.

Instructions

⚠️ Create a new tracking phone number (tracker). THIS COSTS MONEY.

CallRail charges per provisioned number. Typical pricing as of 2026:

  • Local numbers: ~$3/month each

  • Toll-free (8XX): ~$3-5/month each

  • Session pools: charged per number × pool_size (so pool_size=8 = 8x)

  • Plus per-minute usage (~$0.05/min on answered calls)

Most plans bundle 5-10 numbers; provisioning beyond your bundle adds overage charges. Some plans prorate partial-month usage, so creating and immediately deleting can still produce a small charge depending on your contract.

You must pass confirm_billing=True to actually create. This guards against accidental provisioning when an AI is exploring tools.

Args: name: Display name for the tracker (e.g. "Google Ads Call Extension"). company_id: 'COM...' id of the company this tracker belongs to. destination_number: Where calls forward to, e.g. "+14129548337". confirm_billing: REQUIRED. Set True to acknowledge the per-number cost. Returns an error envelope if False (default). type: 'source' (single number tied to one traffic source) or 'session' (DNI pool that swaps numbers per visitor). Default 'source'. source_type: For type='source', which traffic source. One of VALID_SOURCE_TYPES: 'all', 'landing_url', 'landing_params', 'offline', 'web_referrer', 'direct', 'search', 'google_ad_extension' (what Google Ads call extensions use), 'mobile_ad_extension', 'google_my_business', plus the production-observed 'facebook_all' and 'bing_all'. Ignored for type='session'. area_code: 3-digit area code to provision the local number from (e.g. '412'). Ignored if toll_free=True. toll_free: If True, provision an 8XX toll-free number instead. pool_size: For type='session' only. How many numbers in the DNI pool. CallRail requires 4-50; each pool number is billed separately, so this multiplies your monthly cost. whisper_message: Spoken to the agent answering the call so they know which marketing source it came from. recording_enabled: Record the call audio. Default True. greeting_text: Optional automated greeting text-to-speech. sms_enabled: Allow this number to receive/send SMS. Default True. search_engine / search_type: Required when source_type='search'. search_engine is 'google' | 'yahoo' | 'bing' | 'all'; search_type is 'paid' | 'organic' | 'all' (so Google Ads traffic is search_engine='google', search_type='paid'). landing: Required for source_type='landing_url' (a page, e.g. 'www.example.com/promo1') or 'landing_params' (a query string fragment, e.g. 'promo=1'). referrer: Required for source_type='web_referrer' (a referring site, e.g. 'facebook.com'). swap_targets: Phone numbers on the website that this tracker's number should replace (any formatting). Defaults to the destination number when omitted. campaign_name: Campaign label for reports. Source trackers only. account_id: Auto-resolves if omitted.

Returns the created tracker including its newly-provisioned tracking_numbers.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
typeNosource
landingNo
referrerNo
area_codeNo
pool_sizeNo
toll_freeNo
account_idNo
company_idYes
search_typeNo
sms_enabledNo
source_typeNoall
swap_targetsNo
campaign_nameNo
greeting_textNo
search_engineNo
confirm_billingNo
whisper_messageNo
recording_enabledNo
destination_numberYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.2
    • addedInput schema / properties / campaign_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Campaign Name"
      +}
    • addedInput schema / properties / landing
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Landing"
      +}
    • addedInput schema / properties / referrer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Referrer"
      +}
    • addedInput schema / properties / search_engine
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Search Engine"
      +}
    • addedInput schema / properties / search_type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Search Type"
      +}
    • addedInput schema / properties / swap_targets
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Swap Targets"
      +}
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, openWorld=false; the description goes well beyond that with per-number monthly pricing, pool_size multiplication, per-minute usage, bundle-overage and proration caveats, and the confirm_billing guard returning an error envelope. It also states what is returned (the tracker plus newly provisioned tracking_numbers).

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 the money warning in bold, then arg docs in a scannable list. The pricing breakdown is somewhat verbose (multiple bullet lines about proration and bundles), but each line conveys a distinct billing fact an agent caller would need, so little is truly wasted.

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 20-parameter, non-idempotent mutation that spends money, the definition covers cost, confirmation ritual, all parameter meanings, conditional requirements, and return content. With an output schema present, nothing material is missing.

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 20 parameters, so the description carries the whole burden and does so: every parameter is explained with format examples, defaults, enum values (source_type list, search_engine/search_type combinations), and conditional-requirement rules. That is well above what the bare schema provides.

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?

States a specific verb and resource ("Create a new tracking phone number (tracker)") and immediately flags the cost consequence, which alone distinguishes it from delete_tracker/get_tracker/update_tracker. The purpose is unmistakable before the schema is opened.

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?

Gives a strong precondition: confirm_billing=True is required and exists specifically to stop an agent that is only exploring tools from provisioning, plus conditional rules (search_engine/search_type required when source_type='search', landing for landing_url/landing_params, referrer for web_referrer). It does not explicitly route to a sibling (e.g. update_tracker when the number already exists), so it stops short of 5.

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