Skip to main content
Glama

Update a Facebook post draft

update_page_post
Idempotent

Change a draft post: a new version, the previous ones remain. expected_version: the version read with get_page_post. An omitted argument keeps its value; images given replaces the list (empty list: no image); link="" removes the link; clear_scheduled_for: publish as soon as validated. A post already sent to Facebook no longer changes.

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": {
      "post_id": "<post_id>",
      "expected_version": "<expected_version>"
    },
    "name": "update_page_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNo
pageNo
imagesNo
messageNo
post_idYes
scheduled_forNo
expected_versionYes
clear_scheduled_forNo

Output Schema

NameRequiredDescriptionDefault
idYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Well beyond the annotations, it discloses versioning/history retention, that omitted fields retain their values (partial update), replacement semantics for images and links, and that clear_scheduled_for publishes immediately after validation. The 'new version, previous ones remain' model supports destructiveHint=false, though expected_version implies a repeated call would fail on a bumped version, which sits in mild tension with idempotentHint=true without being a direct contradiction.

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 core semantics are front-loaded in one dense paragraph with no wasted sentences, and the immutability constraint is saved for last as a guardrail. The telegraphic phrasing ('a new version, the previous ones remain') and run-on clause stacking in the middle make it slightly harder to parse than it needs to be.

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 an 8-parameter mutation the description covers the risky semantics (versioning, replacement, removal, scheduling) and an output schema exists so return values need no explanation. It does not mention permission requirements for the page or what a stale expected_version does, which are the remaining gaps.

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?

With schema coverage reported at 0%, the description carries the burden and does so: it defines expected_version's provenance, spells out the omitted-argument-keeps-value rule, and gives explicit edge cases for images (empty list removes the image) and link ("" removes the link) plus clear_scheduled_for's publish-now effect. Only post_id and page are left to the schema, and both are self-evident or documented there.

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?

The description opens with a precise verb+resource ('Change a draft post') plus the effect ('a new version, the previous ones remain'), which distinguishes it from create_page_post, get_page_post and archive_page_post without needing their schemas. The closing clause ('A post already sent to Facebook no longer changes') further pins down the resource state the tool operates on.

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?

It gives one explicit exclusion (already-published posts cannot be changed) and a prerequisite path, stating that expected_version is 'the version read with get_page_post', which routes the agent to the right sibling first. It does not say when to prefer create vs update or what happens on a version mismatch, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources