Skip to main content
Glama

Postkey: Instagram DM Automation and Comment-to-DM

Save a video edit's look as a template

postkey_save_edit_template
Destructive

Postkey: Saves the look of one video edit (its format, captions, hook style and length, framing per clip kind, pause tightness and closing "Comment WORD", never its words) as a template under a name, so the person can start new edits from it. A template of the same name is replaced. Or template_id changes a saved template in place (look, brief). List them with postkey_list_edit_templates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "postkey_save_edit_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
lookNoWith template_id: { captions, hook }, each the fields set_captions and set_hook take, laid over the template's.
nameNoThe template's name, as the person will see it.
briefNoA cloned style's notes: how to match what was not measured (the font, the graphics, the feel).
beyondNoA cloned style's effects the editor cannot draw. Rare.
edit_idNoThe edit whose look to save, with name.
template_idNoA saved template to change, instead of edit_id.

Output Schema

NameRequiredDescriptionDefault
okYesfalse: refused (isError; code, message, guide_topic, url); no change.
noteNoWhat happens next.
templateNoThe saved format: id, name, values.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / beyond
      Added value: +{
      +  "description": "A cloned style's effects the editor cannot draw. Rare.",
      +  "maxLength": 160,
      +  "type": "string"
      +}
    • addedInput schema / properties / brief
      Added value: +{
      +  "description": "A cloned style's notes: how to match what was not measured (the font, the graphics, the feel).",
      +  "maxLength": 1500,
      +  "type": "string"
      +}
    • changedInput schema / properties / edit_id / description
      Previous value: -"The edit whose look to save."New value: +"The edit whose look to save, with name."
    • addedInput schema / properties / look
      Added value: +{
      +  "description": "With template_id: { captions, hook }, each the fields set_captions and set_hook take, laid over the template's.",
      +  "type": "object"
      +}
    • addedInput schema / properties / template_id
      Added value: +{
      +  "description": "A saved template to change, instead of edit_id.",
      +  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "edit_id",
      -  "name"
      -]
  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. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description earns credit by disclosing the concrete destructive behavior: 'A template of the same name is replaced,' plus that template_id mutates in place. It also bounds the write scope ('never its words'). It does not say whether edits already created from a template are affected by an in-place change, nor any permission requirements.

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?

One dense, front-loaded sentence plus a short follow-up; the save semantics, overwrite rule, and alternative path all appear before any ancillary detail. The parenthetical list of captured elements is long but each item earns its place by defining the template's contents.

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?

An output schema exists, so return values need no explanation, and the description covers the mutation modes and overwrite risk for a six-parameter tool with a nested object. Remaining gaps are edge cases: zero required parameters means the valid edit_id/name and template_id combinations are only implied, and downstream effects on edits already derived from a template are unstated.

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; the description adds real value on top by explaining the edit_id-versus-template_id exclusivity ('instead of edit_id') and by tying name to the replace-on-collision rule, which the schema alone does not convey. The look/brief/beyond semantics are left largely to the schema text.

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 ('Saves the look of one video edit ... as a template under a name') and enumerates exactly what is and is not captured (format, captions, hook style/length, framing, pauses, closing phrase; 'never its words'). It also distinguishes its two modes (create from edit_id vs. modify via template_id) and points to postkey_list_edit_templates, so an agent can separate it from the listing sibling 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?

Clear about the two invocation paths — edit_id + name to save, template_id to change an existing template in place — and names postkey_list_edit_templates for discovery, which is genuine when-to-use routing. It stops short of explicit exclusions (e.g., when to prefer a fresh save over in-place edit, or what to do if both identifiers are supplied).

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