Skip to main content
Glama

set_textbox_runs

Replace a textbox's content with multiple text runs for mixed styling, such as bold prefix and regular text. Specify runs with text and optional font/color attributes.

Instructions

Replace a textbox's content with multiple children for mixed styling within one display — e.g. 'Asset(s): value' with a bold prefix + regular value in a single textbox. Each run is a dict with required 'text' and optional font_family / font_size / font_weight / font_style / color / format / text_decoration. Replaces the entire subtree (single-paragraph in v0.3; multi-paragraph deferred). Round-trip contract: get_textbox.runs[] returns the same shape this tool writes. Idempotent — identical input is a no-op short-circuit. Returns {textbox, kind, runs, changed}. Pass raw text in each run's text — encoding is handled; don't pre-encode XML entities (use & not &, including for the VB.NET string-concat operator).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
runsYes
textbox_nameYes
Behavior5/5

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

Despite no annotations, the description fully discloses behavioral traits: idempotent with no-op short-circuit, replaces entire Paragraphs subtree (with version notes), round-trip contract, return fields, and encoding instructions (do not pre-encode).

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?

The description is front-loaded with purpose, uses a clear example, and packs essential behavioral notes into 3-4 concise sentences without waste.

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?

Given the tool's complexity (nested runs parameter) and lack of annotations/output schema, the description is impressively complete: it covers idempotency, version constraints, encoding, and return shape. A minor gap is missing details on parameter value formats.

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?

With 0% schema coverage, the description adds meaning by detailing the 'runs' parameter structure (required text, optional styling fields) and noting to pass raw text. However, it lacks specific formats for fields like color and format (e.g., hex, named).

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?

The description states a specific verb ('Replace') and resource ('textbox content with multiple runs'), gives a concrete example with mixed styling, and distinguishes from sibling tools like set_textbox_value by focusing on multi-run content.

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?

The description explains when to use this tool (mixed styling within one display) and mentions the round-trip contract with get_textbox. However, it does not explicitly list when not to use it or contrast with alternatives like set_textbox_value.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mafaq229/pbirb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server