Skip to main content
Glama
whatsapp-localmind

whatsapp-localmind

by qilaidev

whatsapp_export_media

Read-onlyIdempotent

Exports local WhatsApp media attachments (voice notes, documents, images, videos) from allowed chats by message ID to a shared directory and returns absolute file paths.

Instructions

Safely export local WhatsApp media attachments (voice .opus, documents .pdf/.xlsx, images, videos) from allowed chats by msg_id to the shared snapshot/media directory and return absolute file paths.

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": {
      "msg_ids": "<msg_ids>"
    },
    "name": "whatsapp_export_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNoForce immediate SQLite online backup snapshot refresh.
msg_idsYesList of target message msg_ids to export.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.0
    • addedInput schema / properties / fresh
      Added value: +{
      +  "default": false,
      +  "description": "Force immediate SQLite online backup snapshot refresh.",
      +  "type": "boolean"
      +}
  2. First observedv3.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is largely covered. The description still adds real value beyond them: the write destination (shared snapshot/media directory), the fact that absolute paths are returned, and the 'allowed chats' access restriction. It does not explain overwrite behavior or what happens when a msg_id has no media, which keeps it below a 5.

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 front-loaded sentence that packs the action, the media types, the source constraint, the destination, and the return value with no filler. Nothing in it is redundant with the title or restates the tool name.

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?

With only two parameters, full schema coverage, and annotations covering safety, the description is nearly sufficient; it even covers the return value in the absence of an output schema. The remaining gap is edge-case behavior (missing media, existing files, effect of the fresh flag), which is minor for a tool of this complexity.

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 both msg_ids and fresh are already documented in the schema, establishing a baseline of 3. The description reinforces that export is keyed by msg_id but adds no format, batching, or limit semantics beyond what the schema states, and it never mentions the fresh snapshot-refresh flag.

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 (export) and resource (local WhatsApp media attachments), enumerates the media types handled (.opus, .pdf/.xlsx, images, videos), and names the destination directory plus the return value (absolute file paths). This is clearly distinguishable from siblings like whatsapp_fetch_messages or whatsapp_search_messages, which retrieve message data rather than files.

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 'from allowed chats by msg_id' implies the prerequisite that msg_ids must come from a prior message lookup and that only permitted chats are exportable, which is useful context. However, there is no explicit when-to-use vs. when-not guidance and no named alternative for retrieving media metadata instead of files, so usage is only implied.

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