Skip to main content
Glama

word_read_paragraph

Get the content and metadata of a single paragraph from a Word document by specifying the file path and zero-based paragraph index.

Instructions

Return a single paragraph's content and metadata.

Args: path: Path to an existing .docx. index: Zero-based paragraph index. folder: Optional base folder for relative paths.

Raises: OfficeMCPError: ERR_INVALID_PARAMS if index is negative or out of range, ERR_FILE_NOT_FOUND if the file is missing, ERR_UNSUPPORTED_FMT for non-.docx extensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
indexYes
folderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Description implies read-only behavior ('Return') and lists common error conditions (invalid params, file not found, unsupported format). However, no explicit statement about being non-destructive, auth requirements, or side effects. Without annotations, this is adequate but not outstanding.

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?

Description is a concise docstring-style block with purpose, parameters, and error conditions. Every sentence adds value; no fluff. Front-loaded with the main action.

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

Completeness4/5

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

Covers parameter semantics and error scenarios well. Missing explicit read-only declaration and usage guidance vs siblings, but output schema exists to handle return values. For a simple read tool, the description is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Description fully explains each parameter beyond the schema: 'path' to an existing .docx, 'index' as zero-based, 'folder' as optional base folder. With 0% schema coverage, this compensates completely, giving clear semantics for correct invocation.

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 returns a single paragraph's content and metadata. It specifies the resource (paragraph) by index, distinguishing it from word_list_paragraphs which lists all paragraphs. The verb 'Return' is specific and accurate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like word_list_paragraphs or word_get_info. The description only lists parameters and errors, leaving the agent to infer usage context from tool names.

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/gawirable/office-mcp'

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