Skip to main content
Glama
1msg MCP

1msg MCP

Official
by 1msg

retrieve_media

Fetches a WhatsApp Business (WABA) media URL and metadata using a mediaId from uploadMedia; the returned URL is temporary and expires in about 5 minutes.

Instructions

Get WABA media URL and metadata by mediaId (from uploadMedia). The returned url is temporary and typically expires within ~5 minutes.

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": {
      "mediaId": "<mediaId>"
    },
    "name": "retrieve_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add genuinely useful behavioral context: the returned url is temporary and expires in roughly 5 minutes. It does not cover authentication/permission requirements, what fields the metadata contains, or what happens if the mediaId is invalid or expired.

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 short sentences with zero filler. The core action is front-loaded and the expiry caveat follows immediately after, which is the right ordering for a caller who will use the URL right away.

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 single-parameter read tool with no output schema, the definition covers the essentials: how to get the ID, what is returned (url plus metadata), and the short lifetime of the url. Only the contents of the metadata object and error behavior are left unstated, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must supply meaning, and it does by tying mediaId to its origin in the upload flow. That provenance is the key detail an agent needs to obtain a valid value; the type and format of the ID itself remain unspecified.

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 and resource ('Get WABA media URL and metadata by mediaId') and identifies the source of the identifier via 'from uploadMedia', which maps to the create_upload_media sibling. It does not explicitly contrast with delete_media or other media-related siblings, but the action and return shape are unambiguous.

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 '(from uploadMedia)' implies the prerequisite that a mediaId must first be obtained from an upload, which is useful implied guidance. However, there is no explicit statement of when to use this versus alternatives, nor any exclusions or prerequisites spelled out.

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