Skip to main content
Glama

create_custom_variable

Declare a custom personalization variable, or update one that already exists (upsert by token, so retries are safe). The main reason to call this rather than relying on auto-discovery is default_value: without a default, any lead missing this value causes the whole message to fall back to the step's generic fallback text. Token is normalized: 'Recent Funding' becomes recent_funding. Tokens colliding with built-ins (firstName, lastName, fullName, company, jobTitle, location, headline, email, sender*) are rejected. A workspace holds at most 50 variables; past that this returns 400 variable_limit_reached and you must delete one first.

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": {
      "token": "<token>"
    },
    "name": "create_custom_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoHuman-friendly name shown in the UI picker.
tokenYesVariable name WITHOUT braces, e.g. 'recent_funding' for {{recent_funding}}.
descriptionNoOptional help text shown in the picker tooltip.
default_valueNoSubstituted when a lead has no value of its own. Strongly recommended: it's the difference between a partially-covered list sending personalized messages and sending the generic fallback. Trimmed and truncated at 500 characters; the response echoes the stored variable, so a default that was shortened comes back visibly shortened.
idempotency_keyNoUUID for safe retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: token normalization ('Recent Funding' becomes recent_funding), rejection of built-in collisions with a concrete list of reserved names, a per-workspace cap of 50 with the exact error code, and retry safety via token upsert. Minor tension: it claims retries are safe via upsert while annotations set idempotentHint=false, and a separate idempotency_key parameter exists, which leaves the actual idempotency contract slightly ambiguous.

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?

Four dense sentences with no filler, front-loaded with the action and the reason to choose it. Limit and error information is placed last, which is the right priority order for a calling agent.

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 mutating, five-parameter tool with no output schema, the description covers purpose, decision criteria, normalization, reserved names, quota, and the failure mode, and even notes that the response echoes the stored variable. Only permission/auth requirements and the exact success payload are left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds real meaning for token (normalization rules and reserved-name collisions) that the schema does not state, but says nothing new about label, description, or idempotency_key beyond what the schema already documents.

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 ('Declare a custom personalization variable') and immediately clarifies the upsert semantics by token, so the agent knows this both creates and updates. Combined with the note about auto-discovery, the purpose is unambiguous without opening the schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative ('rather than relying on auto-discovery') and the deciding factor (default_value prevents whole-message fallback to generic text). It also gives a hard precondition with a remedy: past 50 variables the call returns 400 variable_limit_reached and you must delete one first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources