Skip to main content
Glama

add_text_segment

Adds text overlays to video projects with precise timing, positioning, and styling controls. Inserts text segments into Statonic video editor projects for annotations, captions, or titles.

Instructions

Add a new text overlay to the project and save. Reuses an existing text track if one exists, otherwise creates one.

Position reference (x, y): ( 0, 0) = canvas center (-1, 0) = left edge, (1, 0) = right edge ( 0, 1) = top, (0,-1) = bottom

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the .json project file
textYesText content
start_secYesStart time in seconds
duration_secYesDuration in seconds
xNoHorizontal position -1 to 1 (default 0)
yNoVertical position -1 to 1 (default 0)
font_sizeNoFont size in canvas px (default 80)
colorNoHex color e.g. "#ffffff" (default white)
boldNoBold (default false)
italicNoItalic (default false)
stroke_enabledNoStroke/outline (default false)
stroke_colorNoStroke color hex (default "#000000")
text_alignNoText alignment (default "center")
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: the tool saves changes to the project file, reuses existing text tracks or creates new ones, and includes detailed positioning reference. However, it lacks information on permissions, error conditions, or what happens if the project file is invalid.

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 description is appropriately sized and front-loaded with the core functionality in the first sentence. The positioning reference is necessary but presented efficiently. No wasted sentences, though the coordinate explanation could be slightly more integrated.

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

Completeness3/5

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

For a complex tool with 13 parameters, no annotations, and no output schema, the description is moderately complete. It covers the core operation and positioning details but lacks information on return values, error handling, or integration with sibling tools like 'read_project' or 'render_preview'.

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 description coverage is 100%, so the baseline is 3. The description adds significant value by explaining the coordinate system for x and y parameters with clear examples (-1 to 1 range, canvas center at 0,0), which goes beyond the schema's basic descriptions. This compensates well for the high parameter count.

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 clearly states the specific action ('Add a new text overlay'), the target resource ('to the project'), and the outcome ('and save'). It distinguishes from siblings like 'update_segment' or 'delete_segment' by specifying creation of text overlays rather than modifying or removing existing segments.

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 for adding text overlays to projects, but provides no explicit guidance on when to use this tool versus alternatives like 'update_segment' for modifying existing text or other media tools. The mention of reusing existing text tracks offers some contextual hint but no clear when/when-not rules.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dnldsz/StatonicMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server