Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Read a video edit

postkey_get_edit
Read-onlyIdempotent

Postkey: One video edit as a script: every sentence with its id (s1, s2...), its words, whether it plays, who cut it and why, where it lands on the finished timeline, plus its format, the clips (kind, framing, and in an A/B edit which opening each is), the hook (and reel B's hook), captions, the closing "Comment WORD", pause tightness, the finished length of each reel, the version and the latest changes (who made each and what it did). Change it with postkey_edit_video. The person exports on their own device from open_url; on a computer, render: true gives a link to render it there, with their clips or from the Library (postkey_guide topic render). A long video's edit (long: true) answers its transcript a page at a time instead, for picking clips.

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>"
    },
    "name": "postkey_get_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoA long video's transcript page. Default 1; the answer's next_page is the next.
framesNotrue: instead, pictures of the edit as drawn, and of its cloned style's example.
momentNoA moment id (m1...): adds its html and script to the answer, to change part of it.
renderNotrue: adds a signed link to render the edit on the person's computer, or to see frames of it.
edit_idYesThe edit id from postkey_list_edits.
timelineNotrue: adds a signed link to the edit as a timeline file for Final Cut Pro, Premiere Pro and DaVinci Resolve.

Output Schema

NameRequiredDescriptionDefault
idNoThe edit's id.
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
editNoThe edit as a script: format, clips (c1...), script sentences (s1...) with words and whether each plays, hook, captions, texts (t1...), tightness, cta, seconds.
exportNoExporting runs on the person's device.
statusNodraft, exported or posted.
versionNoGoes up by one with every change.
open_urlNoWhere the person opens and exports it.
how_to_editNoWhich tools and operations change it.
recent_changesNoThe latest changes: change_id, version, who (the auto-edit, the person or an agent), by, summary, undone, at.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / frames
      Added value: +{
      +  "description": "true: instead, pictures of the edit as drawn, and of its cloned style's example.",
      +  "type": "boolean"
      +}
  2. 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."
  3. Changed1 schema field changed
    • addedInput schema / properties / timeline
      Added value: +{
      +  "description": "true: adds a signed link to the edit as a timeline file for Final Cut Pro, Premiere Pro and DaVinci Resolve.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "A long video's transcript page. Default 1; the answer's next_page is the next.",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  5. Changed3 schema fields changed
    • addedInput schema / properties / moment
      Added value: +{
      +  "description": "A moment id (m1...): adds its html and script to the answer, to change part of it.",
      +  "maxLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / render
      Added value: +{
      +  "description": "true: adds a signed link to render the edit on the person's computer, or to see frames of it.",
      +  "type": "boolean"
      +}
    • 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."
  6. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: exports happen on the person's own device, render:true returns a signed link to render there (with their clips or from the Library), and long edits return paginated transcript pages instead of the full script.

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 first sentence is a long comma-chained enumeration of return fields that is front-loaded with the right idea but heavy to parse. Later sentences earn their place by covering mutation routing, rendering and long-video paging, but the field catalog overlaps heavily with the output schema and inflates length.

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 read tool with full annotations and an output schema, the description covers what an agent needs to decide and call: how to change the edit, how to get it rendered or viewed as frames, and how long edits paginate. The only real defect is the phantom 'long: true' parameter reference, which slightly muddies the call contract.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 and the schema already explains page, frames, moment, render, timeline and edit_id. The description adds mode context for render and transcript paging but leaves timeline and moment entirely to the schema, and it references a 'long: true' flag that does not exist among the six parameters, which can mislead an agent about the call signature.

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 states a specific resource and scope ('One video edit as a script') and enumerates what that artifact contains (sentences with ids, words, play state, cutter, timeline placement, format, clips, hook, captions, closing line, pause tightness, reel lengths, version/changelog). It also distinguishes itself from the mutating sibling by saying 'Change it with postkey_edit_video', so an agent can separate read from write 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 Guidelines4/5

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

It names the alternative for mutation (postkey_edit_video) and gives conditional routing for two modes: 'on a computer, render: true gives a link' and 'a long video's edit ... answers its transcript a page at a time'. It does not say when to prefer this over postkey_list_edits or spell out a prerequisite chain beyond the schema's 'edit id from postkey_list_edits', so it is clear context without explicit exclusions.

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