Skip to main content
Glama

Schedule Campaign (preview, then confirm)

schedule_campaign
Destructive

Send or schedule a campaign. Omit scheduled_at to send immediately. Two steps: call first WITHOUT confirm (or with confirm: false) to get a preview of who will receive the email (sender, subject, approximate recipient count, lists, time) — nothing is sent. Show that preview to the user and get an explicit yes, then call again with confirm: true to send. dry_run: true returns the preview without sending even when confirm is true.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to actually send. Leave false first to get a preview of what will be sent
dry_runNoValidate and show the send preview without sending, even when confirm is true
campaign_idYesCampaign ID
scheduled_atNoSchedule datetime YYYY-MM-DD HH:MM:SS in the account timezone (omit for immediate send)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Campaign ID,required"New value: +"Campaign ID"
  2. Changed4 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true to actually send. Leave false first to get a preview of what will be sent",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Validate and show the send preview without sending, even when confirm is true",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / scheduled_at / description
      Previous value: -"Schedule datetime (omit for immediate send)"New value: +"Schedule datetime YYYY-MM-DD HH:MM:SS in the account timezone (omit for immediate send)"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, idempotentHint=false, and openWorldHint=true, but the description adds the critical safety contract the annotations cannot express: that a non-confirmed call sends nothing, what the preview contains (sender, subject, approximate recipient count, lists, time), and that dry_run=true suppresses sending even when confirm is true. It also imposes a human-in-the-loop requirement (show preview, obtain explicit yes), which is exactly the behavioral context needed for a destructive, non-idempotent operation.

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 purpose, then the two-step safety flow, with the dry_run caveat last. Every sentence carries operational weight, though the dry_run sentence partially duplicates the schema description and the em-dash aside makes the middle sentence long.

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?

There is no output schema, yet the description compensates by enumerating exactly what the preview returns, so an agent knows what it will receive on the non-committing call. For a destructive send tool with 4 flat parameters and full schema coverage, nothing an agent needs to call it safely 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 real meaning beyond the field descriptions: it explains the interaction between confirm and dry_run ('dry_run: true returns the preview without sending even when confirm is true') and ties scheduled_at omission to immediate send. The only residual gap is that it does not restate the scheduled_at format or timezone, which the schema already covers.

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?

Opens with a specific verb+resource pair ('Send or schedule a campaign') and immediately scopes it against the obvious variants: immediate send vs. scheduled send. It is clearly distinguishable from siblings such as send_test_email, estimate_campaign_recipients, and create_campaign, which do not send a real campaign to real recipients.

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 an explicit operational protocol: call first without confirm (or confirm: false) to preview, show the preview, get an explicit yes, then call again with confirm: true. It also states the trigger for immediate send (omit scheduled_at) and the dry_run override, so there is no ambiguity about which invocation mode to choose.

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