Skip to main content
Glama

Update campaign

update_campaign
Idempotent

Edit a draft campaign: name, subject, preheader, from_address (a verified sender), reply_to, document (email design JSON) and audience ({kind:list,id} | {kind:segment,id} | {kind:tag,name}). Only drafts can be edited. Errors: campaign_not_editable, invalid_address, invalid_document, invalid_field, not_found. Next: send_campaign_test, then send_campaign.

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": {
      "id": "<id>"
    },
    "name": "update_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe campaign id (cmp_...).
nameNo
subjectNoSubject line; variables like {{FIRST_NAME|there}} are allowed.
audienceNo{kind:"list",id} | {kind:"segment",id} | {kind:"tag",name}.
documentNoEmail design document: {version:1, style, subject, blocks:[...]}.
reply_toNo
preheaderNo
from_addressNoSender address on a verified domain, such as news@example.com.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false; the description adds value beyond them with the draft-only precondition, the verified-domain requirement on from_address, and the enumerated error codes (campaign_not_editable, invalid_address, invalid_document, invalid_field, not_found). It stops short of explaining partial-update semantics — whether omitted or null fields are preserved or cleared — which matters for a mutation with idempotentHint=true.

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?

Front-loaded with the operation and its field list, then constraint, then errors, then next steps — a logical order with no filler. The field enumeration is a long run-on clause that is slightly harder to scan than a short list, but no sentence is wasted.

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 an 8-parameter mutation with no output schema and partial schema coverage, the description covers preconditions, error taxonomy, validation constraints, and follow-up tools, which is close to complete. The remaining holes — return value and partial-update/null semantics — are the only things an agent would still need to guess.

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?

At 63% schema coverage, the description names all seven optional fields and adds one genuinely new constraint (from_address must be on a verified sender domain), but audience and document definitions largely restate the schema text. Nothing clarifies null/default behavior for the optional fields, so meaning beyond the schema is modest.

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?

Specific verb plus resource ('Edit a draft campaign') immediately followed by the exact editable fields, so an agent knows both the operation and its surface without opening the schema. The draft-only constraint further separates it from create_campaign and the send_* siblings.

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?

States the exclusion clearly ('Only drafts can be edited') and supplies forward routing ('Next: send_campaign_test, then send_campaign'), which is real when-to-use guidance. It does not say what to do when a campaign is not a draft (e.g., whether any sibling can edit a sent campaign), leaving one gap.

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.