Skip to main content
Glama

Escrever as mensagens da pessoa de exemplo

preview_campaign_messages
DestructiveIdempotent

Writes the messages of ONE example person of the campaign from its current template and returns them, to show how the template reads before the other people's messages are written again. Not read-only: the new messages replace that person's unsent ones (sent and hand-edited messages are kept). Nothing is sent to anyone. It picks the person itself (one with a buying signal when there is one) and keeps the saved messages, so they are not paid twice. A second call in the same conversation turn returns the first result. The result's messagesOutdated counts the other people whose messages still come from the earlier template. Free.

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": "preview_campaign_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesExact campaign UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses exactly which data is overwritten ('the new messages replace that person's unsent ones') and what survives ('sent and hand-edited messages are kept'), plus that nothing is sent to anyone and the call is free. It also explains autonomous person selection (picks one with a buying signal), the saved-message reuse ('so they are not paid twice'), and the per-turn caching behavior. These are precisely the mutation semantics an agent needs and they are consistent with destructiveHint=true and 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?

The purpose and the mutation scope are front-loaded in the first sentence, and every subsequent clause adds non-redundant information (data retention, person selection, caching, cost). It is dense and slightly run-on with many parenthetical clauses, which costs a bit of readability, but nothing is filler.

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, and the description compensates by explaining the return ('returns them... to show how the template reads') and one key result field, messagesOutdated. Combined with the full mutation and caching semantics, an agent has everything needed to call it correctly and interpret the response.

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 the single parameter campaignId is fully documented as 'Exact campaign UUID' with a pattern, so the schema carries the parameter burden. The description adds nothing about campaignId itself, which meets the baseline for a fully covered schema but earns no extra credit.

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 specific verb and resource ('writes the messages of ONE example person of the campaign from its current template and returns them') and explicitly bounds the scope to a single example person, contrasting it with 'the other people's messages' being written. An agent can tell this is a preview-of-one, not a campaign-wide rewrite, without opening the schema.

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 a clear situational trigger: use it 'to show how the template reads before the other people's messages are written again'. That implies the preview-before-rewrite workflow, and the note about a second call in the same turn returning the first result tells the agent not to re-invoke. It stops short of naming rewrite_campaign_messages or stating an explicit when-not condition, so it is strong context rather than full routing 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.