Skip to main content
Glama

Interface Translation Update

interface_translation_update

Update an existing interface translation string in Drupal. Fails if the source string is unknown or untranslated, and marks the entry as customized so imports do not overwrite it.

Instructions

Change an existing interface translation.

Same storage as interface_translation_add, but this one refuses to invent anything: an unknown source string, or a source with no translation in langcode, is an error that says which of those it is and points at interface_translation_add. The string is marked customized so a later locale:import does not overwrite it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
contextNo
langcodeYes
translationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses important behavior: unknown source or missing translation in langcode produces a specific error, and the string is marked 'customized' to survive locale:import. It doesn't cover the return format, but the output schema likely handles that.

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?

Brief and front-loaded with the primary action, then details on errors and behavior. Every sentence earns its place. The multi-sentence structure is logical.

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 4-parameter mutation tool with no annotations and no parameter descriptions, the description covers core behavior well but misses parameter semantics and confirmation of return behavior. It's adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description does not describe any of the four parameters (source, context, langcode, translation) individually. It implies semantics for source/langcode via the error conditions, but does not explain context or the format of translation. The gap is significant for a mutation tool.

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+resource: 'Change an existing interface translation.' It explicitly distinguishes itself from the sibling interface_translation_add by describing the difference in behavior (this one refuses to invent anything).

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

Usage Guidelines5/5

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

Explicitly names interface_translation_add as the alternative and clearly delineates when to use each: this tool requires an existing source string and translation, errors point at the add variant for new strings. The error semantics tell the agent exactly when to switch tools.

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