Skip to main content
Glama

Write each contact's personal line

argorant_set_lead_custom_fields
Destructive

Use it to save the personal lines you wrote for a campaign's contacts, or when the user says "tag these contacts as priority". It saves up to 5,000 contacts per call and adds or removes contact tags. Get the next contacts from argorant_campaign_personalization_status; a finished file of up to 200,000 rows goes through the API or the command line instead, followed with argorant_personalization_import_status. Only the campaign's own variables are accepted. Write each line only from facts you looked up for that contact and never invent a detail, number, customer or claim; when the facts do not tell you, send keep_fallback: true. Before the first save, show the user 5 example lines inside their sentences and wait for a yes. A saved line is never replaced unless overwrite is true; without it the contact keeps its line and is listed in kept_existing. Tags let the other campaign people tools select by tag. 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>",
      "leads": "<leads>"
    },
    "name": "argorant_set_lead_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadsYes1 to 5,000 contacts, as [{lead_id or email, values?, keep_fallback?, basis?, tags?, untag?}]. values maps each custom_ variable to its line, or to null with overwrite true to clear it. keep_fallback true keeps the fallback for a contact with no usable facts and takes them off the list; false puts them back on it. basis says in a few words where the fact came from, up to 200 characters. tags (a list, or tag as one text) and untag add and remove contact tags, saved in lower case; an entry with only tags needs no values.
overwriteNotrue replaces or clears lines the contacts already have. Leave it false (default) so saved lines are never replaced by accident.
campaign_idYesThe campaign's id, from argorant_list_campaigns.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, but the description adds real context: a 5,000-contact per-call cap, that existing lines are kept and reported in kept_existing unless overwrite is true, that only the campaign's own variables are accepted, and a required human-approval step (show 5 examples, wait for yes). It also states an anti-fabrication rule and the keep_fallback escape hatch, none of which are derivable from annotations.

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 the first clause and the routing rule and limits follow logically. It is dense and packs several concerns (validation workflow, anti-hallucination policy, CLI alternative, tag routing, docs link) into one block, with some restatement of what the schema already documents.

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 mutation tool with three parameters (one a 5,000-item array), the description covers the limit, overwrite behavior, tagging, the fallback path, prerequisites from the status tool, the human-approval gate, and an alternative for large payloads. With an output schema present it need not explain return values, so nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds constraints the schema does not carry: only the campaign's own custom variables are accepted, and the consequence of overwrite (without it a saved line is preserved and surfaced in kept_existing). The per-entry meanings of values/tags/untag/keep_fallback largely duplicate the schema, so it is not a 5.

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 concrete verb+resource: 'save the personal lines you wrote for a campaign's contacts', and adds the secondary 'adds or removes contact tags' action. It is clearly distinguishable from the sibling bulk-import path, which it routes a finished 200k-row file to.

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?

Gives explicit when-to-use ('when the user says tag these contacts as priority'), an upstream step (get next contacts from argorant_campaign_personalization_status), and an explicit when-not-to-use alternative (finished files of up to 200,000 rows go through the API/CLI followed by argorant_personalization_import_status).

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.