Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Undo a change to a video edit

postkey_undo_edit
Destructive

Postkey: Undoes one change to a video edit, yours or the person's, by its change id from postkey_get_edit or postkey_edit_video. The undo is itself a change that can be undone (undo the undo to bring it back). A change that was already undone is refused, and the first auto-edit line cannot be undone as a whole: restore its sentences with postkey_edit_video instead.

Input Schema

NameRequiredDescriptionDefault
edit_idYesThe edit id.
change_idYesThe change id to undo, from the edit's changes.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
editNoThe updated edit as a script (as postkey_get_edit).
changeNoThe undo, itself a change that can be undone: change_id, version, who, by, summary, undone, at.
secondsNoThe finished length in seconds.
versionNoThe edit's version after the undo.
open_urlNoWhere the person sees it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / ok / description
      Previous value: -"false: refused (isError true; code, message, guide_topic, url), nothing changed."New value: +"false: refused (isError; code, message, guide_topic, url); no change."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true, so the mutating nature is known; the description goes further by disclosing that the undo is itself a change and therefore reversible ('undo the undo'), that repeated undos of the same change are refused, and one structural limit on what can be undone. These are non-obvious behavioral traits that no annotation or schema field carries.

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?

Three sentences, front-loaded with the action and id source, then the reversibility rule, then the exception. Every clause carries information; only the parenthetical '(undo the undo to bring it back)' is mildly redundant with the preceding clause.

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 two-parameter mutation with an output schema available, the description covers the action, the id provenance, the reversibility model, and the failure/exception cases. There is nothing an agent needs to know to call this correctly that 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 the baseline is 3, but the description adds provenance for change_id (originating from postkey_get_edit or postkey_edit_video) and clarifies that changes may belong to either the caller or another person, which the terse schema text ('The change id to undo, from the edit's changes') does not convey.

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 ('Undoes one change to a video edit') with explicit scope ('one change', 'yours or the person's'), and distinguishes itself from postkey_edit_video by naming it as the restore alternative. An agent can tell this apart from postkey_edit_video or postkey_get_edit without opening a schema.

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?

Gives the precondition for the change_id (from postkey_get_edit or postkey_edit_video), two explicit exclusion cases (already-undone changes are refused; the first auto-edit line cannot be undone as a whole), and routes the excluded case to a named alternative. When-not-to-use guidance is stated rather than implied.

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