Skip to main content
Glama
mjyoo2
by mjyoo2

hwp_draw_param_action

Modify shapes in HWP documents by executing parameter-driven actions for alignment, fill, rotation, grouping, and other drawing properties.

Instructions

Execute HWP action with draw/shape-related HParameterSet.

Supported param_set_name values and their key properties:

  • HDrawAlignHorz: AlignType (0=left, 1=center, 2=right, 3=distribute), RelativeTo (0=paper, 1=column, 2=paragraph)

  • HDrawAlignVert: AlignType (0=top, 1=center, 2=bottom, 3=distribute), RelativeTo

  • HDrawAttr: Width, Height, Left, Top, HorzRelTo, VertRelTo, TreatAsChar (bool), TextFlow, ZOrder

  • HDrawChangeAttr: Width, Height, Left, Top, KeepRatio (bool)

  • HDrawConnect: StartObjID, EndObjID, StartPt, EndPt, ConnectorType

  • HDrawCurveToLine: Precision, MaxSegments

  • HDrawDeletePt: PointIndex

  • HDrawEditGroup: GroupObjID, Action (enter|leave)

  • HDrawFill: FillType (0=none, 1=color, 2=hatch, 3=gradation, 4=image), FillColor, HatchType, ImagePath, Gradation

  • HDrawFlip: Direction (0=horizontal, 1=vertical)

  • HDrawGrid: ShowGrid (bool), SnapToGrid (bool), GridWidth, GridHeight

  • HDrawGroup: GroupName

  • HDrawInsertPt: PointIndex, X, Y

  • HDrawLine: LineType, LineWidth, LineColor, StartArrow, EndArrow, DashStyle, CapType

  • HDrawMakeCurve: SegmentCount, SmoothLevel

  • HDrawMovePt: PointIndex, NewX, NewY

  • HDrawObjCreator: ObjectType (line|rect|ellipse|arc|polygon|curve|textbox), CreateMethod, StartX, StartY, EndX, EndY

  • HDrawRotate: Angle (degrees), CenterX, CenterY

  • HDrawSendBackward: Steps (number of layers to move back)

  • HDrawShadow: ShadowType (0=none, 1=drop, 2=cont), OffsetX, OffsetY, Color, Opacity

  • HDrawTextbox: Margin, VertAlign, TextDirection, AutoSize (bool)

  • HDrawUngroup: GroupObjID

Args: doc_id: Document ID from open_document action_name: HWP action to execute param_set_name: Must be one of the draw param sets listed above params: Properties to set on the param set

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
paramsNo
action_nameYes
param_set_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It explains what parameter sets are supported but does not disclose whether the action mutates the document, what side effects occur, whether permission or an open document is required, or what errors may result. This is a significant gap for an execution 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 front-loaded with the core purpose, then uses a scannable bullet list that earns its length by documenting many valid param sets. There is no filler or redundant restating of the schema, and the structure makes it easy for an agent to locate the relevant param set properties.

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?

The tool is complex, with free-form params and no annotations, and the description does a good job enumerating param sets. However, it does not explain the relationship between action_name and param_set_name, does not list valid action_name values, and gives no examples or prerequisites beyond doc_id. An agent could understand the param set vocabulary but would still struggle to confidently invoke the correct action.

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?

With 0% schema description coverage, the description compensates well by enumerating all supported param_set_name values and listing key properties plus enums/type hints. doc_id and params are also described. However, action_name allowed values are not provided, and the property lists are labeled as 'key' rather than exhaustive, which leaves some ambiguity for free-form 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 tool executes an HWP action using draw/shape-related HParameterSet objects. It differentiates from table/file/style param actions by enumerating HDraw* param sets. However, it slightly overlaps with sibling hwp_shape_param_action, since both involve shape-related functionality, so it is not perfectly distinctive.

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?

Usage is implied: use this tool when draw/shape-related HParameterSet operations are needed, and param_set_name must be one of the listed values. It does not explicitly state when not to use it, nor does it name alternatives like run_hwp_action or hwp_shape_param_action, leaving some routing 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