Skip to main content
Glama

Lilia Editor

Create a document

create_document

Create a new document owned by the author, optionally with a first draft in LaTeX (as rewrite_document). Kinds: article (default), report, book. Returns its id and address; then edit it with the other tools.

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": {
      "title": "<title>"
    },
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
lmlNoAdvanced: the first draft in LML, Lilia's internal block markup, instead of LaTeX.
kindNoarticle, report or book. Default article.
titleYesThe document's title.
contentNoOptional first draft in LaTeX, e.g. "\section{Introduction} Text.".

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the non-read-only, non-destructive, non-idempotent, closed-world profile, so the description sensibly adds what annotations cannot: the returned id and address, that ownership goes to the author, and that the LaTeX body is only an optional first draft. It does not warn that repeated calls with the same title will create duplicate documents, which the idempotentHint=false implies.

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

Conciseness5/5

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

Three short sentences with the primary action, optional draft, kind list, and return value front-loaded; nothing is redundant or padded. The trailing pointer to the other tools earns its place as workflow guidance.

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 discloses what is returned (id and address), which is the key missing structured information. Combined with 100% schema coverage and explicit annotations, the only thin spot is unstated failure behavior for invalid kinds or titles.

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 coverage is 100%, so all four parameters are already documented in the schema, including the LaTeX example and the 'Advanced: LML' note. The description only restates the content and kind semantics, adding the useful cross-reference that content mirrors rewrite_document's LaTeX input form. Baseline 3 is appropriate.

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 ('Create a new document') plus ownership scope and the supported kinds (article default, report, book). It also disambiguates the content format by pointing at rewrite_document as the parallel LaTeX-accepting tool, so an agent can tell it apart from siblings without opening schemas.

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 clear workflow context: create here, then 'edit it with the other tools', and points to rewrite_document as the analogue for LaTeX drafting. There are no explicit when-not-to-use conditions, but no sibling appears to compete for the creation action, so the gap is minor.

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