Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

create_notification

Creates a notification rule to route call or SMS alerts to users or email recipients by event type and optional company or tracker scope.

Instructions

Create a notification rule (who gets pinged on which event).

Args: alert_type: Which calls trigger the rule. One of 'all', 'first_call', 'missed_and_vm', 'vm_only'. Required when call_enabled is true; omit for SMS-only rules. user_id: 'USR...' id of the user being notified. If neither user_id nor email is given, CallRail assigns the rule to the user who owns the API key. company_id, tracker_id: Optional scope filters. send_email / send_desktop / send_push: Channel toggles. call_enabled / sms_enabled: Trigger toggles; set call_enabled for call alerts and sms_enabled for text alerts. email: Creates an email-only recipient instead of a user. CallRail requires a company_id or tracker_id with it and allows only send_email. agent_id: 'USR...' id of the agent whose calls trigger the rule. name: Accepted for backward compatibility and NOT sent: CallRail generates the name from the configuration. account_id: Auto-resolves if omitted.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
emailNo
user_idNo
agent_idNo
send_pushNo
account_idNo
alert_typeNo
company_idNo
send_emailNo
tracker_idNo
sms_enabledNo
call_enabledNo
send_desktopNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.3.2
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Agent Id"
      +}
    • addedInput schema / properties / alert_type / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / alert_type / default
      Added value: +null
    • removedInput schema / properties / alert_type / type
      Removed value: -"string"
    • addedInput schema / properties / name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / name / default
      Added value: +null
    • removedInput schema / properties / name / type
      Removed value: -"string"
    • addedInput schema / properties / user_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / user_id / default
      Added value: +null
    • removedInput schema / properties / user_id / type
      Removed value: -"string"
    • removedInput schema / required
      Removed value: -[
      -  "name",
      -  "user_id",
      -  "alert_type"
      -]
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds genuinely non-obvious behavior: 'name' is accepted for backwards compatibility but NOT sent, account_id auto-resolves when omitted, and email-only recipients are restricted to send_email. The silent name-drop is exactly the kind of gotcha an agent could not infer from the schema.

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?

Purpose is front-loaded in one sentence, then args are listed in a scannable per-parameter format with no filler sentences. The length is justified by 13 undocumented parameters, though a few lines (company_id/tracker_id 'optional scope filters') are thinner than the rest.

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?

Given 13 parameters, zero schema coverage, and an output schema that already covers return values, the description supplies nearly everything needed: requiredness, defaults implied by channel/trigger toggles, recipient fallbacks, and the ignored 'name' field. What is missing is side-effect context, e.g. whether creating a rule immediately sends anything.

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 13 parameters, so the description carries the full burden and does: every parameter is explained with format hints ('USR...' ids), enumerated alert_type values, channel vs. trigger toggle distinction, and the fallback when neither user_id nor email is supplied. This is substantially more meaning than the bare titles in the schema.

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?

States a specific verb and resource ('Create a notification rule') and adds a clarifying parenthetical defining what a rule is: who gets pinged on which event. Clear enough to distinguish from read/query siblings, though it never names update_notification or delete_notification as the mutation counterparts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Conditional activation rules are documented well (alert_type required when call_enabled is true, omit for SMS-only rules; email recipient requires company_id or tracker_id). However there is no guidance on when to use this versus update_notification or delete_notification, so the alternative-selection half of the dimension is absent.

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