Skip to main content
Glama

insert_index

Insert an index field into Word documents, compiling all XE entries with page numbers when fields update. Automatically backs up files and refuses open documents.

Instructions

Insert the INDEX field compiling all XE entries with page numbers (generated when Word updates fields). Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoIndex
at_endNo
backupNo
columnsNo
file_pathYes
after_indexNo
update_on_openNo
letter_headingsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries the full behavioral disclosure burden and does so well: it reveals auto-backup rotation behavior, atomic validated saving, refusal to operate on documents open in Word, and the fact that page numbers are generated when fields update. These are non-obvious and safety-relevant behaviors.

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 three dense sentences with no filler. The core action is front-loaded, followed by backup/save behavior and the open-document guard; every clause adds necessary information.

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 main operation, field-update behavior, backup and save semantics, and the open-document refusal. An output schema exists to convey return details. The main gap is the opaque after_index parameter and some other parameter semantics, but the tool is callable with reasonable confidence.

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%, so the description must explain the eight parameters. It clarifies backup behavior ('backup=False skips rotation only') and indirectly relates field updates to update_on_open, but after_index, letter_headings, at_end, and columns receive no meaningful explanation. Too many parameters are left to inference.

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 states a specific verb and resource: 'Insert the INDEX field compiling all XE entries with page numbers'. This distinguishes insert_index from sibling tools such as mark_index_entry and insert_toc by naming the exact Word field and its source data.

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?

The description gives clear context for when to use the tool: after XE entries exist and when a compiled index with page numbers is needed. It does not explicitly name alternative tools or state when not to use it, so it falls short of full routing 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/nometalalchemist/KitchenSink4Word'

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