Skip to main content
Glama

Mudar a instrução de uma frase da cadência

update_cadence_ai_field
DestructiveIdempotent

Changes the instruction of one sentence the Agent writes for each person in ONE campaign's cadence (a field marked {{ia:key}} in the bodies, shown on screen by its label, such as 'a vaga aberta' or 'a retomada'), for everyone on the list: how that sentence should read for all people ('na abertura, começa com "vi que vocês abriram vaga de X"', 'na vaga aberta, cita o cargo da vaga', 'a retomada não pode falar de preço'), including an edit made in one person's messages that should apply to everyone. A campaign's aiFields list each field's day, key, label, instruction and example. instruction is the whole instruction the field follows from now on: the current one with the requested change worked in, keeping what it says, from which fact, and what it leads into, unless that is what changes. example, when the request changes how the sentence reads: the current example rewritten to follow it, with the same facts. The instruction changes now, without writing anyone: in steps not sent yet, a sentence written from the old instruction goes back to the field, and nobody's messages are written again until a rewrite is requested (messagesNext in the result says how); messages edited by hand and sent ones stay; people not written yet follow it when written. Free. Nothing is sent. Not for fixed text or for how the whole cadence reads, and not meant for a campaign draft still being created in the web app's chat flow, which has its own draft editor.

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>",
      "field": "<field>",
      "instruction": "<instruction>"
    },
    "name": "update_cadence_ai_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoOnly the field on this day's step, when the same field sits in more than one step and the user named one. Omit to change it in every step it is in.
fieldYesThe field's key ('abertura', 'retomada') or its label as the screen shows it ('a vaga aberta').
exampleNoA new example sentence that follows the new instruction; blank keeps the current one.
campaignIdYesExact campaign UUID.
instructionYesThe field's whole new instruction, in the campaign's language.

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."New value: +"Exact campaign UUID."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, and the description adds substantially beyond them: the change applies immediately without writing anyone, unsent steps with sentences written from the old instruction revert to the field, hand-edited and sent messages stay, unwritten people follow it when written, and messagesNext in the result signals whether a rewrite is needed. 'Free. Nothing is sent.' further clarifies cost and side effects.

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?

The purpose and exclusions are front-loaded, but the first sentence is a long run-on that buries the key scope, and the lifecycle explanation is dense with parenthetical asides. Every idea is relevant, yet the phrasing would benefit from shorter sentences and clearer separation of purpose, behavior, and exclusions.

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 destructive, idempotent mutation with no output schema, the description supplies what is otherwise missing: what is preserved vs. reverted, that nothing is sent, that it costs nothing, and that messagesNext conveys rewrite status. Together with the fully documented schema, an agent has what it needs to invoke this correctly.

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 for instruction ('the whole instruction the field follows from now on: the current one with the requested change worked in') and example ('the current example rewritten to follow it, with the same facts'), clarifying replacement semantics rather than diffs. The day parameter is only covered by the schema, not the description.

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 names a specific verb and narrow resource: it changes the instruction of one sentence (an {{ia:key}} field) in ONE campaign's cadence, for everyone on the list. It explicitly carves itself away from adjacent tools — 'Not for fixed text or for how the whole cadence reads' — so an agent can separate it from update_outreach_cadence or cadence-rule tools.

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 concrete inclusion case ('including an edit made in one person's messages that should apply to everyone') and two explicit exclusions: fixed text, whole-cadence tone, and campaign drafts still in the web app's chat flow. It stops short of naming the sibling tool an agent should use instead for those cases, so the agent knows when-not but not exactly where to go.

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.