Skip to main content
Glama
FirstReply MCP Server

FirstReply MCP Server

Official
by FirstReply

Ai Translate

ai_translate
Read-onlyIdempotent

Translate text into a target language before replying, auto-detecting the source and returning the original when it already matches.

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "organizationId": "<organizationId>",
      "text": "<text>",
      "language": "<language>"
    },
    "name": "ai_translate"
  }
}

Input 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. Changed1 schema field changedv0.3.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive behavior, so the baseline is covered. The description does add genuine behavioral context beyond the annotations: language detection happens first, already-target-language text returns untouched with translated=false, and an empty translation signals failure. That is useful but still a partial account of how failures surface (errors vs. empty string) and what the response contains.

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 purpose, followed by the edge-case behavior an agent most needs (already-translated input, failed translation). No filler or restated title.

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?

For a three-parameter pure-function tool with no output schema, this covers the essentials, including the two surprising return behaviors. It falls just short of complete because failure signaling (exception vs. empty string) and the full response shape are only partially described.

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%, with text, language, and organizationId each documented in the schema itself, so the baseline is 3. The description adds no additional meaning about parameter formats or constraints beyond the schema, though its note about language detection implicitly explains why the agent need not detect the source language.

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 opens with a concrete verb and resource ("Translate a text into a language") and immediately ties it to a specific workflow (translating a reply into the customer's language before conversation_reply). An agent can distinguish this from siblings like ai_draft_reply or conversation_reply without inspecting any 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 supplies a concrete when-to-use scenario (before conversation_reply) and a sequencing cue that tells the agent where this fits in a reply flow. There are no explicit exclusions or named alternatives to use instead, which keeps it 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.

Deploy Server

Other Tools