Skip to main content
Glama

Lilia Editor

Export a document

export_document
Read-only

A download link for the document as pdf, tex (one LaTeX file; alias latex), zip (an Overleaf-style LaTeX project) or docx (Word; alias word). The file is not returned here: give the author the link (valid 15 minutes) to click. The reply also says whether the document last compiled (lastCheck); for a pdf, run check_document first if it never has; when that check found this version does not compile, no pdf link is given (tex and zip still are). Read access is enough.

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": "export_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNopdf (default), tex, zip or docx.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnly, openWorld=false, idempotent=false) by disclosing that the file itself is not returned, that the link expires in 15 minutes, that the reply includes a lastCheck/compile status, and that a failed compile suppresses only the pdf link. The remaining gap is error behavior for invalid ids or formats, which is not covered.

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?

Dense but front-loaded: the formats and the 'file is not returned, share the link' constraint come first, with edge cases after. Parenthetical alias notes add length but each clause carries information; no sentence is filler.

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?

With no output schema, the description correctly compensates by describing the return payload (link + lastCheck) and the conditional absence of the pdf link. It is nearly complete for agent use; only failure modes (bad id, unauthorized access) are unaddressed.

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 already 100%, yet the description still adds real meaning: it explains what each format value produces (tex = one LaTeX file, zip = Overleaf-style project, docx = Word) and documents the latex/word aliases that the schema enum does not list. Default handling for format ('pdf (default)') is also clarified.

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?

States a specific verb+resource (export document → download link) and enumerates the four output formats with aliases, so the agent knows exactly what the tool returns. It does not distinguish itself from the sibling get_latex, which also produces LaTeX output, so it falls short of full sibling differentiation.

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?

Gives a concrete conditional workflow: 'for a pdf, run check_document first if it never has,' and explains what happens when the check reports a compile failure. It also states the access requirement ('Read access is enough'), but it never tells the agent when to prefer a different export/extraction sibling over this one.

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