Skip to main content
Glama
mjyoo2
by mjyoo2

set_paragraph_style

Set paragraph alignment and line spacing in HWP documents by specifying alignment (left, center, right, justify) and line spacing percentage to format the current paragraph.

Instructions

Set paragraph formatting for the current paragraph.

Args: doc_id: Document ID from open_document align: Text alignment ("left", "center", "right", "justify") line_spacing: Line spacing percentage (e.g., 160 = 160%)

Returns: Style confirmation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alignNo
doc_idYes
line_spacingNo

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, the description carries the full burden of explaining behavior. It discloses that this is a mutation affecting the current paragraph and lists align and line_spacing, but it does not mention side effects, reversibility, persistence, or how the current paragraph is determined.

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 well-structured: one clear purpose sentence followed by concise Args and Returns sections. Every line adds useful information with no filler.

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?

All parameters are documented and an output schema exists, so the core calling contract is present. However, the description lacks operational context such as how 'current paragraph' is determined, whether selection is used, and how this tool differs from styling siblings.

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 compensate. It does by explaining all three parameters: doc_id's source, align's allowed values, and line_spacing's percentage semantics with an example.

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 verb and resource: 'Set paragraph formatting for the current paragraph.' It is distinct enough from character-level tools like set_text_style, but it does not explicitly name a sibling or contrast itself with similar styling tools.

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 like set_text_style or set_char_shape. It only implies a prerequisite through 'doc_id: Document ID from open_document', but does not explain when paragraph-level formatting is appropriate or what the 'current paragraph' depends on.

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