Skip to main content
Glama

page

Configure document layout: set paper size and orientation, margins, columns, headers, footers, numbering, breaks, borders, sections, and master layouts in HWPX files.

Instructions

쪽: 용지·여백·다단·쪽 번호·머리말/꼬리말·나누기·테두리·바탕쪽. action: setup(section, paper?, orientation?, margin?, gutter_type?); columns(at, count, type?, direction?, gap?, widths?, separator?); page_number(section, position, format?, side_char?, start?); header(section, pages?, op?); footer(section, pages?, op?); break(at, kind); border(section, pages?, border?, offset?, fill?, base?, include_header?, include_footer?); hide(at, items); section(section, start_page?, start_figure?, start_table?, start_equation?, hide_first?, text_direction?, line_grid?, char_grid?, line_numbers?, starts_on?, space_columns?, tab_stop?); master(section, pages?, op?)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNoLocator(한 점: s0/p3:5, doc:end, before:#p4 …)
opNo
gapNo길이(숫자는 mm, 또는 '20mm'·'12pt')
baseNo
fillNo
kindNo
typeNo
countNo
itemsNo
pagesNo
paperNo용지 이름(A4·A3·B4·B5·letter·legal) 또는 {width, height} 길이
startNo
actionYes
borderNoBorder (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB')
formatNo
handleNodocument.new/open이 준 handle
marginNoLengthMap (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB')
offsetNoLengthMap (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB')
widthsNo
sectionNo구역("s0" 또는 0)
positionNo
tab_stopNo길이(숫자는 mm, 또는 '20mm'·'12pt')
char_gridNo길이(숫자는 mm, 또는 '20mm'·'12pt')
directionNo
line_gridNo길이(숫자는 mm, 또는 '20mm'·'12pt')
separatorNoLineOrNone (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB')
side_charNo
starts_onNo
hide_firstNo
start_pageNo
gutter_typeNo
orientationNo
start_tableNo
line_numbersNoLineNumbers (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB')
start_figureNo
space_columnsNo길이(숫자는 mm, 또는 '20mm'·'12pt')
include_footerNo
include_headerNo
start_equationNo
text_directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It never states that every action mutates the document, that a valid handle is required (the schema's handle description hints at this but the description does not), what happens to existing settings when an action is re-applied, or how header/footer op=remove behaves.

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?

A single dense but front-loaded block: the topic comes first, then the action signatures. Given 10 actions and 40 parameters, this is a compact representation with essentially no filler sentences. It could be more scannable if the action list were broken out line by line, but nothing is wasted.

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 high-complexity dispatcher (10 actions, 40 params, nested objects, no output schema, no annotations), the description provides only the action-to-parameter map. It omits return/effect information, error conditions, whether actions are idempotent, and the handle lifecycle. An agent could pick an action but not reliably predict the outcome.

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 only 35% across 40 parameters, so the description should compensate more than it does. Its real contribution is the per-action parameter grouping, which the flat schema with additionalProperties=false cannot express — the agent learns that page_number takes side_char but columns takes separator. However, several parameters (items, fill, widths, hide_first, side_char) remain undocumented in both schema and description, and no enum value meanings are added.

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 leading clause names the resource domain concretely (paper, margins, columns, page numbers, headers/footers, breaks, borders, master page), and the action list enumerates the concrete operations. An agent can tell this is the page/section-layout tool rather than char_format or para_format. It stops short of explicitly contrasting itself with siblings such as style or section-adjacent 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?

There is no statement of when to use this tool versus alternatives, no prerequisites, and no exclusions. The action names imply use cases (setup, header, footer, break), but the agent is left to infer which action to pick and when a page-level tool is preferable to a paragraph- or section-level sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.