Skip to main content
Glama

Reescrever as mensagens da campanha

rewrite_campaign_messages
DestructiveIdempotent

Writes again the messages of the people of ONE campaign that are from an earlier version of its template (messagesOutdated), the "Reescrever as N" action. One run, only those people: sent messages and hand-edited ones stay, and so do the steps the template change left as they were. channels or days limit it to the steps the user named. It is refused in the same request that changed the template. Free. Nothing is sent. Returns how many were rewritten, or that the rest is still being written.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "rewrite_campaign_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoOnly the steps on these days ("o passo 3" is the day of the cadence's third step); the other steps stay exactly as they are. Absent: every step.
channelsNoOnly these channels' steps are written again ("reescreve os e-mails" is ["email"]); the other steps stay exactly as they are. Absent: the whole cadence.
campaignIdYesExact campaign UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / channels
      Added value: +{
      +  "description": "Only these channels' steps are written again (\"reescreve os e-mails\" is [\"email\"]); the other steps stay exactly as they are. Absent: the whole cadence.",
      +  "items": {
      +    "enum": [
      +      "email",
      +      "linkedin",
      +      "whatsapp"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 3,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / days
      Added value: +{
      +  "description": "Only the steps on these days (\"o passo 3\" is the day of the cadence's third step); the other steps stay exactly as they are. Absent: every step.",
      +  "items": {
      +    "maximum": 60,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  "maxItems": 30,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / campaignId / description
      Previous value: -"Exact campaign UUID from list_outreach_campaigns or dashboard context."New value: +"Exact campaign UUID."
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations it discloses substantive behavior: sent and hand-edited messages are preserved, steps the template change left untouched stay as they are, nothing is sent, there is no cost, and the result is either a rewritten count or a signal that rewriting is still in progress. This materially clarifies a destructiveHint=true, idempotentHint=true mutation whose safety profile would otherwise be ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded and every clause carries information, but the phrasing is dense and fragmented ('Free. Nothing is sent.'), reads like a literal translation, and packs creation scope, preservation rules, limits, refusal condition, and return behavior into one run-on sequence. Understandable but harder to parse than it needs to be.

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?

With three well-documented parameters and no output schema, the description covers the mutation's side effects, preservation rules, refusal edge case, and even the shape of the result. An agent has enough to call it correctly; only the relationship to the preview sibling is 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% and each of the three parameters is already documented in detail, including the day-to-step mapping and the channel-to-step mapping. The description only restates that channels/days narrow the run to named steps, adding framing but no new syntax or semantics. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — rewriting a single campaign's outdated messages (messagesOutdated) after a template version change — and ties it to the 'Reescrever as N' action. It is clear what the tool does, though the grammar ('Writes again the messages of the people of ONE campaign') is awkward and it never names a sibling tool to differentiate against.

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?

It gives clear usage context: one run, only people on the older template, with optional channels/days narrowing scope to the steps the user named. It also states an explicit exclusion — the call is refused in the same request that changed the template. What's missing is a recommendation to preview first (a preview_campaign_messages sibling exists) rather than a genuine gap in when/when-not guidance.

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.