Skip to main content
Glama
mjyoo2
by mjyoo2

set_table_cell_style_adv

Apply background color and vertical alignment to a specific table cell in an HWP document, enabling precise cell styling for tables.

Instructions

Set advanced style for a table cell (background, alignment).

Args: doc_id: Document ID from open_document table_index: Index of the table row: Row index col: Column index background_color: Background color in hex (e.g., "#FFFF00") vertical_align: Vertical alignment ("top", "middle", "bottom")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes
doc_idYes
table_indexYes
vertical_alignNo
background_colorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

There are no annotations, so the description carries the full burden of behavioral disclosure. It indicates a mutation ('Set') but does not describe side effects, whether existing styles are overwritten, how null values behave, or any prerequisites beyond doc_id. This is a significant gap for a style-mutating tool.

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 compact and front-loaded with the main purpose, followed by an organized parameter list. Every sentence serves a purpose, and there is no redundant or filler content.

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?

An output schema exists, so return-value details are not required. However, given the mutating nature and the number of parameters, the description lacks key context such as how null values are handled, whether the table must already be open, and what happens if indexes are invalid. It is functional but not fully complete for a tool with zero annotations.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must add meaning, and it does. It explains doc_id as coming from open_document, gives a hex format example for background_color, and enumerates valid vertical_align values. This is helpful, though it stops short of explaining defaults, zero-based indexing, or behavior of null fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Set advanced style for a table cell') and identifies the specific aspect (background, alignment). It is clearly distinct from sibling tools like set_table_cell_text or set_table_border_adv, though it doesn't explicitly differentiate itself from those alternatives.

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

Usage Guidelines3/5

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

The description implies usage by naming 'advanced style' and referencing doc_id from open_document, suggesting a prerequisite workflow. However, it does not explicitly state when to use this tool versus set_table_cell_text, set_table_border_adv, or other cell-related tools, leaving the choice to inference.

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/mjyoo2/hwp-mcp'

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