Skip to main content
Glama

Delete several sequence markers

delete_markers
Destructive

Delete sequence markers by IDs or filters such as type, color, time range, or text. Specify at least one selector; returns deleted, remaining, and deleted marker details.

Instructions

Delete the markers of a sequence chosen by marker_ids and/or by filters (type, colour, time range, text); at least one of them is required. Returns deleted, remaining and deleted_markers (id, name, time). Use delete_all_markers to remove every marker.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_markers"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOnly markers whose name or comment contains this text (plain substring, case-insensitive).
typeNoOnly markers of this type. One of "comment", "chapter", "segmentation", "web_link".
colorNoOnly markers of this colour. Colour index or name: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan.
to_timeNoOnly markers that start at or before this sequence time, in seconds.
from_timeNoOnly markers that start at or after this sequence time, in seconds.
marker_idsNoIds of the markers to delete (combined with any filters).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds value beyond that: it discloses the return payload (deleted, remaining, deleted_markers with id/name/time) and the minimum-selector constraint, both of which affect how an agent should call and interpret it. It does not say what happens when selectors match nothing, 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.

Conciseness5/5

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

Two sentences, no filler: the destructive action and its selection rules come first, the return shape second, and the sibling alternative last. Nothing repeats the title or annotations.

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 an 8-parameter, non-idempotent destructive tool with no output schema, the description supplies the return keys and the selector precondition, and the schema documents every parameter. Only edge behavior (no matches, partial failures) is unaddressed.

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?

Schema coverage is 100%, so 3 is the baseline, but the description adds semantics the schema does not encode: the selectors are combinable ("and/or") and at least one selector is mandatory even though the schema has no required fields or oneOf constraint. That constraint is materially important for correct invocation.

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 ("Delete the markers of a sequence") plus the exact selection mechanism (marker_ids and/or filters), and explicitly names the sibling delete_all_markers as the different case. An agent can distinguish it from delete_marker and delete_all_markers without opening a 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?

Gives an explicit precondition ("at least one of them is required") and routes the agent to the alternative ("Use delete_all_markers to remove every marker"). Both the when-to-use and the when-to-use-something-else cases are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools