Skip to main content
Glama
whatsapp-export-mcp

whatsapp-export-mcp

List attachments

list_attachments
Read-only

List photos, voice messages, videos, documents, and other files in a WhatsApp export, including sender, timestamp, and whether each file is present.

Instructions

List the photos, voice messages, videos, documents and other files the chat refers to, with who sent them, when, and whether the export contains them.

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": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
pathYesPath to the WhatsApp export: the .zip from Export chat, or the .txt
limitNoDefault 500
date_orderNoDate order of the export. Leave as auto unless open_export reported a guess that looks wrong

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 a read-only, non-open-world read. The description adds real context beyond them: it discloses the returned metadata (sender, timestamp) and flags that some referenced files may be absent from the export. It says nothing about the default 500 cap, the 2000 maximum, or how results are ordered.

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?

A single sentence with no filler, front-loaded with the verb and the resource, then the returned fields. Every clause earns its place.

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?

There is no output schema, and the description does cover the shape of the result set via sender, timestamp, and presence flags. For a filtered list tool it is close to complete, with the remaining gap being pagination/limit behavior and the prerequisite of a resolved export path.

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 75%, so the schema already documents path, limit, and date_order, and the description repeats none of it. The enumerated file types loosely correspond to the kind enum and hint that results are classifiable, but no parameter meaning is added 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 ('List') and resource, and expands 'attachments' into concrete kinds (photos, voice messages, videos, documents), which an agent can map onto the kind enum. It does not distinguish itself from siblings such as get_messages or save_attachment, so it falls short of a 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?

Usage is only implied: it returns what the chat 'refers to', so an agent can infer this is the discovery step before save_attachment. There is no explicit when-to-use, when-not-to-use, or named alternative, and no note that the export must be opened first.

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