Skip to main content
Glama

Edit a Studio project with ops

studio_patch
Destructive

Free. Apply editor ops in one step. Op names (exact): set_line {uid, line} | insert_scene | remove_scene {uid} | reorder_scenes | split_scene {uid} | merge_scenes {uid} | bind_visual {uid, visual} | set_visual_fields {uid, ...} | clear_visual {uid} | apply_mix {mix} | set_setting {path, value} | set_aspect {aspect} | set_title {title} | set_tier {tier} | set_shots {uid, shots}. An unknown op is refused in words; read the scene uids from studio_get_project. A 409 means the project changed: you get the new revision and the ops are NOT re-applied.

Args: project_id: project. ops: 1-50 ops, each {op, ...fields}. if_revision: the revision you read.

Returns: {ok, project:{...summary}} or {ok:false, error_code:"revision_conflict", revision}

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": {
      "project_id": "<project_id>",
      "ops": "<ops>",
      "if_revision": "<if_revision>"
    },
    "name": "studio_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
project_idYesA project id from studio_list_projects.
if_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation/destruction profile is structured data, not description credit. Beyond that the description genuinely adds: unknown ops are 'refused in words', a 409 returns the new revision and does not re-apply ops, and the batch is capped at 1-50. It still does not say whether a mid-batch validation failure leaves the project untouched, which matters a lot for a destructive batch tool.

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?

Front-loaded with purpose and cost, then the op reference, then Args/Returns blocks — scannable and free of filler. The pipe-delimited op list is dense but earns its space because the schema leaves ops additionalProperties:true with no enum; a minor redundancy remains around the 1-50 bound already in schema.

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?

With no output schema, the description supplies the return shape including the revision_conflict branch, and covers prerequisites for all three required params despite a 3-parameter, destructive surface. The main residual gap is atomicity on partial validation failure and any permission/auth requirements for a write tool.

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

Parameters5/5

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

Schema description coverage is only 33% (only project_id is documented in-schema, with ops/if_revision bare), and the description fully compensates: it names every valid op with its required fields, the {op, ...fields} item shape, the 1-50 bound, and the meaning of if_revision as 'the revision you read'. An agent can construct a valid call without guessing.

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 specific verb and resource — 'Apply editor ops in one step' — and enumerates the exact op vocabulary, so an agent knows precisely what surface this covers. It does not, however, distinguish itself from the sibling studio_edit, leaving ambiguity about which of the two editing entry points to pick.

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 a concrete prerequisite workflow: read scene uids from studio_get_project before calling, and supply if_revision from the read you performed. The 409 explanation tells the agent exactly what to do on a conflict (nothing is re-applied). It stops short of naming when to prefer this over studio_edit.

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