Skip to main content
Glama

Lilia Editor

Change the page setup

set_document_settings
Idempotent

Change the page setup. Pass only the fields to change, as one JSON object: paperSize (a4|letter|legal|a5|executive|b5), orientation (portrait|landscape), marginTop/marginBottom/marginLeft/marginRight (e.g. 2.5cm, "" = class default), columns (1-3), columnGap (cm), columnSeparator (none|rule), balancedColumns, fontFamily (serif|sans-serif|monospace|charter|times|palatino|bookman), fontSize (10|11|12), lineSpacing (0.8-3), paragraphIndent (length or none), pageNumbering (arabic|roman|none), headingNumbering (none|1-5: the heading levels numbered, which the table of contents lists too; default), headerLeft/headerCenter/headerRight/footerLeft/footerCenter/footerRight (plain text), language (auto|en|en-GB|fr|de|es|it|pt|nl|pl|sv|tr|ru|el|ar|he|zh|ja|ko: the PDF's language, auto reads it from the text), customPreamble (your own LaTeX added after Lilia's preamble, whose packages stay; it replaces the previous customPreamble, so read that first with get_document_settings). Invalid values change nothing and list the valid ones.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "documentId": "<documentId>",
      "settings": "<settings>"
    },
    "name": "set_document_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYesThe fields to change, e.g. {"fontSize":12,"marginLeft":"2cm"}.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), yet the description adds meaningful behavior: invalid values change nothing and echo the valid options, and customPreamble replaces the previous value wholesale so it must be read first. That replacement semantics warning is precisely the kind of destructive nuance annotations do not convey. It stops short of describing the response, but the core behaviors are disclosed.

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 purpose sentence is front-loaded and nothing is factually wasted, but the remainder is a single very long run-on clause string of field definitions, which is hard to scan. The content is justified; the packaging is not.

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?

For a mutation tool with a nested settings object, no output schema, and many permissive string fields, the description covers allowed values, units, patch semantics, failure behavior, and the destructive customPreamble case. Nothing critical is missing for correct invocation, though the return value or confirmation behavior is unstated.

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?

This is where the description carries the most weight: the schema types almost every setting as a bare string or number with no enums (paperSize, orientation, fontFamily, pageNumbering, language, paragraphIndent), and the description supplies the full allowed-value lists plus unit conventions (cm, points) and the '1-5' meaning for headingNumbering. That is substantive meaning the schema alone does not provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Change the page setup') and immediately enumerates the concrete settings it governs (paperSize, orientation, margins, fonts, headers/footers, language, preamble). An agent can tell it is the write counterpart to get_document_settings, though the sibling is only named incidentally in the customPreamble clause rather than as an explicit contrast.

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 gives real operational guidance: 'Pass only the fields to change' establishes patch semantics (partial update, not full replacement), and it instructs the agent to 'read that first with get_document_settings' before overwriting customPreamble. It does not state when not to use this tool, but the usage context is clear.

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