Skip to main content
Glama

sarvam_translate

Translate text between English and 10 Indic languages, or among Indic languages, with automatic source-language detection and selectable formal, colloquial, or code-mixed modes.

Instructions

Translate text between English and 10 Indic languages, or Indic ↔ Indic. Mayura or Sarvam-Translate.

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": {
      "input": "<input>",
      "target_language_code": "<target_language_code>"
    },
    "name": "sarvam_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoformal
inputYesText to translate. Max 2000 chars.
modelNosarvam-translate:v1
speaker_genderNoTone bias for gendered languages (Hindi, etc).Female
enable_preprocessingNoSarvam-side cleanup of unicode/punctuation before translation.
source_language_codeNoSource language. Use "auto" to detect.auto
target_language_codeYesTarget language (BCP-47).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It says nothing about the 2000-character limit being enforced server-side, preprocessing side effects, latency/rate limits, or how the two model variants actually differ in output style — the only hint is the dangling 'Mayura or Sarvam-Translate' fragment.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core scope statement and free of padding. The second sentence is terse to the point of being cryptic — it names two models without saying what they are or how they differ.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters, four enums, no annotations, and no output schema, the definition is only marginally adequate. The schema covers most parameter mechanics, but an agent still cannot tell which model or mode to select, or what the response looks like, from the description alone.

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 71% and the schema already documents source/target language codes, preprocessing, and speaker_gender. The description adds only the language-pair scope and a passing mention of the model names, leaving the four mode values (formal, classic-colloquial, modern-colloquial, code-mixed) entirely unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (translate) and states the language scope precisely: English to/from 10 Indic languages, plus Indic-to-Indic. That scope statement implicitly separates it from sarvam_transliterate and sarvam_detect_language, though neither sibling is named directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to pick this over sarvam_transliterate or sarvam_detect_language, nor on when to use source_language_code 'auto' versus an explicit code. The trailing 'Mayura or Sarvam-Translate' hints that two engines exist but gives no condition for choosing between them.

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