Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

whatsapp_get_media

Retrieve a short-lived pre-signed URL for a WhatsApp media asset using its media ID, so you can download or process media received via webhook or prior upload.

Instructions

Fetch a short-lived pre-signed URL for a media asset (from an incoming webhook or previous upload).

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": {
      "media_id": "<media_id>"
    },
    "name": "whatsapp_get_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_idYes
access_tokenNoOptional override for the access token (falls back to WHATSAPP_ACCESS_TOKEN env)
phone_number_idNoWhatsApp Business Phone Number ID (falls back to WHATSAPP_PHONE_NUMBER_ID env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral traits: the URL is pre-signed (usable without credentials) and short-lived (expires). It omits the expiry window, error behavior for invalid or expired media ids, and any permission requirements, which are the details an agent most needs for a no-annotation 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?

One sentence, front-loaded with the action and the returned artifact, with no filler. The parenthetical is the only extra clause and it earns its place by scoping the id's origin.

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?

Because there is no output schema, the description must convey what comes back, and it does so at a high level (a pre-signed URL). For a tool with three parameters, optional env-fallback auth, and no annotations, the missing expiry duration and failure modes leave an agent under-informed about edge cases.

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 67%, and the description usefully implies where media_id originates (webhook payload or a previous upload), which the bare 'string' schema does not say. The two optional auth parameters are documented in the schema, so the description adds nothing there, and no id format is given.

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 description uses a specific verb and resource: 'Fetch a short-lived pre-signed URL for a media asset', and adds provenance ('from an incoming webhook or previous upload') that separates it from whatsapp_upload_media and whatsapp_delete_media. It stops short of naming those siblings explicitly, so the differentiation is implicit rather than stated.

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 parenthetical indicates the situations that produce a media_id (webhook payload or prior upload), which implies when to call this. There is no explicit exclusion, no statement about what to do if the URL expires, and no routing to an alternative tool.

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