Skip to main content
Glama

Price an edit

edit_cost
Read-only

The exact price in credits of an edit of the given footage with a director, the price of a change to it afterwards, and the credits the account has. Free. Call it and tell the user the price before create_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": {
      "footage_ids": "<footage_ids>"
    },
    "name": "edit_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
directorNoWho writes the edit: auto (Auto: Our pick for most edits: careful cuts, captions and pacing); light (GPT 6 Luna: Quick and light, for simple cuts); fable (Claude Fable 5.2: The most capable director, for long footage and the hardest briefs; not on every plan). auto when omitted. The price depends on it.
length_sNoLength of the finished video in seconds, 3 to 180; the director picks what the footage and brief call for when omitted. A video made without clips runs up to 60 s; pass the length the user asks for; 10 s when omitted.
photo_idsNoIds of images of the account (upload_image, or list_assets with kind image) that AI shots may start from; needs generated_shots
shot_modelNoThe video model of the AI shots (needs generated_shots), as the user picks it: grok-lite (Grok Imagine Lite: quick, stylised shots at the lowest price); kling-3 (Kling 3.0: natural motion, people and products); wan-2.6 (Wan 2.6: detailed scenes and places); kling-4 (Kling 4.0: the most lifelike motion of the kling models); seedance-fast (Seedance 2.0 Fast: cinematic camera moves; it refuses real faces); seedance-2.5 (Seedance 2.5: bytedance’s flagship, for the most detailed scenes; it refuses real faces); veo-3.1 (Veo 3.1: google’s cinematic model, in eight-second shots). grok-lite when omitted. Each has its own price a second (edit_cost shows them all); a model with fixed clip lengths is paid by the clip it makes.
voice_overNoAn AI voice-over: the director writes lines said by a narrator over shots without speech. Priced per 1,000 characters on top of the edit (edit_cost gives the rate and the most it can add). Off when omitted.
footage_idsYesIds of the account’s videos, from add_footage or list_footage; up to 150 clips and 30 minutes in all. At least one, except for a 1:1 Reference made from photos alone, or a video made from words alone: pass [] with generated_shots true, and the whole video (up to 60 s) is made of AI shots from the brief.
reference_idNoEdit like this video: the id of a video of the account (add_footage or list_footage), up to 3 minutes. As inspiration (the default) the edit copies its rhythm of cuts, caption style, on-screen texts and pace, not its content. It is read like footage, so its length is priced with the footage's.
generated_musicNoAn instrumental track made for the edit by a music model from the director’s description (instead of music_asset_id or a library track), lowered under speech. Priced on top of the edit (edit_cost). Off when omitted.
generated_shotsNoAI shots: let the director add up to 6 shots of 3–10 s made by a video model where the footage lacks a picture (b-roll, a product or establishing shot, a scene the brief asks for that was not filmed, a photo brought to life), from the user’s photos (photo_ids) or from a prompt. Each second is paid for on top of the edit (edit_cost gives the rate and the most it can add); only the shots the director uses are charged, and a shot that fails is not. Off when omitted: turn it on when the brief asks for scenes, animation or motion the footage does not have.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds the fact that the call costs nothing and, importantly with no output schema, enumerates the three values returned. It stops short of describing the response's shape or units beyond 'credits', which keeps it from a 5.

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?

Three short sentences, front-loaded with the purpose and ending with the actionable instruction. The opening sentence is a dense run-on that packs three return values into one clause, costing a little readability, but nothing is wasted.

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 nine-parameter read-only pricing tool with no output schema, the description tells the agent what it returns, that it is free, and that the result should be relayed to the user before create_edit. Only the response format and the fact that it reflects the same optional parameters the schema defines are left implicit.

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 every one of the nine parameters already documents its own semantics in detail. The description adds only the loose framing 'of the given footage with a director', which the schema covers far better; 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?

States a specific verb and resource ('The exact price in credits of an edit') and then names the three things it returns: the edit price, the price of a later change, and the account's credits. It also names the sibling it precedes (create_edit), so an agent can tell it apart from get_balance or create_edit itself.

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?

Gives an explicit ordering rule ('Call it and tell the user the price before create_edit') plus the reason it is safe to call ('Free.'), which is precisely the when-to-use guidance an agent needs. No exclusions are stated, but for a read-only pricing call none are required.

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