Skip to main content
Glama

Text expansion planner

plan_text_expansion
Read-only

Plans for translation growth. Pass strings (one UI string per line), optionally languages (two-letter codes from de, fr, es, pt, it, nl, ru, pl, fi, tr, vi, id, ar, he, hi, th, ja, ko, zh; default de, fr, es, ru, fi, ja, ar) and maxChars (the character capacity of your container). For each string returns the planned character range per language and the worst case, and flags strings that exceed maxChars. Short strings expand proportionally more than long ones, so the table applies a length boost. Factors are rule-of-thumb ranges for ordinary UI copy (convention), not measurements; CJK shrinks in characters but can grow in width and height. Run real translations before locking a layout.

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

Input Schema

NameRequiredDescriptionDefault
stringsYesOne UI string per line.
maxCharsNoCharacter capacity of the container, optional.
languagesNoComma-separated language codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial context beyond the read-only annotations: it explains the return structure (per-language ranges, worst case, maxChars flags), the length-boost behavior for short strings, and that factors are rule-of-thumb conventions rather than measurements. It also discloses the CJK width/height caveat and the limit of the estimates.

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?

The purpose is front-loaded and every sentence carries useful information. The language and default enumeration makes the middle sentence dense, but the length is justified by the parameter and caveat detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only analysis tool with no output schema, the description explains what is returned, how maxChars violations are flagged, and what the estimates do and do not represent. An agent has enough to call and interpret it correctly.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds meaningful semantics: it enumerates the accepted language codes, states the default language set, explains that strings are one per line, and clarifies that maxChars is container capacity. These details go well beyond the schema.

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: plans translation expansion per UI string and language, returning character ranges, worst case, and maxChars violations. An agent can tell this is a translation-growth estimation tool, distinct from sibling localisation and copy-review tools.

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?

Provides clear invocation context: one UI string per line, optional languages and maxChars, and a caution to run real translations before locking a layout. It does not explicitly name sibling alternatives such as stress_test_localisation, so it stops short of the top band.

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