Skip to main content
Glama

get_textbox_text

Extract text from every text box and shape text frame in a Word document, including headers, footers, and legacy VML. Provides per-box paragraphs and shape names for precise content retrieval.

Instructions

Read the text inside every text box / shape text frame, per box, across the body, headers, and footers (modern drawings and legacy VML alike). Each box reports its text, paragraphs, part, anchoring body paragraph index (where determinable), and shape name. Use this instead of get_text for box content: the generic tools smear box text into the host paragraph (doubled by the mc:Fallback compatibility copy) with no boundary. box_index is the address set_textbox_text takes. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are present, so the description carries the full burden. It explicitly declares the operation read-only, discloses the full scope of what is read, lists the reported fields, and notes the 'where determinable' limitation on anchoring paragraph indices. This is strong behavioral disclosure beyond any structured metadata.

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?

Four focused sentences cover scope, output fields, alternative routing, and read-only status. Every sentence earns its place; there is no filler, and the most important usage distinction is front-loaded.

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?

Given the tool has one parameter and an output schema, the description is complete: it explains what is read, where it is read from, what each result contains, why this tool is preferable for this use case, and that it is read-only. The only slight gap is file_path documentation, but that is minor against the overall completeness.

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 explain the file_path parameter at all. While file_path is a common and somewhat self-explanatory parameter, the description adds no meaning beyond the schema and does not compensate for the lack of parameter documentation.

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 and resource: reading text from every text box / shape text frame across body, headers, and footers, covering both modern and legacy VML. It clearly differentiates itself from get_text by explaining exactly why get_text is unsuitable for box content.

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?

It explicitly tells agents to use this tool instead of get_text for box content, explains the failure mode of the generic tool, and names set_textbox_text as the complementary write tool that shares the box_index address. This gives clear when-to-use and when-not-to-use guidance.

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/nometalalchemist/KitchenSink4Word'

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