Skip to main content
Glama
neto-whatsappmcp

neto-whatsappmcp

by wlnaim

whatsapp_send_document

Sends a text document as a WhatsApp attachment to yourself, a contact, or a group. Use it to deliver long reports instead of short text notices.

Instructions

Envía por WhatsApp un documento (por ejemplo un reporte) generado a partir de contenido de texto. El contenido se envía como archivo adjunto con el nombre indicado. Úsala para reportes largos; para avisos cortos usa whatsapp_send_text. Devuelve una línea por destinatario con el resultado.

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": {
      "to": "<to>",
      "filename": "<filename>",
      "content": "<content>"
    },
    "name": "whatsapp_send_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestinatarios: 'me' (el propio usuario, WHATSAPP_ME), 'team' (todo el equipo, WHATSAPP_TEAM), un número solo con dígitos y código de país (ej. 5219831234567) o un JID de grupo terminado en @g.us.
captionNoTexto opcional que acompaña al documento.
contentYesContenido de texto del documento.
filenameYesNombre del archivo con extensión, ej. reporte.md.
mimetypeNoTipo MIME del archivo. Por defecto text/plain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key behavior: the text content becomes an attached file named by the parameter, and the response is one line per recipient with the result. It does not discuss permissions, size limits, or failure modes, but the core delivery semantics and return shape are covered.

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?

Three short sentences ordered purpose → routing → return value, with no wasted clauses. The parenthetical example of a report is mildly redundant but harmless.

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 5-parameter action tool with no annotations and no output schema, the definition covers what is sent, how it is named, which sibling to prefer, and what comes back. Only operational limits (size, auth) are absent, which is a modest gap.

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 coverage is 100%, so recipient formats, filename, mimetype default, and caption are already documented in the schema. The description only reinforces that content becomes a file under the specified name, adding little beyond the structured fields. Baseline 3 applies.

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: sending a WhatsApp document generated from text content, delivered as an attachment under the given filename. This is clearly distinguishable from whatsapp_send_text, which the description names explicitly.

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 an explicit when-to-use rule (long reports) and names the alternative plus the condition for it (short notices → whatsapp_send_text). It also says the content is sent as a file attachment, which clarifies the scope versus a plain message.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.