Skip to main content
Glama

publish_edit

Save a checked render as the next version with its recipe, assign it to posts tracking this edit, answer review comments it fixes, and add a changelog note in one call.

Instructions

Save a checked render as the next version, edits/-vN.mp4, with its recipe. In one call: reads the checks the render ran (it refuses on a failed check; accept=[{rule, why}] for a fail you meant), puts the version on the posts that follow this edit (a version the user picked stays), answers the review comments it fixes (replies: like reply_comment; fixed_in and resolve are set for you) and saves note as the changelog line. Call it once per version. To show another file on a post, call set_post media=... after. Its review (Gemini watched it, or a frame sheet when there is no key) is for the next version: follow review.note.

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": {
      "session": "<session>",
      "render": "<render>",
      "note": "<note>"
    },
    "name": "publish_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesOne short line the user reads under the edit, at most 60 characters. Say what the viewer will notice, in plain words. No field names or numbers in dB. Example: 'Music softer. Cut the restart at 0:41.'
acceptNo[{rule, why}]: failed checks you keep on purpose. rule is a rule id or a check id. Saved in the recipe.
renderYesThe job id from render_edit, or its render path.
go_backNotrue to save even when a newer version was saved while this render ran.
repliesNoComments this version fixes: [{id, text, lesson, rule?}], as in reply_comment.
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a non-destructive write. The description discloses the side effects: it refuses on a failed check, applies the version to following posts (unless a user pick exists), answers review comments, sets fixed_in/resolve automatically, and writes the changelog line. It also explains the review feedback loop for the next version, which structured fields do not carry.

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?

The core action is front-loaded and each clause carries real information, though the parenthetical-heavy run-on sentence is dense and requires careful parsing. No filler sentences, but readability could be improved by splitting the side-effect list.

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 multi-side-effect publish operation with no output schema, the description covers refusals, side effects, options, and follow-up routing (review.note). Remaining gaps are minor, such as what an error response looks like beyond a refused check.

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 coverage is 100%, so every parameter is already documented, including accept, replies, and go_back. The description adds some intent behind accept ('for a fail you meant') and replies ('as in reply_comment'), but mostly restates schema-level meaning, so baseline 3 applies.

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 opens with a concrete verb and outcome: 'Save a checked render as the next version, edits/<name>-vN.mp4, with its recipe.' It names the artifact path and distinguishes the operation from siblings like set_post and render_edit by describing its composite effect.

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?

Explicit usage rules: 'Call it once per version' and 'To show another file on a post, call set_post media=... after.' It also covers the fail-check case with a workaround (accept=[{rule, why}]) and the concurrency case via go_back, leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.