Skip to main content
Glama

bot_send_message

Destructive

ANRUFBOT: dem Anrufer des laufenden Anrufs eine SMS oder WhatsApp aus einer festen Vorlage schicken. Empfänger ist IMMER die Nummer des Anrufs call_id — eine andere Nummer ist nicht möglich. Vorher den Anrufer fragen ('Darf ich Ihnen das per SMS schicken?') und nur bei Ja caller_consented=true setzen. Vorlagen: 'termin' (Terminbestätigung, meeting_id aus bot_book_slot) und 'schreib_uns' (Nummer zum Weiterschreiben). Höchstens zwei Nachrichten je Anruf. WhatsApp an jemanden, der uns dort noch nie geschrieben hat, kann scheitern — dann sent:false mit Grund; SMS anbieten.

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": {
      "call_id": "<call_id>",
      "channel": "<channel>",
      "template": "<template>",
      "caller_consented": "<caller_consented>"
    },
    "name": "bot_send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
call_idYesKennung des laufenden Anrufs im AI-Call-Bot
channelYesVersandweg an den Anrufer: SMS oder WhatsApp
templateYesFeste Vorlage: termin (Terminbestaetigung) oder schreib_uns (Nummer zum Weiterschreiben)
meeting_idNoFür template=termin: meeting_id aus bot_book_slot
caller_consentedYestrue nur, wenn der Anrufer im Gespräch ausdrücklich zugestimmt hat

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / channel / description
      Added value: +"Versandweg an den Anrufer: SMS oder WhatsApp"
    • addedInput schema / properties / template / description
      Added value: +"Feste Vorlage: termin (Terminbestaetigung) oder schreib_uns (Nummer zum Weiterschreiben)"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, openWorldHint=true, idempotentHint=false), yet the description still adds real behavioral context: the consent gate, the two-message cap, and the external failure mode for WhatsApp recipients who never wrote to us. It stops short of describing delivery timing or what a successful response contains beyond the sent:false hint.

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 the purpose, then constraints, then failure handling — a sensible operational order with no filler sentences. It is dense and slightly run-on in the template parenthetical, but every clause carries call-relevant information.

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 mutation tool with five parameters and no output schema, the definition covers recipient scope, consent, template choice, rate limit, and the failure return shape. An agent has everything needed to decide whether to call it and how to interpret a negative result.

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 meaning beyond it: call_id is not just an identifier but the sole permitted recipient, caller_consented must reflect an explicit in-conversation yes, and meeting_id is sourced from bot_book_slot for template=termin. Only the channel semantics are left entirely to the schema.

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?

States a specific verb and resource ('dem Anrufer des laufenden Anrufs eine SMS oder WhatsApp aus einer festen Vorlage schicken') and pins the scope with 'Empfänger ist IMMER die Nummer des Anrufs call_id — eine andere Nummer ist nicht möglich'. That constraint is what separates it from the generic send_whatsapp / sipgate_send_sms siblings, so an agent can route correctly without opening any schema.

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 explicit preconditions (ask the caller first, set caller_consented=true only on a yes), a hard limit ('Höchstens zwei Nachrichten je Anruf'), and a fallback rule when WhatsApp fails ('dann sent:false mit Grund; SMS anbieten'). It also names bot_book_slot as the source of meeting_id, tying this tool into the surrounding workflow.

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.