Skip to main content
Glama

fb_api_publish_post

Preview, publish, or schedule text, image, or link posts to a Facebook Page via the official Meta Graph API, with dry-run safety enabled by default.

Instructions

Preview (dry_run=True default) or publish/schedule a post to a Facebook Page you manage via Official Meta Graph API.

Args: page_id: Numeric Facebook Page ID. message: Post caption / text. image_path: Optional local path to a photo to publish with the post. link: Optional URL to attach (text/link posts only). scheduled_publish_time: Optional UNIX timestamp (at least 10 minutes in the future) to schedule the post. dry_run: Safety default True previews without publishing; pass False after user confirmation to publish.

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": {
      "page_id": "<page_id>",
      "message": "<message>"
    },
    "name": "fb_api_publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNo
dry_runNo
messageYes
page_idYes
image_pathNo
scheduled_publish_timeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does reasonably well: it reveals that this is a mutating publish/schedule operation, that a dry-run preview is the safe default, that scheduling has a minimum lead time, and that photo uploads use a local file path. It does not state the permission/scope requirement beyond 'a Page you manage', nor whether a published post can be edited or removed, which is the main remaining gap for a write tool.

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?

The summary sentence is front-loaded and carries the core action and default behavior, with the Args block following in a predictable order. The parameter list is necessary given the barren schema, though a couple of entries (dry_run) restate what the summary already established.

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 six-parameter mutation tool with no annotations, the definition covers what an agent needs to call it correctly: preview-vs-publish decision, scheduling constraint, image/link handling. Return values are covered by the existing output schema, so their absence from the description is fine. What remains thin is authorization/scope and post-publication lifecycle behavior.

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

Parameters5/5

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

Schema description coverage is 0% (parameters carry only titles and types), so the description must compensate entirely, and it does: each of the six parameters gets a concrete meaning and format, including UNIX timestamp for scheduling, local filesystem path for images, and URL semantics for link. This adds substantial information the schema alone does not convey.

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 first sentence names specific verbs and resource: preview, publish or schedule a post to a Facebook Page via the Official Meta Graph API. That is enough for an agent to separate it from the read-only siblings such as fb_get_page_posts or fb_api_list_my_pages. It stops short of naming or contrasting a sibling explicitly, so it does not reach the top of the scale.

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

Usage Guidelines4/5

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

Usage is well signposted: dry_run defaults to True for previews and the agent is told to pass False only after user confirmation, which is a concrete operational rule. It also flags that 'link' applies to text/link posts only and that scheduled_publish_time must be at least 10 minutes out. No explicit when-not-to-use or alternative-tool guidance is given.

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