Skip to main content
Glama

Sigmora

Propose trimming to a length

edit_trim_to_length
Read-onlyIdempotent

Use this when the user names a length ("make it 60 seconds") or wants a short. You choose what stays: read assets_transcript_get, then pass keepRanges (every other spoken sentence is cut) or, alone, preferCutRanges (only those go), in source seconds. It never decides what matters, and with neither it cuts nothing. details.plan reports the projected length against the target. Do not use for removing particular words (edit_cut_ranges). Next: Returns proposals[] (the same shape as sigma_turn); nothing changes yet. Show the user summary, then call sigma_apply with proposals[0].proposal unchanged (it is signed). sigma_apply returns turnIds that sigma_revert takes back. An empty proposals means nothing needed changing; summary says why. Apply or drop each proposal before requesting the next edit; if sigma_apply says a proposal is stale, call the same edit_ tool again for a fresh one. Free: a deterministic dry run of a composition revision, no model and no engine; your own model does the planning.

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": {
      "targetDurationSec": "<targetDurationSec>",
      "projectId": "<projectId>"
    },
    "name": "edit_trim_to_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNoThe user's words for this edit; shown with the proposal and restored if it is reverted.
projectIdYesThe project to edit.
workspaceNoWorkspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored.
keepRangesNoThe stretches you chose to keep; every other spoken sentence is cut.
compositionIdNoThe composition to edit; omit for the project's current one.
preferCutRangesNoWithout keepRanges: exactly the stretches to cut, such as a tangent.
targetDurationSecYesThe length the edit should end up, in seconds of finished video (at least 3).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, and the description goes well beyond them: it says the tool never decides what matters, that with neither range nothing is cut, that proposals are signed and must be passed unchanged, that an empty proposals list means no change, that stale proposals require re-calling the same edit tool, and that the run is deterministic and model-free.

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 trigger and the parameter logic are front-loaded in the first three sentences, and the later workflow section is dense but purposeful. It is on the long side and mixes three registers (when-to-use, parameter mechanics, multi-call choreography), so scanning takes effort, but no sentence is filler.

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

Completeness5/5

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

For a proposing tool with an output schema, an agent still needs the proposal lifecycle, and the definition supplies it: return shape ("proposals[] ... same shape as sigma_turn"), the apply/revert path, the empty-proposal case, and staleness handling. Nothing required to invoke and follow through correctly is missing.

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?

With schema coverage at 100% the baseline is 3, and the description earns more by clarifying the relationship between the two range parameters ("pass keepRanges ... or, alone, preferCutRanges") and the null behaviour ("with neither it cuts nothing"), which the schema does not state. It does not, however, add anything about targetDurationSec or compositionId beyond what the schema already documents.

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 names a specific verb and outcome — proposing a trim to a target length — and immediately explains the two mechanisms (keepRanges keeps a listed set, preferCutRanges cuts a listed set). It explicitly distinguishes itself from edit_cut_ranges, so an agent can tell the two trim-style tools apart without opening either schema.

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?

It gives the trigger case ("user names a length"), the negative case with the named alternative ("Do not use for removing particular words (edit_cut_ranges)"), and the prerequisite step (read assets_transcript_get first). It also states the post-call protocol — show summary, call sigma_apply with proposals[0].proposal, drop or apply before requesting the next 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