Skip to main content
Glama

Edit workflow

edit_workflow
DestructiveIdempotent

Edit supported settings in an explicitly selected saved workflow. This changes generation setup, not existing video output, and never regenerates or spends credits implicitly. Supply the inspected revisions for exactly the affected documents and a new mutationId UUID. A stale revision conflicts atomically; recover an uncertain result with get_project_edit.

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": {
      "mutationId": "<mutationId>",
      "commands": "<commands>",
      "expectedDocuments": "<expectedDocuments>",
      "projectId": "<projectId>"
    },
    "name": "edit_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandsYes
projectIdYes
mutationIdYes
expectedDocumentsYes

Output Schema

NameRequiredDescriptionDefault
outcomeYes
projectIdYes
mutationIdYes
videoEditIdNoPresent when outcome is STARTED. Poll GET /v1/projects/{projectId}/video-edits for this id to follow the background task.
editableVideoIdNo
projectRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: no implicit regeneration or credit spend, optimistic concurrency via revisions, UUID-based mutation identity for retry safety. However, the annotations declare destructiveHint=true while the description never mentions that commands can delete scenes and slides, so the destructive surface is undisclosed.

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

Conciseness5/5

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

Four tight sentences, front-loaded with scope and immediately followed by the two constraints that govern correct invocation. No filler and nothing repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return values need not be explained. For a tool with 22 nested command variants, though, the description omits batch atomicity (whether all commands commit or fail together) and the semantics of the commands array, which an agent needs before composing a call.

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 0%, yet the description supplies meaning for expectedDocuments ("inspected revisions for exactly the affected documents") and mutationId ("a new mutationId UUID"), which the schema alone does not convey. The commands array, which carries all 22 operation variants and the batch limit, is not described at all, leaving the most complex parameter to raw enum names.

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?

States a concrete verb and resource ("Edit supported settings in ... a saved workflow") and scopes it as generation setup rather than rendered output. It differentiates itself from generation tools by declaring it never regenerates or spends credits, though "supported settings" stays vague until the schema is opened.

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?

Gives clear context: the workflow must be explicitly selected and previously inspected revisions must be supplied. It names get_project_edit as the recovery path for an uncertain result, but offers no guidance relative to edit_project, edit_video, or undo_project_edit, so sibling selection still requires inference.

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.