Skip to main content
Glama

set_line_spacing

Set line spacing and paragraph spacing for a specific paragraph by specifying line rule, line value, and space before/after.

Instructions

Set line spacing and paragraph spacing.

Args: para_id: paraId of the target paragraph. line_rule: "auto" | "exact" | "atLeast". None leaves unchanged. line_value: For "auto": 240=single, 360=1.5x, 480=double. For "exact"/"atLeast": twips. space_before_pt: Space before paragraph in points (None = unchanged). space_after_pt: Space after paragraph in points (None = unchanged).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
para_idYes
line_ruleNo
line_valueNo
space_before_ptNo
space_after_ptNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It explains parameter behavior well (e.g., meaning of None, units for line_value). However, it does not disclose return value, error conditions, or required document state, leaving gaps in overall behavioral understanding.

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 highly concise: a one-line summary followed by a structured Args section. Every sentence adds value, and the format is easy to parse. No redundancy or fluff.

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 the presence of an output schema (context says 'Has output schema: true'), the description need not explain return values. It adequately covers parameter semantics and usage. However, it omits prerequisites (e.g., document must be open, para_id must exist) and error handling, which slightly limits completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description compensates fully. It adds meaningful semantics for all 5 parameters, including value ranges, units (twips, points), examples (240=double), and behavior of None. This is exemplary beyond the schema.

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 it sets line spacing and paragraph spacing, using a specific verb and resource. However, it does not differentiate from the sibling tool 'set_paragraph_format', which could also set paragraph spacing, so clarity is high but not fully distinguishing.

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 implies usage for modifying line and paragraph spacing, but provides no explicit guidance on when to use this tool over alternatives like 'set_paragraph_format'. The context is implied but lacks exclusions or selection criteria.

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/SecurityRonin/docx-mcp'

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