Skip to main content
Glama
rcarmo

office-document-mcp-server

by rcarmo

word_get_section_guidance

Read-only

Extract template guidance, markers, and insert instructions from a section in a Word document to understand expected content before editing.

Instructions

Extract template guidance and instructions from a section.

Reads a section and identifies all instructional content that tells you what to write there. This includes:

  • Template guidance markers: [Template Guidance: ...]

  • Highlighted text (turquoise, yellow) indicating placeholders

  • Colored text (blue, red, purple) indicating instructions

  • Insert instructions: [insert ...]

Use this BEFORE patch_section to understand what content is expected.

Example: get_section_guidance( file_path="04. Artifacts/contoso-sow.docx", section_title="Introduction" )

Args: file_path: Path to the .docx document section_title: Title or partial title of the section

Returns: Structured guidance including instructions, expected content hints, and placeholders to fill

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .docx document
section_titleYesTitle or partial title of the section
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false. Description adds detail on what it reads (instructional markers), which aligns and provides extra context beyond annotations.

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?

Well-structured with bullet points, example, and separate Args/Returns. Front-loaded main purpose, no unnecessary words.

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?

Comprehensive: explains input, usage context (before patch_section), and return value details. Handles absence of output schema by describing the structured return.

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 descriptions cover 100% of parameters, baseline 3. Description adds value with an example call and clear repetition of parameter meanings, making it more actionable.

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 extracts template guidance and instructions from a section, listing specific content types. It distinguishes itself from siblings like word_patch_with_track_changes and word_document_map.

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 states 'Use this BEFORE patch_section' to understand expected content, providing clear context. Does not list exhaustive alternatives but gives actionable guidance.

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/rcarmo/python-office-mcp-server'

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