Skip to main content
Glama

ass_add_line

Append a new subtitle event line to an ASS document, specifying start/end times, style, and text. The line is appended at the document's end and can be undone with a snapshot revert.

Instructions

Append a new line.

start_ms/end_ms accept milliseconds or time strings such as "0:00:01.50"; they are clamped into the document timebase and end < start is an error. Lines are appended at the end of the document and the returned index is its 0-based position. The call is snapshot-backed, so :func:ass_undo reverts it.

Returns {"doc_id", "index", "line": <line dict>}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
actorNo
layerNo
styleNoDefault
doc_idNo
effectNo
end_msYes
commentNo
margin_lNo
margin_rNo
margin_vNo
start_msYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses accepted time formats, clamping into the document timebase, the `end < start` error condition, that lines append at the end, that the index is 0-based, and that the operation is snapshot-backed and undoable.

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?

Front-loads the core action, then layers time semantics, error conditions, undo behavior, and return shape in tight, non-redundant sentences. Every sentence earns its place.

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?

An output schema exists, so return values need not be re-explained, yet the description usefully summarizes the payload. Error and undo semantics are covered; the main gap is the undocumented non-timing parameters for what is a 12-param tool.

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 coverage is 0% across 12 parameters, so the description must compensate. It thoroughly explains the two timing params (accepted formats, clamping, ordering error) but leaves ten parameters (text, layer, style, effect, comment, margins, doc_id, actor) undefined in both schema and description.

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+resource: 'Append a new line.' Clear and unambiguous. However, it does not differentiate from the sibling ass_add_lines (bulk add), leaving the agent to infer which to pick when adding one vs many.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use guidance, no prerequisites, and no routing to the closely-named sibling ass_add_lines for multi-line insertion. The only contextual hint is that ass_undo reverts the call.

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