Skip to main content
Glama

Download a language file

wti_download_file
Read-only

Download a locale-specific language file (strings.xml, en.json, Localizable.strings) from WebTranslateIt as wti pull does, returning content or writing it to a local path.

Instructions

Download a language file (e.g. strings.xml, en.json, Localizable.strings) for one locale, as WebTranslateIt would export it, like wti pull does for one file. Returns the content, or writes it to save_to.

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": {
      "file_id": "<file_id>",
      "locale": "<locale>"
    },
    "name": "wti_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeYesLocale code as used in the project, e.g. `de`, `fr-BE`, `pt-PT`.
file_idYesMaster file id from wti_get_project (master_files[].master_file_id).
save_toNoWrite the file to this local path instead of returning it (relative to the server's working directory).
max_charsNoWhen returning the content, cut it after this many characters (default 30000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already state readOnlyHint=true and openWorldHint=true, so the read-only nature is covered. The description adds useful behavior beyond that: the output mirrors WebTranslateIt's export format and is either returned inline or written to save_to. It still says nothing about failure modes, authentication, rate limits, or what happens when a locale lacks translations for the file.

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 purpose and backed by a concrete example file list. The second sentence overlaps with schema-documented save_to behavior, but there is no padding or repetition beyond that.

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?

There is no output schema, so the description carries the burden of describing the return payload; it says 'Returns the content' and cites file types, which is helpful but vague about structure (e.g., that the response is the file body, how truncation is signalled, what a missing translation yields). Combined with the detailed input schema and annotations, this is adequate but leaves real gaps for an agent consuming the result.

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 all four parameters (locale, file_id, save_to, max_chars) are already documented, including the default truncation of 30000 characters. The description reinforces the return-vs-write behavior of save_to but adds no format, path, or truncation detail beyond what the schema provides, so baseline 3 applies.

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 gives a specific verb and resource ('Download a language file ... for one locale') and names concrete artifacts (strings.xml, en.json, Localizable.strings), which makes the scope clear. It implicitly separates itself from wti_upload_file by direction and from project-wide tools by limiting output to one file, but it does not explicitly reference any sibling, so it stops short of full differentiation.

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

Usage Guidelines3/5

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

Saying it behaves 'like `wti pull` does for one file' gives an implied usage context, and 'for one locale' bounds the call. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as an existing project or master file, and no pointer to alternatives for fetching multiple files or locales at once.

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