Skip to main content
Glama
wa-memory-mcp

wa-memory-mcp

by corneliu10

whatsapp_get_attachment

Read-only

Retrieves a WhatsApp attachment by message ID, displaying images, showing video first frames, extracting document text, and transcribing voice notes read-only from WhatsApp servers.

Instructions

Open one attachment by msg_id: a picture is shown to you, a video as its first frame, a document's text is returned, a voice note is transcribed. Downloads it read-only from WhatsApp's servers (no read receipts); old files may have expired there.

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_id": "<msg_id>"
    },
    "name": "whatsapp_get_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatNoOptional, to disambiguate
msg_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real behavioral detail beyond them: the download is read-only and generates no read receipts, and old files may already be gone from WhatsApp's servers. It also discloses the per-type transformation of the returned content, which is exactly what an agent needs to know before calling.

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?

Front-loaded with the action and key, then a compact per-type list followed by a caveat sentence. Dense but readable, with no filler; the only mild friction is the semicolon-chained delivery of two unrelated facts in the second sentence.

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 no output schema, the description correctly takes on the burden of explaining what is returned for each media type, plus a failure mode (expiry) and side-effect profile (no receipts). It stops short of saying where msg_id comes from or how large attachments are handled, which are the remaining practical gaps for a two-parameter fetch tool.

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 only 50%: 'chat' carries a description ('Optional, to disambiguate') but 'msg_id' has none. The description confirms msg_id is the selector for a single attachment but adds nothing about its origin, format, or how 'chat' resolves ambiguity, so half the parameter surface remains undocumented.

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 ('Open one attachment') plus the key ('by msg_id') and then enumerates exactly what each attachment type yields (picture shown, video first frame, document text, voice transcription). This distinguishes it from the sibling listing tool, which enumerates attachments rather than retrieving one.

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 implied by the 'by msg_id' framing — the agent infers it needs an id from a listing step — and the note about expired old files warns of a failure case. However, it never names whatsapp_list_attachments as the source of msg_id, nor states when to prefer this over reading the chat body, leaving routing to inference.

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