Skip to main content
Glama

ass_read_timecodes

Extract frame timings and FPS changes from Aegisub timecodes files (v1/v2) and store them on the workspace for subtitle conversion.

Instructions

Parse an Aegisub timecodes file (v1 or v2) and store it on the workspace.

Args: path: path to the .txt/.timecodes file.

Returns: {"path", "version", "default_fps", "fps_changes", "times_ms", "frame_count", "duration_ms", "segments": [{"start_frame", "end_frame", "start_ms", "end_ms", "fps"}]}. v1 files have default_fps and fps_changes ([{"start_frame", "end_frame", "fps"}]); v2 files have the per-frame times_ms list. The result is also kept on workspace.timecodes so the conversion tools can honour it.

Malformed input raises a ToolError naming the offending 1-based line number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 burden and does so well: it discloses the side effect (storing on workspace.timecodes), version-specific return differences, and error behavior for malformed input. It gives an agent enough behavioral context to invoke the tool safely and interpret failures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose is front-loaded and the section structure is clear, but the extensive Returns block is largely redundant because an output schema already exists. It could be trimmed without losing essential information, so the description is not ideally concise.

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?

Given the absence of annotations, a 0%-covered parameter schema, and a complex return structure, the description is complete enough: it covers purpose, parameter meaning, version-specific return shapes, workspace storage, and error handling. Nothing essential is missing for an agent to call it correctly.

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?

The input schema has 0% description coverage and only one parameter. The description compensates by explaining that path is the path to a .txt or .timecodes file, which is useful semantic detail not present in the schema, though it omits details like absolute vs relative path.

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 (Parse) and resource (Aegisub timecodes file v1 or v2) plus the side effect of storing it on the workspace. An agent can distinguish this from siblings such as ass_write_timecodes or ass_frame_from_timecodes without inspecting schemas.

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

Usage Guidelines3/5

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

The description implies usage by noting the result is kept on workspace.timecodes so conversion tools can honour it, giving a clear context in which the tool is useful. However, it does not explicitly state when to use this versus alternatives or any exclusions.

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