Skip to main content
Glama

set_table_style

Apply a named table style to a specified table in a Word document using style names like TableGrid or LightShading-Accent1.

Instructions

Apply a named table style (e.g. TableGrid, LightShading-Accent1) to a table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_idxYes
style_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description must fully disclose behavioral traits. It only states the action without mentioning side effects (e.g., overriding existing formatting), error conditions (e.g., invalid style name or table index), or required permissions. The tool's safety or destructiveness is not conveyed.

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 a single, 12-word sentence that is front-loaded with the verb and object. Every word contributes meaning, and there is no extraneous information.

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 simple mutation tool with two required parameters and no nested objects, the description is adequate but lacks context about error handling, preconditions (e.g., table must exist), or the outcome. The presence of an output schema mitigates the need to describe return values, but behavioral gaps remain.

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?

The examples of style names add meaning beyond the schema type (string), but the description does not clarify what table_idx represents (e.g., zero-indexed, sequential from get_tables). Since schema coverage is 0%, the description partially compensates but leaves ambiguity about the index parameter.

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 clearly states the action ('Apply'), the resource ('named table style'), and the target ('to a table'). It also provides concrete examples of style names (TableGrid, LightShading-Accent1), making the tool's purpose unambiguous and distinguishable from sibling tools like set_table_borders or set_table_alignment.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus alternatives such as set_table_borders, set_cell_shading, or apply_style_to_range. Given the large number of sibling tools, this omission leaves the agent without context to choose appropriately.

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/SecurityRonin/docx-mcp'

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