Skip to main content
Glama

sarvam_chat

Generate multilingual chat completions with Sarvam-30B or Sarvam-105B models, supporting 10 Indic languages plus English and optional structured JSON output.

Instructions

Chat completion via Sarvam-30B or Sarvam-105B. Multilingual (10 Indic + EN), supports JSON mode.

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": {
      "messages": "<messages>"
    },
    "name": "sarvam_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoSarvam model. 105B is the strongest; 30B is faster/cheaper.sarvam-105b
top_pNo
messagesYesChat history. At least one message required.
json_modeNoIf true, request structured JSON output via response_format.
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 it discloses little beyond the schema: no streaming behavior, no context-window or token limits, no error/rate-limit behavior, no indication of what the response contains. The multilingual scope and JSON-mode support are useful but are largely restated in the schema's own field descriptions.

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 front-loaded sentences with no filler; the core capability comes first and the qualifiers follow. It is efficient, though the terseness contributes to the missing guidance rather than being purely a virtue.

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

Completeness2/5

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

For a six-parameter LLM chat tool with no annotations and no output schema, the definition leaves significant gaps: no guidance on when to choose chat versus the sibling task tools, no mention of sampling-parameter semantics, and no context/token-limit framing beyond the schema's numeric bounds.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: model, messages, and json_mode are already documented in the schema, and the description adds nothing new about them, while temperature, top_p, and max_tokens are undocumented in both places. The description does not compensate for the coverage gap.

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?

States a specific verb+resource (chat completion) and names the two concrete models (Sarvam-30B, Sarvam-105B), plus scope qualifiers (10 Indic languages + English, JSON mode). This distinguishes it from the task-specific siblings like sarvam_translate and sarvam_text_to_speech, though the differentiation is implicit rather than stated.

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 when-to-use guidance: nothing says to pick this over sarvam_translate or sarvam_detect_language for open-ended generation, nor any prerequisites. The guidance is only inferable from the tool's name and the phrase 'chat completion'.

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