Skip to main content
Glama

Update post

update_post
DestructiveIdempotent

Edit a draft or scheduled post before it publishes: set or change scheduled_at (must be in the future), change captions, or replace media. Published or publishing posts can't be edited. Provide at least one of scheduled_at, variant_updates, media_urls. Setting scheduled_at on a draft schedules it: the same checks as create_post apply (plan limits, connected accounts) and the post keeps its id. A caption for a platform with no connected account is left out and listed in skipped.

Input Schema

NameRequiredDescriptionDefault
idYesPost id (from list_posts or create_post)
media_urlsNoReplaces the post's media (public https URLs)
scheduled_atNoISO datetime in the future with a time zone (Z or an offset such as +01:00; convert the user's local time first). On a draft, this schedules it
variant_updatesNoCaption changes, one entry per variant

Output Schema

NameRequiredDescriptionDefault
idYes
postNoThe post after the update
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / post / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "created_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "media_urls": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "post_variants": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "connected_account_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "content": {
      -                  "description": "Caption for this platform/account",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "error_message": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "platform": {
      -                  "description": "Platform id, e.g. instagram, linkedin",
      -                  "type": "string"
      -                },
      -                "platform_post_id": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "published_at": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "status": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "platform"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "One entry per platform/account"
      -      },
      -      "published_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "raw_prompt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "scheduled_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "description": "draft | scheduled | publishing | published | failed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "created_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "media_urls": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "post_variants": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "connected_account_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "content": {
      +                  "description": "Caption for this platform/account",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "error_message": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "permalink": {
      +                  "description": "Exact link to the published post when the platform gave one; otherwise build it from platform_post_id",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "platform": {
      +                  "description": "Platform id, e.g. instagram, linkedin",
      +                  "type": "string"
      +                },
      +                "platform_post_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "published_at": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "status": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "platform"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "One entry per platform/account"
      +      },
      +      "published_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "raw_prompt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "scheduled_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "draft | scheduled | publishing | published | failed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / scheduled_at / description
      Previous value: -"New ISO datetime in the future with a time zone (Z or an offset such as +01:00), scheduled posts only"New value: +"ISO datetime in the future with a time zone (Z or an offset such as +01:00; convert the user's local time first). On a draft, this schedules it"
  3. Changed1 schema field changed
    • changedOutput schema / properties / post / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "created_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "media_urls": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "post_variants": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "connected_account_id": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "content": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "Caption for this platform/account"
      -                },
      -                "error_message": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "id": {
      -                  "type": "string"
      -                },
      -                "platform": {
      -                  "description": "Platform id, e.g. instagram, linkedin",
      -                  "type": "string"
      -                },
      -                "platform_post_id": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "published_at": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "status": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "platform"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "One entry per platform/account"
      -      },
      -      "published_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "raw_prompt": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "scheduled_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "status": {
      -        "description": "draft | scheduled | publishing | published | failed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "created_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "media_urls": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "post_variants": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "connected_account_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "content": {
      +                  "description": "Caption for this platform/account",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "error_message": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "platform": {
      +                  "description": "Platform id, e.g. instagram, linkedin",
      +                  "type": "string"
      +                },
      +                "platform_post_id": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "published_at": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "status": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "platform"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "One entry per platform/account"
      +      },
      +      "published_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "raw_prompt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "scheduled_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "draft | scheduled | publishing | published | failed",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / scheduled_at / description
      Previous value: -"New ISO datetime in the future (scheduled posts only)"New value: +"New ISO datetime in the future with a time zone (Z or an offset such as +01:00), scheduled posts only"
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "post": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "created_at": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "media_urls": {
      +              "anyOf": [
      +                {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "post_variants": {
      +              "anyOf": [
      +                {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "connected_account_id": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "content": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "Caption for this platform/account"
      +                      },
      +                      "error_message": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "id": {
      +                        "type": "string"
      +                      },
      +                      "platform": {
      +                        "description": "Platform id, e.g. instagram, linkedin",
      +                        "type": "string"
      +                      },
      +                      "platform_post_id": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "published_at": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "status": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "id",
      +                      "platform"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "One entry per platform/account"
      +            },
      +            "published_at": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "raw_prompt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "scheduled_at": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "status": {
      +              "description": "draft | scheduled | publishing | published | failed",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "status"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The post after the update"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success",
      +    "id"
      +  ],
      +  "type": "object"
      +}
  6. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that scheduling a draft runs create_post checks (plan limits, connected accounts), that the post keeps its id, and that captions for platforms without connected accounts are omitted and returned in skipped. These details materially affect invocation and interpretation of results, and they align with destructiveHint=true because media can be replaced.

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?

The description is dense but front-loaded: capability and scope come first, followed by constraints, conditional behavior, and output-related caveats. Every sentence carries operational information and none merely restates the tool name or schema.

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?

Given the existence of an output schema, the description need not document return fields, yet it usefully mentions skipped for unconnected platforms. It covers state restrictions, prerequisite-style checks, conditional scheduling behavior, and minimum input requirements, which is complete for a mutation tool with annotations already covering safety traits.

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 the schema already documents individual fields, but the description adds a valuable cross-parameter rule: at least one of scheduled_at, variant_updates, or media_urls must be supplied. It also clarifies that scheduled_at on a draft schedules rather than merely edits, which is more than the field-level schema text conveys.

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 begins with a specific verb and resource ('Edit a draft or scheduled post') and immediately scopes the operation to unpublished posts. It clearly distinguishes update_post from create_post and delete_post.

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?

It states exactly when editing is allowed (draft or scheduled), when it is not (published or publishing), and the minimum payload requirement ('Provide at least one of scheduled_at, variant_updates, media_urls'). It also cross-references create_post for scheduling checks, leaving little ambiguity for an agent choosing between tools.

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