Skip to main content
Glama
facebook-mcp

facebook-mcp

by IvanBBaev

Upload message attachment

facebook_upload_message_attachment

Uploads one public HTTPS image, audio, video, or file to a Page’s Messenger attachment store and returns a reusable attachment_id for sending via facebook_send_message; dry run by default.

Instructions

Upload ONE file (image / audio / video / file) by public HTTPS URL to the Page’s Messenger attachment store and get a reusable attachment_id — valid for about 90 days, this Page only — to pass to facebook_send_message as attachment.attachment_id, so the same file goes to many people without a re-fetch. Nobody receives anything. Dry run by default; apply:true uploads.

Input Schema

NameRequiredDescriptionDefault
urlYesA public https:// URL Meta fetches itself (no credentials in it). Meta gives up after about 10 s (75 s for video); images up to 8 MB, other files up to 25 MB.
typeYesAttachment kind: image, audio, video or file (for example a PDF).
applyNoSet true to actually perform the write. Omitted or false ⇒ the server decides from its configured write mode: usually a dry run that returns a plan preview and changes nothing, but a server (or package) configured apply-first performs the write. To be certain nothing happens, read the result: a dry run always reports the plan and says the write was NOT performed.
plan_idNoThe `planId` returned by a preceding dry-run preview of this same tool. Required for irreversible and spend-tier writes; plans expire a few minutes after they are created.
profileNoPage profile key (e.g. "brand-a") or a raw Page ID. Omitted ⇒ the default Page (FB_PAGE_ID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations: ~90-day lifetime, Page-only scope, no delivery to recipients, dry-run-by-default with apply:true. The only gap is that idempotentHint=false is not addressed — it never says whether re-uploading the same URL yields a new attachment_id or dedupes, which matters given the "without a re-fetch" framing.

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 the payoff, and every clause carries information (scope, lifetime, consumer, delivery, dry run). It is a single dense run-on sentence with em-dash asides, which slightly hurts scanability but wastes nothing.

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

Completeness5/5

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

For a 5-parameter write tool with 100% schema coverage and no output schema, the description supplies the full picture: what is written, where, for how long, who it is visible to, how to activate it, and what the returned id is for. Nothing an agent needs to call it correctly is missing.

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 100%, so 3 is the baseline; the description still adds real meaning by tying the returned id to send_message, naming the dry-run/apply contract, and scoping the id to one Page for ~90 days. The url size/timeout limits and type enum are left entirely to the schema, which already covers them well.

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 and resource ("Upload ONE file ... to the Page's Messenger attachment store") plus the artifact produced ("reusable attachment_id") and its consumer (facebook_send_message). This clearly separates it from every other sibling, none of which touch the attachment store.

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

Usage Guidelines5/5

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

Explicitly frames the tool as a pre-step whose output feeds facebook_send_message as attachment.attachment_id, and rules out the wrong expectation with "Nobody receives anything." The dry-run default and apply:true switch are stated inline, so the agent knows the activation condition without opening the schema.

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