Skip to main content
Glama

Responder un mensaje directo

send_message
DestructiveIdempotent

Manda texto y/o una imagen JPEG/PNG/WebP de hasta 5 MB (files) en una conversación existente (conversation_ref), desde la cuenta de la marca. Úsala solo cuando el usuario pidió responder; si te pidió escribirlo, hazlo corto, en su idioma y sin despedidas. Para varias conversaciones muestra antes las respuestas y espera un solo sí. Instagram y Facebook solo permiten responder dentro de las 24 h del último mensaje de la persona. Un operation_id nuevo por mensaje.

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": {
      "operation_id": "<operation_id>",
      "conversation_ref": "<conversation_ref>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoUna imagen JPEG/PNG/WebP adjuntada o generada en este chat, hasta 5 MB. No rutas locales ni enlaces externos.
messageNo
operation_idYesIdentificador único de este pedido (por ejemplo un UUID). Repite el mismo al reintentar el mismo pedido; uno nuevo para un pedido nuevo.
conversation_refYesconversation_ref de list_conversations

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?

Adds real behavior beyond the annotations: the 24-hour reply window on Instagram/Facebook, the 5 MB single-image cap, the brand-account sending identity, and the retry contract (same operation_id on retries, new one per new request), which elaborates the idempotentHint. It does not explain why destructiveHint=true applies to a send operation, leaving that annotation unqualified.

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-loads what the tool sends and where, then layers constraints and workflow guidance. Each sentence carries usable information, though mixing composing rules ('hazlo corto... sin despedidas') with transport constraints makes it denser than strictly necessary.

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 mutation tool with no output schema, it covers channel eligibility, media limits, retry semantics and the multi-conversation confirmation flow. What remains unexplained is the return/result shape and the mismatch of the destructiveHint flag with an outbound message send.

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 already 75%, and the description still adds meaning: text and image are alternatives ('texto y/o imagen'), one image max with allowed MIME types and 5 MB cap, conversation_ref points to an existing conversation, and operation_id must be new per message. It adds the retry semantics beyond the schema's pattern description.

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 concrete verb+resource+scope: sends text and/or one JPEG/PNG/WebP image (max 5 MB) into an existing conversation from the brand account. Together with the Instagram/Facebook framing this distinguishes it from post tools and whatsapp_send_message, although it never explicitly contrasts with the closely named send_message_draft.

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 explicit when-to-use conditions and workflow: only when the user asked to reply, keep the reply short and in the user's language without farewells, and for multiple conversations show the replies first and wait for a single confirmation. The one missing piece is naming send_message_draft as the alternative when the user only wants a draft.

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