Skip to main content
Glama

format_text

Apply bold, italic, underline, color, and other character formatting to specific text or paragraphs in Word documents, helping you style selected ranges without manual edits.

Instructions

Apply character formatting to a text range. formatting keys: bold, italic, underline, strike, font, size_pt, color, highlight, superscript, subscript, small_caps, all_caps, hidden, double_strike, char_spacing_pt, kerning_pt, position_pt, language, east_asian_language (BCP-47; ko/ja/zh go in east_asian_language, Word's East-Asian proofing slot; live maps tags to LCIDs, unmapped tags are file-mode only). Target: paragraph_index + find (substring), find alone (occurrence picks the match), or the whole paragraph. For a named character style use apply_character_style. Auto-backup in file mode: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Documents open in Word are edited live.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findNo
liveNoauto
backupNo
file_pathYes
formattingYes
occurrenceNo
paragraph_indexNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations are present, so the description carries the full burden; it discloses auto-backup behavior, backup=False semantics, atomic validated saves, file vs live Word editing, and locale/language mapping nuances. These are meaningful behavioral traits beyond what schema alone provides.

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?

Dense but every clause earns its place: formatting keys, targeting logic, sibling routing, backup behavior, and live-editing caveat are all packed into a compact definition. The most important action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no annotations, this description provides target resolution, formatting semantics, backup/live behavior, and an alternative tool pointer. An agent has enough context to select and invoke it correctly, especially with an output schema present.

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 explains the formatting object's keys in detail, defines the three targeting modes, clarifies occurrence's role, and explains backup=False's meaning. The 'live' parameter is only indirectly touched and file_path is assumed self-evident, but coverage is strong overall.

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?

States a specific action and resource: 'Apply character formatting to a text range', then enumerates the exact formatting keys it accepts. It also explicitly routes named character styles to apply_character_style, distinguishing it from the closest sibling.

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?

Gives clear selection criteria for targeting text (paragraph_index + find, find alone, whole paragraph) and an explicit alternative for named styles. It does not exhaustively contrast with paragraph-level formatting siblings, but the character-vs-style distinction is clearly conveyed.

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/nometalalchemist/KitchenSink4Word'

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