Skip to main content
Glama
whatsapp-export-mcp

whatsapp-export-mcp

Save an attachment

save_attachment

Extract a photo, voice message, or document from a WhatsApp export and save it to a folder under the chat's own filename, returning the saved path.

Instructions

Copy one file out of the export (a photo, a voice message .opus, a document) into a folder, by the name the chat uses for it. Returns the saved path.

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": {
      "path": "<path>",
      "name": "<name>",
      "output_dir": "<output_dir>"
    },
    "name": "save_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name as listed by list_attachments
pathYesPath to the WhatsApp export: the .zip from Export chat, or the .txt
output_dirYesFolder to save into; created if missing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the description only needs to add context. It does add that the operation copies (source export untouched) and that it returns the saved path, which is useful given no output schema, but it omits what happens when a file of the same name already exists in output_dir — a material gap for a write tool.

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 with the action, then the return value. No filler and no repetition of the title.

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 three-parameter tool with full schema coverage and no output schema, the description covers purpose, input source, and the return value. The only missing piece is collision/overwrite behavior when the target file already exists.

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 all three parameters are already documented, including output_dir creation. The description reinforces the 'name' semantics ('by the name the chat uses for it') but adds no format, path-style, or override details beyond the schema.

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 ('Copy one file out of the export') and resource, with concrete examples (photo, .opus voice message, document) that tell an agent exactly what class of artifact this handles. It is implicitly distinct from list_attachments, though it never names that sibling as the discovery step.

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?

The phrase 'by the name the chat uses for it' plus the schema note 'File name as listed by list_attachments' implies the list-then-save workflow, but the description itself gives no explicit when-to-use or when-not-to-use guidance versus list_attachments or open_export.

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