Skip to main content
Glama

Thesis Formatter API - format a Word thesis to university rules (margins, headings, TOC, page numbers)

thesis_formatter
Read-onlyIdempotent

Send a thesis or long report as .docx and get the same text back formatted to the rules: page size and margins (binding margin, mirror margins), font, size, line spacing, justified body with first-line indent, real Word heading styles (kept, or detected from 'Chapter 1', '1.2 ...', INTRODUCTION/REFERENCES, bold or CAPS lines), a table of contents field with page numbers, chapters on a new page, page numbers without one on the title page, captions and source lines, bibliography hanging indent, footnotes, empty spacing lines removed. Presets: Polish standard, APA, UK/EU or your own numbers. The words are never changed: text compared letter by letter. Returns the .docx as base64 + the heading outline with pages. Deterministic, 0 AI, nothing stored. Up to 300 pages. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/thesis-formatter.

Input Schema

NameRequiredDescriptionDefault
numNoPage numbers: bc bottom centre, br bottom right, tr top right, keep = leave as is
fontNocustom: font
sizeNocustom: font size in pt, e.g. 12
alignNocustom: body text
paperNoPaper (default from the preset)
presetNoFormatting rulespl
spacingNocustom: line spacing, e.g. 1.5
fileNameNoOptional file name, e.g. thesis.docx
indentCmNocustom: first-line indent in cm (0 = none)
marginsCmNocustom: margins in cm {top, bottom, left, right}
fileContentYesThe thesis as a Word .docx file, base64, max 20 MB
mirrorMarginsNoDouble-sided printing (binding margin swaps)
chapterNewPageNoStart each chapter on a new page
tableOfContentsNoAdd a table of contents after the title page
polishOneLetterWordsNoKeep one-letter words (a, i, o, u, w, z) with the next word

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses genuinely useful behavior: a letter-by-letter text-integrity guarantee, deterministic 0-AI processing, nothing stored, the exact return payload (.docx base64 plus heading outline with pages), page limits, and both auth paths (X-API-Key tier or x402 per-call) with free-tier limits. This is exactly the operational context annotations cannot carry, and nothing contradicts readOnlyHint=true or openWorldHint=true.

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

Conciseness3/5

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

The core action and return format are front-loaded, which is good, but the middle is a single dense run-on enumeration of every formatting rule, and the trailing pricing URLs and rate-limit details add bulk that is not needed to decide whether to invoke. Bulleting or trimming the feature list would improve scannability without losing meaning.

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

Completeness5/5

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

For a 15-parameter, nested-object tool with no output schema, the definition covers everything an agent needs: accepted input format and size, output shape, determinism and data-handling guarantees, page ceiling, throttling, and both authentication routes. Nothing material for correct invocation is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 15 parameters, making 3 the baseline. The description adds a little mapping value by expanding presets ('Polish standard, APA, UK/EU or your own numbers' for pl/pl25/apa/uk/custom) and heading-detection heuristics, but several parameters (num, mirrorMargins, polishOneLetterWords, chapterNewPage) get no elaboration beyond their schema text.

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 names a specific verb and resource ('format a thesis or long report as .docx') and enumerates the concrete transformations performed (margins, heading styles, TOC field, page numbers, hanging indents). It is unmistakably distinct from the sibling conversion/formatting utilities such as pdf_page_numbers or word_counter.

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?

It states the required input contract clearly ('as .docx', max 20 MB, up to 300 pages) and describes preset selection, giving an agent enough context to know when this tool applies. It stops short of explicit when-not-to-use guidance or naming an alternative for non-thesis documents, so it lands just below the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources