Skip to main content
Glama
knorq-ai
by knorq-ai

format_text

Find and format specific text in a .docx file by applying character formatting changes like bold, italic, underline, font, size, color, or highlight to all matching runs.

Instructions

Apply character formatting (bold, italic, underline, highlight, font, size, color) to all runs matching the search text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .docx file
searchYesText to find and format
boldNoSet bold (true/false)
italicNoSet italic (true/false)
underlineNoSet underline (true/false)
strikethroughNoSet strikethrough (true/false)
highlight_colorNoHighlight color: yellow, green, cyan, magenta, blue, red, etc.
font_nameNoFont family name
font_sizeNoFont size in points (e.g. 12)
font_colorNoFont color as hex (e.g. 'FF0000' for red)
case_sensitiveNoCase-sensitive text matching
Behavior2/5

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

No annotations are provided, so the description carries full burden. It lacks details on side effects (overwriting existing formatting), scope (global vs selection), and return behavior. For a complex tool with 11 parameters, this is insufficient.

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?

Single sentence, front-loaded with purpose. No wasted words, but could be slightly more descriptive (e.g., specifying 'all instances' explicitly). Concise and well-structured.

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?

With 11 parameters, no output schema, and no annotations, the description is too brief. It fails to explain behavior, error conditions, or return value. Not complete for a complex tool.

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 coverage is 100% with descriptions for each parameter. The tool description lists formatting options but adds no extra meaning beyond the schema. Baseline 3 is appropriate; marginal value from listing types.

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?

Description clearly states the tool applies character formatting (bold, italic, underline, etc.) to all runs matching search text. It uses specific verbs and resource (formatting text runs) and distinguishes from siblings like set_paragraph_formats (paragraph-level) and replace_texts (replacement).

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?

Description implies usage for formatting specific text occurrences but does not provide explicit when-to-use or when-not-to-use guidance, nor does it name alternatives. Sibling tools exist (e.g., highlight_text), but no exclusions are mentioned.

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/knorq-ai/docx-mcp-server'

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