Skip to main content
Glama

txtreel

Validate a txtreel conversation

chat_validate
Read-onlyIdempotent

Check a txtreel conversation (script or messages) without rendering anything. Fast and free — call this before chat_render_video, and again after fixing any reported errors.

On success returns { ok: true, durationSeconds, messageCount, conversation } where "conversation" is the fully-resolved object (all defaults applied). On failure returns { ok: false, errors: string[] } — one message per problem; when the input was a script, errors are prefixed with the offending line number. Videos longer than the server limit are rejected here too.

Conversation script format (one event per line):

them: hey, you up? me: yeah why [pause 1.5] wait 1.5 s --- Today 9:41 PM date/time separator me: [photo URL] caption a photo (URL, local file path, or an uploaded photo's number) [them reacts ❤️] reaction on my last message [read] they read my messages === everything above is already on screen at the start === scroll 3 same, but open on the oldest message and skim down in 3 s

comment

"Name: text" also means "them" when Name matches contact.name (e.g. contact.name "Sam" lets you write "Sam: omg" instead of "them: omg"). A literal "\n" inside a message becomes a line break. Lines starting with # are comments.

Guidance: one short message per line, like real texting — split up what a real person would send as separate texts rather than one long paragraph. A typical reel is 8-16 messages and 15-30 seconds. Use "[pause N]" to hold a beat before a reply lands (dramatic timing). Use "===" to start the video with everything above it already on screen, e.g. for a "catch up on this conversation" reel. Photos: "me: [photo https://example.com/image.jpg] optional caption" (https URLs only; local file paths are not available). Use "=== scroll 3" instead to open on the oldest message of a longer history and skim down to the live part in 3 s — too fast to read, so viewers pause and rewind (good for comments: hide a detail in the history). Leave keyboard at its default (true) so the newest messages stay above where the Reels caption/UI usually sits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
speedNoPacing multiplier; 2 = twice as fast, 0.5 = half speed. Default: 1.
themeNoColor theme, "light" or "dark". Default: light.
scriptNoConversation as a plain-text script. Use this OR messages, not both. Conversation script format (one event per line): them: hey, you up? me: yeah why [pause 1.5] wait 1.5 s --- Today 9:41 PM date/time separator me: [photo URL] caption a photo (URL, local file path, or an uploaded photo's number) [them reacts ❤️] reaction on my last message [read] they read my messages === everything above is already on screen at the start === scroll 3 same, but open on the oldest message and skim down in 3 s # comment "Name: text" also means "them" when Name matches contact.name (e.g. contact.name "Sam" lets you write "Sam: omg" instead of "them: omg"). A literal "\n" inside a message becomes a line break. Lines starting with # are comments. Guidance: one short message per line, like real texting — split up what a real person would send as separate texts rather than one long paragraph. A typical reel is 8-16 messages and 15-30 seconds. Use "[pause N]" to hold a beat before a reply lands (dramatic timing). Use "===" to start the video with everything above it already on screen, e.g. for a "catch up on this conversation" reel. Photos: "me: [photo https://example.com/image.jpg] optional caption" (https URLs only; local file paths are not available). Use "=== scroll 3" instead to open on the oldest message of a longer history and skim down to the live part in 3 s — too fast to read, so viewers pause and rewind (good for comments: hide a detail in the history). Leave keyboard at its default (true) so the newest messages stay above where the Reels caption/UI usually sits.
soundsNoReal UI sounds: iOS key clicks while typing, the app's send and receive sounds. Default: true.
contactNoContact header info.
endHoldNoSeconds to hold on the final frame before the video ends. Default: 2.
autoReadNoMark "me" messages as read as soon as the other person starts typing. Default: true.
keyboardNoShow the iOS keyboard, which keeps the latest messages above the Reels caption area. Default: true.
messagesNoConversation as an array of event objects instead of a script string (use this OR script, not both). Passed through to the txtreel API as-is; each item is one of: {from:"me"|"them", text, delay?, typing?, hold?, time?, instant?} (type "message" is the default and can be omitted), {type:"pause", seconds}, {type:"timestamp", text, instant?}, {type:"read", time?}, {type:"react", from:"me"|"them", emoji}.
platformNoChat app to render: "imessage", "whatsapp", or "instagram". Default: imessage.
startTimeNoClock used for messages, read receipts, and WhatsApp bubble times, e.g. "9:41 PM". Default: 9:41 PM.
statusBarNoPhone status bar shown at the top of the frame.
composerTypingNoType "me" messages into the input bar before sending them. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the safe-read profile (readOnlyHint, idempotentHint, non-destructive, non-open-world), so the bar is lower, and the description still adds real value: the exact success/failure return shapes, that errors are line-number-prefixed for scripts, that defaults are fully resolved, and that oversized videos are rejected here. The only gap is that the referenced 'server limit' is left unquantified.

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?

It is well front-loaded — purpose, placement, and return values come before any format detail. However, the entire script-format block and usage guidance is duplicated almost word-for-word from the `script` parameter's schema description, making the definition substantially longer than it needs to be for a tool whose schema is already fully documented.

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?

With no output schema, the description correctly carries the return-value burden and does so thoroughly, plus it explains the error-reporting model. It is slightly incomplete on scope — it never clarifies whether validation covers only the conversation payload or the rendering settings too (platform, contact, theme).

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 description coverage is 100%, so the schema already documents all 13 parameters in detail; per the rubric this establishes a baseline of 3. The description's format section largely restates the `script` parameter's schema description verbatim rather than adding new semantics, and it says nothing about how the other parameters (platform, theme, contact, etc.) participate in validation.

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 first sentence states a specific verb and resource — 'Check a txtreel conversation (script or messages) without rendering anything' — and immediately distinguishes it from the sibling chat_render_video by saying it renders nothing. An agent can tell exactly what this tool does versus the render tools without opening either schema.

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

Usage Guidelines4/5

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

It gives explicit workflow placement: 'call this before chat_render_video, and again after fixing any reported errors', which names the alternative and the condition that selects it. There is no explicit 'when not to use' or statement about what a valid result guarantees downstream, so it stops just short of a 5.

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.

Resources