Skip to main content
Glama
FirstReply

FirstReply MCP Server

Official
by FirstReply

Ai Translate

ai_translate
Read-onlyIdempotent

Translate text into a target language before replying to a customer. Detects the source language and returns the original text if no translation is needed.

Instructions

Translate a text into a language, e.g. a reply into the customer's language before conversation_reply. The language of the text is detected first: when it already is the target language the text comes back untouched with translated=false. An empty translation means the translation failed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to translate.
languageYesTarget language as a two-letter code, e.g. the language of the conversation.
organizationIdYesThe organization id. Use organization_list to find it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/idempotent/non-destructive) by disclosing the detection-first behavior, the untouched-text + translated=false case, and the failure signal of an empty translation. These are non-obvious behavioral traits an agent needs to interpret results correctly.

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?

Three short sentences, front-loaded with the core action, then the edge-case behavior. Every sentence carries distinct information with no filler.

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

Completeness5/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 compensates by explaining the meaningful return signals (translated=false, empty translation = failure). Combined with full schema coverage and annotations, an agent has everything needed to call and interpret this tool.

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 text, language (two-letter code), and organizationId. The description adds only a loose restatement of the language parameter and no syntax beyond the schema, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Translate a text into a language') and immediately frames the concrete use case (translating a reply into the customer's language before conversation_reply). This distinguishes it from siblings like ai_draft_reply or conversation_reply without needing the 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?

Gives clear usage context by naming the workflow it belongs to (before conversation_reply) and explains the pre-check behavior. It stops short of explicit exclusions or naming an alternative tool for when not to translate, but the when-to-use signal is strong.

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