Skip to main content
Glama

Define per-contact lines for a campaign

argorant_set_campaign_personalization
Destructive

Use it when the user wants each email to carry a line written for that contact, such as "mention something specific about each company". It sets up 1 to 5 {{custom_...}} variables, each with one instruction for writing the line and one fallback that reads well for anyone. It replaces the earlier setup, and every contact without their own line gets the fallback at once, so the campaign can launch at any time. To save written lines use argorant_set_lead_custom_fields, and for progress argorant_campaign_personalization_status. The result is plain data with the saved variables, how many contacts have the fallback, and playbook, the written method for writing the lines, as plain data. Next, look up facts for each contact and never invent anything, show the user 5 example lines first, and after their yes write the rest. Instructions take up to 4,000 characters, lines 20 to 300 and the template 10,000. More in the docs at https://docs.argorant.com/docs/agents/tools#campaigns

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": {
      "campaign_id": "<campaign_id>",
      "variables": "<variables>"
    },
    "name": "argorant_set_campaign_personalization"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateNoOptional email text the line goes into, up to 10,000 characters.
variablesYes1 to 5 variables, as [{name, instruction, fallback, max_length?, case?}]. name starts with custom_, such as custom_lead_types. instruction says what the line says, its length and style, with 2 or 3 examples. fallback is a line that reads well for anyone. case auto (the default) lowercases the first letter of a line used in the middle of a sentence and keeps a line that starts a sentence as written; sentence_middle always lowercases it and as_is keeps every line exactly as written. Acronyms, names, brands and places always stay as written.
allow_linksNofalse (the default, recommended) keeps links out of the lines.
campaign_idYesThe campaign's id, from argorant_list_campaigns.
extra_columnsNoContact or company fields worth reading for the lines, such as industry, city or title.

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With destructiveHint=true already set, the description still adds important behavior: it replaces the earlier setup and immediately assigns the fallback to every contact that lacks its own line, so the campaign can launch at any time. It also states length limits (4,000-character instructions, 20–300-character lines, 10,000-character template) and outlines the response contents. It could go further on error and permission behavior, but this is well beyond what the annotations declare.

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 trigger are front-loaded, and the remaining sentences add routing, workflow, and limits rather than filler. Minor redundancy ("as plain data" appears twice) and the docs URL keep it short of ideal, but it reads cleanly for a tool of this complexity.

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 destructive health tool with 5 parameters, it covers the trigger, limits, sibling routing, and the operational sequence an agent must follow, including the rule to never invent facts. With an output schema present it need not detail return values, and nothing essential for a correct call is missing.

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 the schema already defines name, instruction, fallback, case, template, and extra_columns. The description reinforces the variable shape and repeats the length limits, but it never mentions allow_links or extra_columns, so it largely restates structured data. Baseline 3 is appropriate.

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 description states a concrete purpose in concrete terms: it sets up 1 to 5 {{custom_...}} variables, each with a writing instruction and a fallback line. It also names the sibling that saves written lines (argorant_set_lead_custom_fields) and the sibling that reports progress, so an agent can separate this tool from its neighbors without opening either 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?

It gives an explicit trigger ('Use it when the user wants each email to carry a line written for that contact'), then names alternatives and when to use them, and it also lays out the follow-up sequence: look up facts, show 5 example lines, get the user's approval, then write the rest. The agent knows both when to call this tool and what to do after it returns.

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.