Skip to main content
Glama

Office Word MCP Server

by franlealp1

insert_header_near_text

Add a styled header before or after a specific paragraph in a Word document. Use text content or paragraph index to locate the target, and customize header title, style, and position.

Instructions

Insert a header (with specified style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), header_title (str), position ('before' or 'after'), header_style (str, default 'Heading 1'), target_paragraph_index (int, optional).

Input Schema

NameRequiredDescriptionDefault
filenameYes
header_styleNoHeading 1
header_titleNo
positionNoafter
target_paragraph_indexNo
target_textNo

Input Schema (JSON Schema)

{ "properties": { "filename": { "title": "Filename", "type": "string" }, "header_style": { "default": "Heading 1", "title": "Header Style", "type": "string" }, "header_title": { "default": null, "title": "Header Title", "type": "string" }, "position": { "default": "after", "title": "Position", "type": "string" }, "target_paragraph_index": { "default": null, "title": "Target Paragraph Index", "type": "integer" }, "target_text": { "default": null, "title": "Target Text", "type": "string" } }, "required": [ "filename" ], "type": "object" }

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/franlealp1/mcp-word'

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