Skip to main content
Glama

Upload a language file

wti_upload_file
DestructiveIdempotent

Upload a local language file to a WebTranslateIt file and locale, preview lines that could overwrite other users' changes, then confirm to start the background import.

Instructions

Upload a local language file to a file and locale on WebTranslateIt, like wti push does for one file. Called without confirm, it uploads nothing: it downloads WebTranslateIt's current copy and returns the lines that are only there (changes by other people that the upload could overwrite) and the lines that are only in your file. Show them to the user, then call again with the confirm token to upload. The import runs in the background. By default strings missing from the upload are kept (ignore_missing: true).

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>",
      "local_path": "<local_path>"
    },
    "name": "wti_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoLabel applied to every string this upload changes.
mergeNoMerge with the existing translations instead of overwriting them (default false).
localeYesLocale of the uploaded file. Use the source locale to update the master file.
confirmNoThe `confirm` token from this tool's preview. It only works while your file and WebTranslateIt's copy are the ones the preview compared; if either changed, you get a new preview instead of an upload.
file_idYesMaster file id from wti_get_project.
local_pathYesPath of the local file to upload.
minor_changesNoMaster file only: don't flag the target translations as 'to verify'.
ignore_missingNoKeep strings that are missing from the uploaded file (default true here; the API's default is false). Set false to mark them obsolete, to sync deletions from a complete master file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructive/openWorld/idempotent annotations, it discloses that the first call uploads nothing and instead returns a diff of conflicting lines, that the import runs in the background, and that ignore_missing defaults to true here while the API default is false. These are exactly the behaviors an agent could not infer from annotations or schema.

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?

Purpose is front-loaded in the first clause, followed immediately by the safety-critical preview behavior. The remaining sentences are dense but each carries a distinct fact (background import, keep-missing default); minor tightening is possible but nothing is filler.

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 an 8-parameter destructive mutation with no output schema, the description covers the risk of overwriting others' work, the token invalidation condition, and the deletion-sync implication of ignore_missing=false. It could say more about what the confirmed upload returns or how long the background import takes, but an agent has enough to call it safely.

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 100%, so baseline is 3, but the description adds real meaning: the `confirm` token is a preview artifact and only valid while both sides are unchanged, and `ignore_missing` differs from the API default. It does not further explain merge, minor_changes, or label beyond the schema text.

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?

States a specific verb and resource ("Upload a local language file to a file and locale on WebTranslateIt") and anchors it to a known behavior ("like `wti push` does for one file"). The agent can tell this is the upload side of the file pair without opening the 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?

Explicitly defines the two-call workflow: call without `confirm` to get a preview, show the diff to the user, then call again with the token to actually upload. It does not name alternatives (e.g. wti_set_translations) or state exclusions, so it stops short of full routing guidance, but the required invocation sequence is unambiguous.

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