Skip to main content
Glama
mjyoo2
by mjyoo2

set_text_file

Replace the content of an open HWP document with text from a string, supporting formats like TEXT, HWPML, and HTML.

Instructions

Set text content in the document from a string.

Args: doc_id: Document ID from open_document data: Text data to set format: Format type ("TEXT", "HWPML", "HTML", etc.) option: Additional format option string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
doc_idYes
formatNoTEXT
optionNo

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 does not say whether existing content is overwritten, whether formatting is preserved or destroyed, what happens if the format is invalid, or whether the operation is reversible. The word 'Set' implies replacement, but that critical behavior is never explicitly disclosed.

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: a one-sentence purpose followed by a terse argument list with no filler. The essential information is front-loaded, though the parameter lines are minimal and could be more informative without much added length.

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?

Despite having an output schema, the description lacks any mention of return value, error behavior, or side effects, and it does not address the ambiguity among sibling text tools. For a tool that mutates document content and has four parameters, an agent cannot safely choose and invoke it without more behavioral and usage context.

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?

Schema description coverage is 0%, so the description must compensate; it does list all four parameters and adds a little meaning: doc_id comes from open_document, format includes examples like 'TEXT' and 'HTML', and option is 'Additional format option string'. However, 'Text data to set' for data and the vague 'option' description provide only marginal semantic value and do not explain valid values, constraints, or format interaction.

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 clear verb ('Set') and resource ('text content in the document') with a source ('from a string'), so an agent can tell this is a text-content write operation. However, it does not differentiate from siblings like insert_text, replace_text, or set_table_cell_text, and it never states that this replaces or overwrites existing content.

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 only usage context is 'doc_id: Document ID from open_document,' which signals a prerequisite but does not say when to prefer this tool over insert_text, replace_text, or other text-modification tools. There is no explicit when-to-use guidance, no exclusions, and no explanation of what distinguishes 'set' from alternatives.

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