Skip to main content
Glama

set_keep_with_next

Prevent paragraph breaks across pages by linking a paragraph to stay with the following one. Control paragraph pagination in Word documents.

Instructions

Keep this paragraph on the same page as the next paragraph.

Args: para_id: paraId of the target paragraph. enabled: True to enable keep-with-next, False to remove it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
para_idYes
enabledYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations exist, so the description bears full responsibility for behavioral disclosure. It states the effect (keeping paragraphs together) and how the enabled parameter toggles it, but it does not mention side effects, reversibility, or any prerequisites. The basic behavior is clear, but depth is lacking for a mutation 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 extremely concise: one sentence for purpose, followed by a compact parameter list. Every word serves a purpose, and the structure places the main action first. No extraneous information, which is ideal for quick agent comprehension.

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?

Given the existence of an output schema (not shown), the description is not required to detail return values. However, the description lacks context on prerequisites (e.g., para_id must reference a valid paragraph) and does not differentiate from set_keep_lines_together beyond the core action. It is minimally complete but leaves gaps for an agent unfamiliar with document formatting concepts.

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%, so the description must compensate. It explains the boolean enabled parameter well ('True to enable keep-with-next, False to remove it'), but for para_id it merely restates the schema field name without added context. This partial compensation yields an adequate but not strong score.

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 clearly states the tool's function: 'Keep this paragraph on the same page as the next paragraph.' It uses a specific verb ('keep') and resource ('paragraph'), and the sibling tools include set_keep_lines_together and set_widow_control, which are distinct page-break controls. This makes the purpose unambiguous and differentiates it from similar tools.

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 controlling page breaks between paragraphs, but it does not provide explicit guidance on when to use or avoid this tool versus alternatives like set_page_break_before or set_keep_lines_together. No exclusion criteria or context is given, so the agent must infer usage from the tool name and 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/SecurityRonin/docx-mcp'

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