Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

messenger_send_media_template

Sends an image or video template, with up to one button, to a Messenger recipient by PSID for media-rich business messages.

Instructions

Send a media template (image or video with up to 1 button).

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": {
      "psid": "<psid>",
      "media_type": "<media_type>"
    },
    "name": "messenger_send_media_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
psidYesPage-Scoped User ID (PSID) of the recipient
buttonsNo
page_idNoFacebook Page ID (falls back to MESSENGER_PAGE_ID env)
media_typeYes
access_tokenNoPage Access Token (falls back to MESSENGER_PAGE_ACCESS_TOKEN env)
attachment_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden, and it delivers very little: no statement that a Page access token and recipient PSID are required, no note on whether url and attachment_id are mutually exclusive, and no mention of messaging-window or rate restrictions. The only behavioral detail offered is the one-button cap, which is already encoded by maxItems=1 in the schema.

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?

A single front-loaded sentence with no filler, and the defining constraints (media types, button limit) come first. It is efficient but so terse that the brevity reflects under-specification rather than disciplined editing.

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?

For a messaging send tool with 7 parameters, no annotations, and no output schema, the description leaves too much unspecified, especially how media is supplied via url versus attachment_id. It is enough to identify the tool's general purpose but not enough to call it correctly on the first attempt without inspecting the schema closely.

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 43% across 7 parameters, and the description only glosses media_type and buttons, both of which are already enumerated/constrained in the schema. The most consequential ambiguity — choosing between the uri-format 'url' and 'attachment_id' for the media source — is left completely unexplained, as are the page_id and access_token fallbacks.

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 ('Send a media template') and narrows the payload to 'image or video with up to 1 button', which lets an agent distinguish it from a text or button-template send. It stops short of naming how it differs from messenger_send_attachment or messenger_send_generic_template, so the sibling boundary is only implied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when this tool should be chosen over messenger_send_attachment (raw media) or the generic/button template tools, and no mention of preconditions such as having an uploaded attachment or providing either url or attachment_id. The agent must infer selection criteria entirely from the resource name.

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