Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

messenger_upload_attachment

Uploads an image, audio, video, or file to Messenger’s attachment store for reuse, avoiding fetching the URL on every send.

Instructions

Upload an asset to Messenger's attachment store so it can be reused (avoids fetching the URL every send).

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": {
      "type": "<type>",
      "url": "<url>"
    },
    "name": "messenger_upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
typeYes
page_idNoFacebook Page ID (falls back to MESSENGER_PAGE_ID env)
access_tokenNoPage Access Token (falls back to MESSENGER_PAGE_ACCESS_TOKEN env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden. It discloses one real behavioral trait — the host caches the asset so future sends skip the URL fetch — but says nothing about authentication (page access token), idempotency or duplicate uploads, size/type limits, or what identifier comes back to reference the stored asset.

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 with the action first and the rationale second; nothing is padded or repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should say what an upload yields (an attachment handle for later sends) and what auth is required. It omits both, leaving an agent unsure how to use the result after uploading.

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

Parameters2/5

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

Schema description coverage is only 50%: page_id and access_token carry env-fallback descriptions, while url and type have none. The description adds no meaning for any of the four parameters, so the undocumented half stays unexplained in both places.

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+resource: 'Upload an asset to Messenger's attachment store', plus the motivation of reuse. The upload-then-reuse framing implicitly separates it from messenger_send_attachment, though the sibling is never named.

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 'so it can be reused (avoids fetching the URL every send)' implies this is the right tool when the same asset will be sent repeatedly, but there is no explicit when-to-use versus when-to-send-directly statement, no prerequisites, and no exclusions.

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