Skip to main content
Glama
mjyoo2
by mjyoo2

set_table_cell_text

Updates a specific table cell's text in an HWP document. Provide document ID, table index, row, column, and new text to modify the cell content.

Instructions

Set the text of a specific table cell.

Args: doc_id: Document ID from open_document table_index: Index of the table row: Row index col: Column index new_text: New text content

Returns: Update confirmation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes
doc_idYes
new_textYes
table_indexYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Set the text' and 'Returns: Update confirmation' but does not disclose whether existing cell content is replaced, whether row/col are zero-based, what happens on invalid indices, or whether formatting is preserved.

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?

The description is compact and logically structured with a one-sentence purpose, an Args block, and a Returns line. It avoids fluff, though the Args section largely duplicates the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and minimal parameter details, the description omits important operational context: whether text is overwritten, how row/col are indexed, how to discover table_index, and any error behavior. It is adequate for a simple example but incomplete for safe autonomous invocation.

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 Args section lists all five parameters and gives a one-line meaning for each, with 'doc_id: Document ID from open_document' adding useful context. However, most entries simply restate the parameter names, and there is no detail on indexing conventions, allowed values, or relationships between params.

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 clearly states the action ('Set the text') and the resource ('a specific table cell'). It is distinct enough from siblings like set_table_cell_style_adv and merge_table_cells, though it does not explicitly call out that distinction.

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 provides no guidance on when to use this tool versus alternatives such as get_table_data, set_table_cell_style_adv, or table_to_text. It does not mention prerequisites like obtaining table_index from get_tables or ensuring the document is open.

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