Skip to main content
Glama

Subtitle Toolkit

fix_subtitle_encoding

Repair mojibake — text where UTF-8 bytes were decoded as a single-byte encoding (cp1252/Latin-1 or cp1251). Symptoms: "é", "’", "привет". Returns the repaired text and how many passes were applied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
twiceNoSet true when the text was mis-decoded twice (nested mojibake). Default false.
contentYesThe garbled subtitle text.
read_asNoWhich encoding the file was wrongly read as. Default "auto" (tries cp1252 then cp1251).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description is the only source of behavioral detail. It discloses the return value (repaired text and pass count), which is important for callers. It does not mention edge cases or side effects, but the core behavior is transparent.

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?

The description is exceptionally concise—just two sentences—and front-loads the purpose with examples. It contains no filler, and every clause provides value, making it easily skimmable for an agent.

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?

The description covers the core operation, return value, and common symptoms, and relies on the fully documented schema for parameter details. It omits failure behavior or when to manually set 'twice' vs 'read_as', but given the schema completeness, it is sufficiently robust for correct invocation.

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 each parameter (content, twice, read_as) is already fully documented with its meaning and default values. The tool description adds no extra parameter-level semantics, placing it at the baseline of 3.

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 tool's function with a specific verb ('Repair mojibake') and resource (text), supported by concrete symptom examples ('é', '’'). This distinguishes it from sibling tools like convert_subtitle or clean_subtitles without ambiguity.

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?

The description provides strong contextual clues by listing specific symptoms of mojibake, helping an agent recognize when to apply it. However, it does not explicitly contrast with alternatives (e.g., clean_subtitles) or state when not to use it, which slightly limits guidance.

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