Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

save_localization

Destructive

Save a complete localization JSON document atomically with stale-write protection. Edit document.copy for token text and document.screens scenes for literal text, sticker labels, image sources and design. All fields in web editor are supported. Save affects only this locale. previewPosition optionally returns its draft PNG immediately; preview failure never repeats the save.

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": {
      "projectId": "<projectId>",
      "expectedRevision": "<expectedRevision>",
      "document": "<document>"
    },
    "name": "save_localization"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxSideNo
documentYesComplete localization document JSON returned by get_localization or get_localization_documents. Preserve version, locale, design, screens and copy; edit scenes, text and image bindings. Full document validation applies.
projectIdYes
previewPositionNo
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / previewPosition / maximum
      Previous value: -40New value: +190
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description earns credit beyond that by disclosing atomic full-document save semantics, stale-write protection via revision check, single-locale blast radius, and the fact that a failed preview does not re-trigger the save. It does not say what happens on a revision mismatch (error vs. overwrite) nor what the success response contains.

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?

Four dense sentences, front-loaded with the save model before the edit guidance and preview caveat. 'All fields in web editor are supported' is slightly salesy filler, but nearly every clause carries an operational fact.

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?

For a nested-document mutation tool with no output schema, the description covers the document-edit model and the preview side effect well, but leaves the return contract vague (what the save returns besides an optional PNG) and says nothing about maxSide or the failure mode of a stale revision — the very thing 'stale-write protection' flags as important.

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 coverage is only 20% with 5 parameters, so the description must compensate. It meaningfully maps `document` (copy for token text, screens for literals/stickers/images/design) and explains previewPosition as an immediate draft-PNG return, but expectedRevision, maxSide, and projectId semantics are left entirely to the schema.

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 ('Save a complete localization JSON document') and adds two distinguishing qualifiers: atomicity and stale-write protection. 'Save affects only this locale' implicitly separates it from the bulk save_localization_documents sibling, though the sibling is never named, so an agent must infer the split from scope language.

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?

Usage is implied rather than stated: the document must originate from get_localization/get_localization_documents (per schema, echoed by 'Preserve version, locale...'), and single-locale scope hints at the bulk alternative. There is no explicit when-to-use versus save_localization_documents, add_localizations, or apply_candidate, and no stated prerequisite that the revision must be current.

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