Skip to main content
Glama

list_fields

List all fields in a Word document with their type, current value, and location in body, headers, footers, footnotes, and endnotes. Also flags unclosed complex fields.

Instructions

Every field in the body, headers, footers, footnotes, and endnotes: instruction code, field type (DATE, PAGE, SEQ, TOC, ...), the current cached result text, and location (part + body paragraph index where applicable). Covers complex (fldChar) and simple (fldSimple) fields; unclosed complex fields are flagged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, this description carries the behavioral burden and does substantial work: it discloses the document regions scanned, the attributes returned, coverage of complex and simple fields, and flagging of unclosed fields. It stops short of explicitly stating the operation is read-only, though 'current cached result text' strongly implies no mutation.

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?

The description is compact and front-loaded with the tool's purpose in the first clause. The colon-separated attribute list and final completeness statement carry dense, relevant information without wasted words.

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?

The description covers the full field enumeration scope, field types, cached result text, location information, and edge-case handling, while the output schema can cover return formatting. A brief explicit read-only statement would make it fully complete, but it is already sufficient for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% and the description adds no meaning to the file_path parameter. The parameter is a simple, conventional path, so this is not a severe gap, but the description does not compensate for the schema's lack of any property description.

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 immediately states the exact scope — every field in body, headers, footers, footnotes, and endnotes — and enumerates the returned attributes. This makes it clearly distinct from field-related siblings like insert_field and com_refresh_fields.

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?

The description implies a listing/inspection use case by specifying coverage and the fact that unclosed fields are flagged, but it never explicitly says when to choose this over alternatives or when not to use it. Context is present, but exclusions and alternatives are absent.

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/nometalalchemist/KitchenSink4Word'

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