Skip to main content
Glama

AppScreenDesign 3D Screenshot Studio

format_text_range

Destructive

Format exactly one character range in a text layer or editable sticker/element label. Read get_panel first. start/end are zero-based UTF-16 offsets in the displayed text or label (end exclusive), so repeated words, emoji and token-resolved captions can be targeted precisely. Apply bold, italic, underline, font, size, text colour or highlight; set clear=true to restore selected characters to whole-text style. Saves atomically and returns an immediate draft preview.

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>",
      "position": "<position>",
      "layerId": "<layerId>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "format_text_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
clearNo
startYes
styleNo
familyNoiphone
localeNoOmit for the project’s main localization.
layerIdYes
maxSideNo
previewNo
positionYes
projectIdYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnly=false, and the description adds meaningful behavior beyond that: the save is atomic, a draft preview is returned immediately, and clear=true reverts characters to whole-text style (i.e. the mutation is partially reversible). It does not explain concurrency behavior around expectedRevision or what happens on a revision mismatch, which is the main residual gap for a destructive mutation.

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?

Front-loaded with the action and its scope, then the prerequisite, then offset semantics, then options. Every sentence carries information; only the phrasing around style fields mildly duplicates the nested schema.

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 12-parameter destructive mutation with a nested style object and no output schema, the description covers the core range semantics and save/preview behavior well. It leaves the concurrency contract (expectedRevision), the meaning of position, family/locale defaults, and maxSide undocumented — territory an agent must guess at when constructing a call.

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 description coverage is only 8%, so the description carries most of the burden. It explains start/end precisely (zero-based UTF-16 offsets, end exclusive, targeting emoji and token-resolved captions), clear, and the style fields, which is real added value. However, six required parameters including projectId, expectedRevision, position and layerId get no explanation, so half the surface is still opaque.

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 ('Format') and a tightly scoped resource ('exactly one character range in a text layer or editable sticker/element label'), which immediately separates it from whole-layer or whole-text operations. The scope word 'exactly one' prevents the agent from assuming bulk formatting.

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?

Gives an explicit prerequisite ('Read get_panel first') and a conditional use for a flag ('set clear=true to restore selected characters to whole-text style'). It stops short of naming a sibling alternative or stating when not to use this tool, so it is strong context rather than full routing guidance.

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