Skip to main content
Glama

Cancel scheduled message

cancel_scheduled_message
Destructive

Cancela uma mensagem agendada que ainda não saiu (id vindo de list_scheduled_messages ou schedule_whatsapp_message).

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

Input Schema

NameRequiredDescriptionDefault
idYesid da mensagem agendada.
target_user_idNoID da conta-alvo (opcional; APENAS o admin da plataforma pode usar). Padrão: a conta autenticada.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds the non-obvious behavioral guard that this only works while the message is still pending, which is real value beyond the annotations. It doesn't state what happens on an already-sent id (error? silent no-op?), keeping it below 5.

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

Conciseness5/5

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

A single sentence with no filler, front-loading the action and immediately qualifying the precondition and the id source. Nothing redundant.

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 a two-parameter mutation with no output schema, the description plus rich schema docs cover what an agent needs: the precondition, the required id and its provenance, and the admin-only scope. Only the outcome of a failed cancel (already sent / unknown id) is left unstated.

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%, so both parameters are already documented, including the admin-only restriction on target_user_id. The description only adds provenance for 'id' (which sibling produces it), which is modest added value over the schema — baseline 3 applies.

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?

States a specific verb ('Cancela') and resource ('mensagem agendada') plus the key precondition that the message has not yet been sent. That distinguishes it from delete_* siblings in the toolset, though it does not explicitly name an alternative cancel path.

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?

Gives clear usage context: only messages that haven't gone out, and it names the two siblings that supply the required id (list_scheduled_messages, schedule_whatsapp_message). No explicit 'do not use when already sent' fallback or error-handling guidance, so it falls short of a 5.

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