Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

save_localization_documents

Destructive

Atomically save many localization documents. All documents validate before any save. Send expectedRevision from get_localization_documents. Invalid or stale writes leave all languages unchanged. Supports distinct copy, raw screenshot bindings and full designs per language.

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>",
      "documents": "<documents>"
    },
    "name": "save_localization_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentsYes
projectIdYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond annotations (destructive, non-idempotent), the description discloses all-or-nothing atomicity, pre-save validation of every document, and optimistic concurrency via expectedRevision. It also enumerates what content shapes are supported per language (distinct copy, raw screenshot bindings, full designs), which is real behavioral context an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the core action, followed by preconditions and failure semantics. Every sentence carries distinct information with no repetition of the schema or annotations.

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 a 3-parameter batch mutation with no output schema, the description covers atomicity, validation order, concurrency, and failure behavior well. It does not say what a successful call returns (e.g., a new revision), which leaves a small gap for a tool whose follow-up calls depend on revision state.

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 0% for top-level parameters, so the description must compensate. It explains the origin and meaning of expectedRevision and describes the permissible contents of each document object, though projectId is left undocumented and the 50-document cap is only in 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?

The first sentence names a specific verb and resource with explicit scope ('Atomically save many localization documents'), which distinguishes it from a single-document save. It stops short of naming save_localization as the single-document alternative, so the differentiation is implied by 'many' 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 Guidelines4/5

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

It gives a concrete prerequisite: obtain expectedRevision from get_localization_documents before calling, and it clarifies that invalid or stale writes leave all languages unchanged. It does not state when to prefer save_localization or other save paths, so usable context is present but exclusions are absent.

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