Skip to main content
Glama

Lilia Editor

Check the document compiles

check_document
Read-onlyIdempotent

Compile the document now with Lilia's LaTeX and say whether it compiles and prints correctly: the error (its category and the block it is in) if not, the LaTeX warnings, references to labels the document never writes (they print ??), citations with no bibliography entry (they print ?), printsCorrectly, problems: each error and warning with its block id and line, hint: what to change when the error has a common cause (a TikZ library to load), and pages: how many pages the PDF export_document gives has (pagesNote says when it could only be counted on one LaTeX pass, which can differ). Takes a few seconds; the PDF is then ready to export at once. It does not change the document or its saved validation.

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>"
    },
    "name": "check_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: discloses latency ('takes a few seconds'), confirms no mutation of the document or its saved validation, and explains error categories, block-id/line reporting, hints for common causes (TikZ library), and the pagesNote caveat about single-pass counting.

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?

Purpose is front-loaded and the trailing sentences on latency and non-mutation are efficient. The middle is one very long run-on enumeration of return fields, which is dense to parse, though each clause maps to a distinct diagnostic an agent needs given no output schema.

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?

There is no output schema, so the description carries the full burden of the return shape and does so field by field (error, warnings, unresolved refs/citations, printsCorrectly, problems, hint, pages, pagesNote). Combined with the non-mutation and timing notes, nothing needed to call and interpret it 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?

Only one parameter (documentId) and schema coverage is 100%, so the schema already carries its meaning; the description adds nothing about the id's format or sourcing. Baseline 3 applies when the schema does the documentation work.

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?

States a specific verb and resource ('Compile the document now with Lilia's LaTeX') and clarifies the outcome is a compile/print verdict plus diagnostics. It is clearly separable from export_document, which it names as the follow-on producer of the PDF.

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?

'Compile the document now ... the PDF is then ready to export at once' implies the check-then-export workflow and points at export_document as the next step. It lacks an explicit 'use this before X / instead of Y' exclusion, and a 'don't call when nothing changed' note, so it falls just short of a 5.

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