Skip to main content
Glama

Office Word MCP Server

insert_line_or_paragraph_near_text

Add a new line or paragraph with specified or matched style before or after a target paragraph in a Word document. Use text or paragraph index for precise placement. Simplify document editing with structured inputs.

Instructions

Insert a new line or paragraph (with specified or matched style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), line_text (str), position ('before' or 'after'), line_style (str, optional), target_paragraph_index (int, optional).

Input Schema

NameRequiredDescriptionDefault
filenameYes
line_styleNo
line_textNo
positionNoafter
target_paragraph_indexNo
target_textNo

Input Schema (JSON Schema)

{ "properties": { "filename": { "title": "Filename", "type": "string" }, "line_style": { "default": null, "title": "Line Style", "type": "string" }, "line_text": { "default": null, "title": "Line Text", "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/GongRzhe/Office-Word-MCP-Server'

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