Skip to main content
Glama

Word Formatting and Styles

word_format
Destructive

Apply or define Word styles, character and paragraph formatting, heading levels, and manuscript conventions to shape how text looks without changing its wording.

Instructions

How text looks: apply or define styles, character and paragraph formatting, heading levels and manuscript format. To change the words themselves use word_edit. Every edit backs the file up first and saves atomically. format_text (formatting, not case) and set_paragraph_format edit a document open in Word live; the other ops refuse it. Ops, one per line, as name(required; opt optional): what it does. file_path, live and backup are not repeated; word_help shows them:

  • define_style(style_id; opt name style_type based_on next_style character_formatting paragraph_formatting): Create a paragraph or character style, or update one in place, replacing only the properties given. style_id is the style's id (Heading1, Normal, Title), not its display name, so a built-in style can be restyled without reading the style list first.

  • apply_style(style; opt range target): Apply a paragraph style to a range of paragraphs, or a character style to the text that target matches.

  • format_text(opt formatting case range find occurrence): Apply character formatting or change case.

  • set_paragraph_format(opt indices formatting start end): Set paragraph formatting on a batch: indices (0-based list) OR start/end (inclusive range), exactly one form.

  • change_heading_level(delta; opt heading_text paragraph_index subtree): Promote (delta=-1) or demote (delta=1) a heading, addressed by exact heading_text or paragraph_index.

  • apply_manuscript_format(style; opt running_head author_last_name): Apply a style guide's page conventions (apa7, apa7-professional, mla9, chicago17); choices the guides leave open are listed, not applied.

Input Schema

NameRequiredDescriptionDefault
opYesThe operation to run: one of the ops listed in this tool's description.
argsNoThe op's arguments as an object. Include file_path (the absolute .docx path) unless the op's line names other paths or the op reads no document; unknown keys are refused. word_help lists every argument.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructive/non-idempotent; the description adds materially more — every edit backs the file up first and saves atomically, define_style replaces only the properties given (patch semantics), and apply_manuscript_format lists rather than applies guide-left-open choices. The live-document refusal rule is exactly the kind of behavioral fact annotations cannot express.

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?

Front-loaded summary followed by a compact one-line-per-op reference block; nearly every clause carries information. Minor friction: the aside 'file_path, live and backup are not repeated; word_help shows them' is terse to the point of ambiguity, and the parenthetical 'format_text (formatting, not case)' sits in tension with the op line that says format_text can 'change case.'

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?

For a six-op router tool with a generic args object and no output schema, the description supplies per-op argument contracts and hazard handling, which is most of what an agent needs. The remaining gap is return values: only apply_manuscript_format's behavior ('choices the guides leave open are listed') hints at what comes back; the other ops' responses go unmentioned.

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?

Top-level schema coverage is 100% but the args object is opaque (additionalProperties: true), and the description fills that gap by marking required vs optional per op. It also explains semantics the schema cannot: style_id is an id (Heading1) not a display name, and set_paragraph_format takes indices OR start/end, 'exactly one form.'

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?

Opens with a specific scope statement ('How text looks: apply or define styles, character and paragraph formatting, heading levels and manuscript format') and immediately demarcates it from word_edit ('To change the words themselves use word_edit'). The six enumerated ops make the surface area unambiguous without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names alternatives (word_edit for text content, word_help for arguments) and gives a hard usage constraint: format_text and set_paragraph_format work on a document open live in Word, while 'the other ops refuse it.' No guidance, however, on when to prefer change_heading_level here versus structure-related ops in word_structure, so the sibling boundary against word_structure is left to inference.

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