Skip to main content
Glama

wps_word_add_page_numbers

Add automatic page numbers to specified section footers, with alignment, numbering style, and restart options. Supports thesis pagination: cover clear, front matter Roman, body Arabic.

Instructions

在指定节的页脚添加自动页码(PAGE 域),居中/居左/居右可选。支持论文完整分节页码方案(封面无页码、前置页罗马数字、正文阿拉伯数字重新计数): ① 封面(第1节):{ section_index:1, clear:true } 清空页脚。 ② 前置页/摘要目录(第2节):{ section_index:2, link_to_previous:false, restart:true, start_number:1, number_style:"roman_lower" } 断开继承 + 独立编号 + 罗马数字。 ③ 正文(第3节):{ section_index:3, link_to_previous:false, restart:true, start_number:1, number_style:"arabic" } 断开继承 + 从 1 重新编号。 注意:每一节都必须显式调用一次(哪怕只是 link_to_previous:false),否则该节页脚会默认链接到上一节、继承其内容(包括继承"空")——这是最容易漏的坑。分节数量与结构可先用 wps_word_probe_sections 查看。页码是动态域,分页后自动更新。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alignNo页码在页脚中的位置,默认 center
clearNotrue 表示清空该节页脚全部内容(封面无页码)
restartNotrue 表示从此节重新编号
number_styleNo数字样式:阿拉伯数字/大写罗马数字/小写罗马数字,论文前置页常用 roman_lower
start_numberNorestart=true 时的起始页码,默认 1
section_indexNo目标节序号(从 1 开始),默认 1。分节数量可用 wps_word_probe_sections 查看
link_to_previousNofalse 表示断开该节页脚与上一节的链接,使本页脚独立;true/不传保持继承(会连带继承上一节页脚是空的情况)
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, but the description clearly discloses the dynamic nature of the PAGE field, section linking behavior, and the requirement to call the tool for each section. It does not cover error cases (e.g., invalid section_index) or behavior when a section already has content, which are minor gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, followed by well-structured examples and a critical warning. It is longer than strictly necessary, but every sentence serves a purpose; the structure aids comprehension.

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?

Given 7 optional parameters and no output schema, the description covers the primary use case thoroughly, references a relevant sibling tool (wps_word_probe_sections), and explains parameter interactions. It lacks information about error handling and return values, but these are minor omissions for a tool with this complexity.

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

Parameters4/5

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

Schema coverage is 100%, so each parameter is already described in the input schema. The description adds significant meaning by providing example parameter combinations for real use cases, explaining interactions (e.g., restart with link_to_previous:false), and clarifying defaults and intent beyond the schema's isolated descriptions.

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 the tool adds auto page numbers (PAGE field) to section footers with alignment options. It clearly distinguishes from siblings by providing a specific, non-overlapping function; no other sibling tool handles page numbering.

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

Usage Guidelines5/5

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

The description explicitly outlines when to use the tool with a detailed thesis numbering workflow (cover, preface, body) and warns about the common pitfall of section linking inheritance. It also recommends using wps_word_probe_sections for section structure, providing clear contextual guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/Antares422/draftly-wps'

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