Skip to main content
Glama

insert_hwp_image

Inserts an image into an .hwpx Hangul Word Processor file by adding it to BinData, registering in content.hpf, and appending an inline paragraph with the image.

Instructions

Insert a new image into an .hwpx — adds the file to BinData/, registers it in content.hpf, and appends a paragraph with an inline hp:pic. Args: file_path, source_path, ext (png/jpg/bmp/gif; auto from source_path if omitted), output_path (optional).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
source_pathYes
extNo
output_pathNo
Behavior4/5

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

No annotations exist, so the description must carry full burden. It explicitly states the tool modifies the .hwpx file structure: adds to BinData/, registers in content.hpf, appends paragraph with inline image. This discloses side effects beyond a simple 'insert' verb, though missing error conditions (e.g., duplicate names, unsupported ext).

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 sentence front-loaded with the action and key details. The argument list is appended succinctly. No extraneous words; every part earns its place.

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

Completeness4/5

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

Given 4 parameters and no output schema, the description adequately covers the tool's action and side effects. However, it omits the return value (e.g., success indicator or new image ID) and does not explain behavior when output_path is omitted. Still, it provides enough for basic agent use.

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%, forcing the description to define parameters. It lists four args and clarifies ext auto-detection and output_path optionality, but does not fully explain file_path (presumably the target .hwpx) or source_path (image source). The argument list adds value over the raw schema but lacks complete semantics.

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 uses a specific verb ('Insert') and resource ('image into an .hwpx'), and lists exact file system operations (adds to BinData/, registers in content.hpf, appends inline <hp:pic>). This clearly distinguishes the tool from siblings like replace_hwp_image or delete_hwp_image.

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 lists arguments and notes ext auto-detection and optional output_path, but does not specify when to use this tool over alternatives (e.g., replace_hwp_image) or mention prerequisites like the .hwpx file being open or existing. Usage context is only implied through the action description.

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

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