Skip to main content
Glama
CallRail MCP

CallRail MCP

by pghdma

create_tag

Create a CallRail tag scoped to a single company or the whole account. Set a name, optional color, and tag level; account-level tags apply to every company.

Instructions

Create a new tag, scoped to one company or to the whole account.

Args: name: Tag display name. company_id: 'COM...' id. Required for company-level tags (the default). Omit it when tag_level='account'. account_id: Auto-resolves if omitted. color: One of the 24 CallRail-supported colors (see VALID_TAG_COLORS): gray1-2, blue1-2, cyan1-2, purple1-2, pink1-4, red1-2, orange1-4, yellow1-2, green1-4. If omitted, CallRail defaults to 'gray1'. tag_level: 'company' (default) or 'account'. Account-level tags apply to every company and can only be created by administrators.

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>"
    },
    "name": "create_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
colorNo
tag_levelNo
account_idNo
company_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.3.2
    • addedInput schema / properties / company_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / company_id / default
      Added value: +null
    • removedInput schema / properties / company_id / type
      Removed value: -"string"
    • addedInput schema / properties / tag_level
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tag Level"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "company_id"
      -]New value: +[
      +  "name"
      +]
  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 already mark this as a non-read-only, non-destructive, non-idempotent, closed-world mutation, so the safety profile is covered. The description adds genuinely new behavioral context: account-level tags 'can only be created by administrators', the default tag_level is 'company', and the default color is 'gray1' — real constraints an agent cannot infer from annotations alone.

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 opening sentence is front-loaded with purpose and scope, followed by a clean per-argument breakdown. The color enumeration is long but earns its place because the schema cannot validate it; a small amount of redundancy exists in restating parameter names that the schema already lists.

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?

With an output schema present, return values need no explanation, and annotations plus the description together cover permissions, defaults, and the company/account branching. The remaining gap is failure behavior — duplicate names, invalid color rejection, or admin-permission errors — none of which is described for a mutation tool.

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% and the schema constrains nothing (color and tag_level are untyped strings), so the description carries the full burden — and does: it names all five parameters, explains the mutual exclusivity of company_id vs tag_level='account', documents account_id auto-resolution, and enumerates the 24 valid colors that the schema does not enforce.

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 first line gives a specific verb and resource ('Create a new tag') plus the scope dimension ('scoped to one company or to the whole account'), which is the key differentiator from update_tag/delete_tag. It stops short of naming a sibling or stating how it relates to tag-application tools like add_call_tags, so it is clear but not fully differentiated.

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 usage is implied through requirements: company_id is 'Required for company-level tags (the default)' and must be omitted when tag_level='account'. That tells the agent how to choose between the two modes, but there is no explicit when-to-use guidance versus update_tag, get_tag, or add_call_tags, and no guidance on what to do if the tag already exists.

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