Skip to main content
Glama

send_file

Destructive

Send a local image, video, or document with an optional caption to a WhatsApp recipient, limited to allowed media folders and subject to approval rules.

Instructions

Send a local file (image, video, document) with an optional caption.

The file must be inside downloads_dir or exports_dir (always allowed) or a folder listed in sending.allowed_media_dirs; store_dir and the config file are never sent. Recipient rules and approval as in send_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": {
      "to": "<to>",
      "path": "<path>"
    },
    "name": "send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
pathYes
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default
captionNo
confirmNo
mentionsNo
reply_toNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already mark it as non-read-only, open-world, and destructive. The description adds that only files in downloads_dir, exports_dir, or sending.allowed_media_dirs may be sent and that store_dir and the config file are never sent. It also defers recipient and approval behavior to send_message, though it does not detail confirm behavior beyond that.

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?

Two sentences, front-loaded and free of filler. The second sentence packs security constraints without becoming wordy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world send tool with seven parameters and an output schema, the definition covers core path constraints and an approval reference. It leaves gaps around several optional parameters and confirmation behavior, so it is adequate but not complete.

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 only 14%, so the description must carry more meaning. It adds important constraints for the critical path parameter and notes that caption is optional, while vaguely covering recipient/approval via send_message. It does not explain account, mentions, reply_to, or confirm, leaving several optional parameters undocumented.

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?

The first sentence gives a specific verb and resource ('Send a local file') and scopes the file types (image, video, document) with optional caption. It is clear but does not explicitly state when to choose it over send_message, send_sticker, or send_voice_note, so 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states allowed locations and blocked locations, plus points to send_message for recipient rules and approval. That establishes important preconditions, but it does not explicitly compare this tool with alternatives or state when not to use it.

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