Skip to main content
Glama

translate_srt

Prepares SRT subtitle content for AI translation by parsing text, preserving timing and formatting structure, and returning structured data ready for translation processing.

Instructions

🌍 SRT TRANSLATION HELPER TOOL 🌍

🚨 CRITICAL: THIS IS A HELPER TOOL ONLY - AI DOES THE TRANSLATION! 🚨

🎯 PURPOSE: This tool helps prepare SRT content for AI translation but DOES NOT translate text itself. The AI assistant must perform the actual translation work.

📝 WHAT IT DOES:

  • Parses SRT content and extracts subtitle text for AI translation

  • Preserves timing and formatting structure

  • Returns structured data for AI to translate

  • Provides context and metadata for better translation

❌ WHAT IT DOES NOT DO:

  • ❌ Does NOT translate text automatically

  • ❌ Does NOT return translated content

  • ❌ Does NOT perform any AI translation

✅ WHAT IT RETURNS:

  • Structured SRT data with original text

  • Timing and formatting information

  • Translation context and metadata

  • Ready-to-translate format for AI

🔄 RECOMMENDED WORKFLOW:

  1. Use detect_conversations to analyze file structure

  2. Use get_next_chunk to get individual chunks

  3. Use translate_srt to prepare chunk for AI translation

  4. AI assistant translates the text content

  5. AI assistant combines results into final SRT file

💡 USAGE PATTERNS:

Prepare Full File for Translation: {"content": "full SRT content", "targetLanguage": "es", "sourceLanguage": "en"}

Prepare Individual Chunk for Translation: {"content": "chunk SRT content", "targetLanguage": "es", "sourceLanguage": "en"}

⚠️ CRITICAL INSTRUCTIONS:

  • This tool ONLY prepares content for AI translation

  • AI assistant must do the actual text translation

  • Use this to get structured data, then translate with AI

  • Return format is ready for AI processing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesSRT file content to translate
sourceLanguageNoSource language code (optional, auto-detect if not provided)
targetLanguageYesTarget language code (e.g., es, fr, de)

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/omd0/srt-mcp'

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