Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

create_form_submission

Create a CallRail form submission manually to record offline or non-CallRail leads with attribution, lead status, notes, tags, and value.

Instructions

Manually create a form submission (e.g. backfill an offline lead).

Useful when you receive a lead through a non-CallRail-tracked channel (paper form, in-person, etc.) and want it visible in CallRail with proper attribution + lead-status workflow.

CallRail's POST /form_submissions accepts exactly: company_id, form_url, form_data, and EITHER session_id OR all three of referrer / referring_url / landing_page_url. It parses phone numbers out of form_data to find or create the person, so put the customer's phone, name and email inside form_data (there are no customer_* body fields).

Args: company_id: 'COM...' id. Required. form_url: URL of the page the form was submitted to. Required. form_data: Dict of form-field values, e.g. {"name": "Kevin", "email": "k@x.com", "phone": "412-555-1234"}. Required and non-empty. referrer / referring_url / landing_page_url: Attribution. All three are required unless session_id is given. Use the original web context if known, or "(direct)" / "https://offline" placeholders for in-person leads. session_id: 'SES...' id of an existing web session; replaces the three attribution fields. note, tags, value, lead_status: Lead-management fields. The POST endpoint does not accept them, so they are applied with a follow-up PUT; the response reports lead_fields_applied or lead_fields_not_applied (plus api_warnings). value is sent as a currency string ("12.50"); lead_status is 'good_lead' or 'not_a_lead'. 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": {
      "company_id": "<company_id>",
      "form_url": "<form_url>",
      "form_data": "<form_data>"
    },
    "name": "create_form_submission"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
tagsNo
valueNo
form_urlYes
referrerNo
form_dataYes
account_idNo
company_idYes
session_idNo
lead_statusNo
referring_urlNo
landing_page_urlNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv1.3.2
    • removedInput schema / properties / customer_email
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Customer Email"
      -}
    • removedInput schema / properties / customer_name
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Customer Name"
      -}
    • removedInput schema / properties / customer_phone_number
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Customer Phone Number"
      -}
    • addedInput schema / properties / form_data / additionalProperties
      Added value: +true
    • removedInput schema / properties / form_data / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / form_data / default
      Removed value: -null
    • addedInput schema / properties / form_data / type
      Added value: +"object"
    • removedInput schema / properties / form_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / form_url / default
      Removed value: -null
    • addedInput schema / properties / form_url / type
      Added value: +"string"
    • addedInput schema / properties / landing_page_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / landing_page_url / default
      Added value: +null
    • removedInput schema / properties / landing_page_url / type
      Removed value: -"string"
    • addedInput schema / properties / referrer / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / referrer / default
      Added value: +null
    • removedInput schema / properties / referrer / type
      Removed value: -"string"
    • addedInput schema / properties / referring_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / referring_url / default
      Added value: +null
    • removedInput schema / properties / referring_url / type
      Removed value: -"string"
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session Id"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "company_id",
      -  "referrer",
      -  "referring_url",
      -  "landing_page_url"
      -]New value: +[
      +  "company_id",
      +  "form_url",
      +  "form_data"
      +]
  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?

Beyond the annotations (which only say this is a non-destructive, non-idempotent write), the description discloses that lead fields are applied via a follow-up PUT, that the response reports lead_fields_applied / lead_fields_not_applied plus api_warnings, and that phone numbers are parsed out of form_data to find or create the person. Those are exactly the side effects an agent needs before calling a mutating 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?

The purpose and channel context are front-loaded, followed by a structured Args block that maps one-to-one onto the parameters. It is long, but for a 12-parameter tool with zero schema coverage almost every sentence carries necessary information; only the restated endpoint route is mildly redundant.

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?

Given 12 parameters, an output schema, and a two-step create-then-PUT implementation, the description covers inputs, exclusivity rules, side effects, and response fields. An agent has everything required to build a correct call without guessing.

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 12 parameters, so the description carries the full burden and does: it documents the required set, the session_id-vs-three-attribution-fields mutual exclusion, placeholder conventions for offline leads, a concrete form_data example, currency formatting for value, allowed lead_status values, 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 states a specific verb and resource ('Manually create a form submission') and immediately scopes the intent with an example ('backfill an offline lead'). This is clearly distinguishable from the sibling get_form_submission and update_form_submission, which read and modify rather than create.

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 a concrete when-to-use condition: leads arriving through a non-CallRail-tracked channel such as a paper form or an in-person interaction. It does not explicitly name an alternative tool or state when not to use it, so it stops short of full routing guidance, but the intended context is unambiguous.

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