Skip to main content
Glama

put_strings

Idempotent

Merge translations for a language into locales/.json; set a string to null to remove it.

Instructions

Save translations for a language into locales/.json: { "source string": "translation" }, merged with what is there; null removes one. Keep "icon:" prefixes in labels as they are.

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": {
      "lang": "<lang>",
      "strings": "<strings>"
    },
    "name": "put_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
langYesLanguage to show (e.g. en). Default: the source language the documents are written in; others come from locales/<lang>.json
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
stringsYes
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, idempotent, non-destructive write, so the description's job is to add context — and it does: writes are merged into the existing file rather than replacing it, and passing null deletes a single entry. The note about preserving 'icon:' prefixes in labels is a genuine behavioral rule not present in any structured field. It stops short of saying what happens if the file does not yet exist or how validation failures surface.

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, destination and merge rule front-loaded, no filler. The trailing 'icon:' prefix instruction is slightly cryptic in isolation — it does not say what a 'label' is here — but it is short and operationally relevant.

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 six-parameter mutation with a nested object and no output schema, the description covers the essential mechanics: target file, key format, merge behavior, deletion via null, and a formatting constraint. The remaining gap is return/error behavior, which is unaddressed since no output schema exists to cover it.

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 83%, with the five auxiliary parameters (basis, message, feedback, confidence, lang) richly documented in the schema itself. The one undescribed parameter is strings, and the description does add its shape ({source string: translation}) and the null-removes semantics, which is real value. However, it does not clarify object-level merge granularity (per key vs. whole map) or nesting behavior.

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 concrete verb and resource — save translations for a language — plus the exact destination file locales/<lang>.json and the expected key/value shape. An agent can distinguish this from the read-side sibling list_strings by the merge/write semantics, even though no sibling is named explicitly.

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: call this when you want to write or amend translation entries, and null removes a key. There is no explicit when-not guidance (e.g. adding a brand-new language vs. editing an existing one), no pointer to list_strings for reading existing strings before writing, and no prerequisites about which languages already have files.

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

Deploy Server

Other Tools