{"serverInfo":{"name":"polytranslator","title":"Polytranslator","version":"1.1.1"},"authentication":{"required":true,"schemes":["oauth2"]},"tools":[{"name":"translate_document","title":"Translate a document","description":"Translate a PDF (native or scanned), Word, PowerPoint, Excel, EPUB or image file and get a translated file with its layout preserved (native formats retain their type; images return PNG; converted formats return DOCX). Also accepts DOC, ODT, RTF, TXT, Markdown, HTML, subtitles, CSV and ebooks. Up to 50 MB and 1,000 PDF pages. Waits up to wait_seconds; if the document is still running, call get_document with the returned id. Charges the quoted credits once; failed documents are refunded.","inputSchema":{"type":"object","properties":{"file_url":{"type":"string","description":"Public https URL of the document. Provide this or file_base64."},"file_base64":{"type":"string","description":"The document's bytes, base64-encoded. Requires filename."},"filename":{"type":"string","description":"File name with extension, e.g. contract.pdf. Required with file_base64; optional with file_url."},"target_language":{"type":"string","description":"Language name (e.g. \"Spanish\", \"Ancient Greek\") or code from list_languages (e.g. \"spa_Latn\")."},"source_language":{"type":"string","description":"Source language name or code. Omit to detect it."},"tier":{"type":"string","enum":["fast","advanced"],"description":"fast (default) or advanced (most accurate, more credits)."},"output":{"type":"string","enum":["formatted","text"],"description":"formatted (default): layout preserved; native formats retain their type, images return PNG, converted formats return DOCX. text: translated text only, usually cheaper."},"max_credits":{"type":"integer","minimum":0,"description":"Refuse (without charging) if the document would cost more credits than this."},"wait_seconds":{"type":"integer","minimum":0,"maximum":50,"description":"How long to wait for the result (default 50)."}},"required":["target_language"]},"annotations":{"title":"Translate a document","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"get_document","title":"Get a document's status","description":"Status of a document started with translate_document; waits up to wait_seconds for it to finish. Completed documents include download links valid for 24 hours.","inputSchema":{"type":"object","properties":{"document_id":{"type":"string"},"wait_seconds":{"type":"integer","minimum":0,"maximum":50}},"required":["document_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false}},{"name":"quote_document","title":"Price a document (free)","description":"Price a document in credits without translating or charging anything, and compare with the account balance.","inputSchema":{"type":"object","properties":{"file_url":{"type":"string","description":"Public https URL of the document. Provide this or file_base64."},"file_base64":{"type":"string","description":"The document's bytes, base64-encoded. Requires filename."},"filename":{"type":"string","description":"File name with extension, e.g. contract.pdf. Required with file_base64; optional with file_url."},"target_language":{"type":"string","description":"Language name (e.g. \"Spanish\", \"Ancient Greek\") or code from list_languages (e.g. \"spa_Latn\")."},"source_language":{"type":"string","description":"Source language name or code. Omit to detect it."},"tier":{"type":"string","enum":["fast","advanced"],"description":"fast (default) or advanced (most accurate, more credits)."},"output":{"type":"string","enum":["formatted","text"],"description":"formatted (default): layout preserved; native formats retain their type, images return PNG, converted formats return DOCX. text: translated text only, usually cheaper."}},"required":["target_language"]},"annotations":{"readOnlyHint":true,"openWorldHint":true}},{"name":"translate_text","title":"Translate text","description":"Translate up to 50,000 characters of text. Costs 1 credit per 1,000 characters (fast) or 3 (advanced).","inputSchema":{"type":"object","properties":{"text":{"type":"string"},"target_language":{"type":"string","description":"Language name (e.g. \"Spanish\", \"Ancient Greek\") or code from list_languages (e.g. \"spa_Latn\")."},"source_language":{"type":"string","description":"Source language name or code (required for text)."},"tier":{"type":"string","enum":["fast","advanced"],"description":"fast (default) or advanced (most accurate, more credits)."},"max_credits":{"type":"integer","minimum":0}},"required":["text","target_language","source_language"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false}},{"name":"list_languages","title":"Find language codes","description":"Search the 475 supported languages by name or code.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Part of a language name or code; omit to list the first 100."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false}},{"name":"get_credit_balance","title":"Check credits","description":"The account's purchased credit balance available to the API.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false}}],"resources":[],"prompts":[]}