Skip to main content
Glama

Keep segments

keep_segments

PROJECT-SCOPED: this call acts only on the explicit project_id and returns the project identity with its result. REPLACE the whole keep list: the parts of the SOURCE video that survive, [[start,end],...] in seconds. Everything else is cut. Use only for wholesale restructuring, always after get_edl — for local fixes prefer cut_range/restore_range. snap_to_words:true moves boundaries outward to word edges so no word is clipped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
segmentsYes
project_idYesRequired immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess.
snap_to_wordsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

The description clearly discloses the mutating behavior (REPLACE, everything else is cut), project-scoping, the returned project identity, and the boundary-moving semantics of snap_to_words. Since annotations provide no positive safety signals, the description carries the disclosure burden and meets it fully.

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 dense sentences, each earning its place: scope/return, core replace semantics, when-to-use/alternatives, and the optional parameter behavior. Critical warnings are front-loaded.

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 mutating tool with no output schema and no helpful annotations, the description covers prerequisites, exact input semantics, scope constraint, return expectation, and disambiguation from siblings. Nothing an agent needs to invoke it correctly is missing.

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?

Only project_id has a schema description, but the prose defines segments fully and snap_to_words semantically. The project_id schema text is itself detailed and reinforces the explicit-scope rule.

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 precise action: REPLACE the whole keep list of source-video survivals as [[start,end],...] in seconds. This distinguishes it from cut_range/restore_range and aligns with the name without tautology.

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?

Explicitly says 'Use only for wholesale restructuring, always after get_edl — for local fixes prefer cut_range/restore_range.' This gives both a precondition and named alternatives, so an agent knows when not to use it.

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.