Skip to main content
Glama

Translate a caption

translate_caption

Translate a text naturally into another language, keeping tone, emojis and hashtags. Costs 2 AI credits per call (from the monthly pool; nothing with the organization's own AI key). SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.

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": {
      "text": "<text>",
      "targetLanguage": "<targetLanguage>"
    },
    "name": "translate_caption"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
confirmNotrue ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged.
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.
targetLanguageYese.g. "English", "Português", "Français".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond annotations by disclosing the credit cost, the source pool, that no charge occurs without confirm, and that the first call is a free dry-run returning a quote. Annotations only say it is a non-read-only, non-destructive, open-world call; the description supplies the two-phase spending contract and the reuse semantics for follow-up calls.

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?

Front-loads purpose and cost, then the confirmation workflow; every clause serves the gating behavior. It runs long and restates the 'nothing runs and nothing is charged' idea already present in the confirm schema, but repetition here reinforces the most failure-prone instruction rather than padding.

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?

Covers the risky parts of a metered mutation: cost, quote-then-confirm sequencing, idempotency on retries, and workspace resolution are all addressed, with no output schema needed. The only gap is that it does not hint at the shape of the successful translation response once confirm is true.

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

Parameters4/5

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

Schema coverage is already 80%, so the baseline is 3. The description earns above that by clarifying that confirm gates all spending, that the retry must use the same arguments, and that the quote enumerates the chosen options - meaning the schema text alone does not fully convey.

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 and resource ("Translate a text") plus a differentiating quality constraint ("naturally... keeping tone, emojis and hashtags"). It never names a sibling such as adapt_caption or write_caption, so the boundary with those tools is left to inference, but the core purpose is unambiguous.

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 unusually explicit procedural guidance: call first without confirm to get a quote, relay the quote to the user, wait for a clear yes, then re-call with identical arguments plus confirm: true. Also states the 'one yes covers the approved plan' rule. What it lacks is when to choose translate_caption over the sibling rewrite tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources