Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Edit a video

postkey_edit_video
Destructive

Postkey: Changes a video edit, all or nothing (latest version); the person sees it live, can undo. ops: a list of objects with "op": cut, restore, cut_words, restore_words, split, trim, fix_word, set_emoji, set_highlight, set_censor, retime, use_take, move (sentences); set_hook, set_captions, add_text, set_text, remove_text; add_moment (or add_title), add_effect, add_sound, add_broll, add_image, add_song, each with set_ and remove_; set_music, split_song; set_tightness, set_clip, set_pan, set_scene, set_layout, set_shape, set_reply, set_punch, set_clean_voice, set_fillers, set_speed, set_transition, set_cut, set_card, set_cta, apply_template, set_title, set_words, set_translation, set_captions_in. Each is {"op":...}; all fields: postkey_guide topic editor. Read ids with postkey_get_edit. note (what you did and why) is shown to the person beside the change. Returns the change, length, script. It cannot post: render it (postkey_guide topic render) or the person exports from open_url.

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": {
      "edit_id": "<edit_id>",
      "ops": "<ops>"
    },
    "name": "postkey_edit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesThe operations, in order, each an object with "op" (see the description). At least one.
noteNoWhat you did and why, in one short sentence. Shown to the person beside the change.
edit_idYesThe edit id from postkey_list_edits.
base_versionNoOptional: the version you read with postkey_get_edit. It still lands on the latest version; the answer says if it had moved on.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
editNoThe updated edit as a script (as postkey_get_edit).
changeNoThe change made: change_id (undo it with postkey_undo_edit), version, who, by, summary, undone, at. null when nothing changed.
exportNoExporting runs on the person's device.
changedNofalse: the edit already was that way; nothing was recorded.
secondsNoThe finished length in seconds.
summaryNoOne sentence of what changed.
versionNoThe edit's version after the change.
open_urlNoWhere the person sees it.
base_movedNotrue: the edit had changed since base_version; your change landed on the latest one.

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. Changed1 schema field changed
    • changedInput schema / properties / base_version / description
      Previous value: -"Optional: the version you read with postkey_get_edit. The change still lands on the latest version; the answer says whether it had moved on."New value: +"Optional: the version you read with postkey_get_edit. It still lands on the latest version; the answer says if it had moved on."
  3. Changed1 schema field changed
    • changedOutput schema / properties / export / description
      Previous value: -"Exporting runs on the person's device, never through you."New value: +"Exporting runs on the person's device."
  4. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses atomicity semantics (all-or-nothing), that edits land on the latest version rather than the read version, that the person sees the change live and can undo it, and that the note field is surfaced to the person. It also names the return payload (change, length, script) and the hard limitation that it cannot publish. This is substantial behavioral context the annotations alone do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose, prerequisites, and constraints are front-loaded, which is good. However the middle is a single semicolon-chained run-on listing roughly sixty op names with no grouping headings, which is hard to scan and blurs the boundaries between op families.

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 destructive multi-operation tool this covers the essentials: atomicity, versioning, undo, side effects on the person, the id source, and the publishing limit. An output schema exists so the brief return mention is sufficient. Missing only explicit guidance on error/partial-failure behavior under the all-or-nothing contract.

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?

The schema already documents all four parameters at 100% coverage, including the base_version caveat, so the baseline would be 3. The description earns above that by supplying the op taxonomy for the opaque `ops` array of bare objects — the only place an agent can learn valid op names such as cut, split, trim, set_emoji, or set_music.

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 opening clause gives a specific verb and resource ("Changes a video edit") plus a transactional scope ("all or nothing (latest version)"), which lets an agent distinguish it from sibling mutations like postkey_undo_edit. The dense op enumeration that follows muddies the sentence but does not obscure what the tool does.

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 states a prerequisite ("Read ids with postkey_get_edit") and an explicit boundary with a redirect ("It cannot post: render it (postkey_guide topic render) or the person exports from open_url"). It does not say when to prefer this over postkey_undo_edit or when a fresh postkey_get_edit is required, so it falls short of full when/when-not coverage.

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