Skip to main content
Glama

Lilia Editor

Paste text into a document

paste_content

Paste any text into a document where asked: LaTeX (a fragment or a whole paper), Markdown or plain text, or Lilia text. Lilia reads it as its Import → Paste does, adds the blocks after afterId (or at the end), checks that the document still compiles, and returns the new block ids, the verdict (problems on the pasted blocks) and the LaTeX of what was pasted. The way to move a paper over section by section: paste a section, read the verdict, fix with edit_block, paste the next after the last block added. The rest of the document and its settings are left as they are.

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

Input Schema

NameRequiredDescriptionDefault
formatNoAUTO (default), LATEX, MARKDOWN or LML.
afterIdNoInsert after this block id (from get_outline or a previous paste); omit to add at the end.
contentYesThe text to paste.
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?

Adds real behavior beyond the annotations: the text is parsed the way Import → Paste parses it, blocks are appended at/after afterId, the document is re-compiled and a verdict on the pasted blocks is returned along with new block ids and the pasted LaTeX, and the rest of the document and its settings are untouched. That last clause is the key non-destructiveness statement an agent needs. Return payloads would round it out further.

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, then behavior, then the recommended workflow, which is a sensible order. It is a dense single paragraph that mostly earns its length, though the opening phrase largely restates the title and the 'after afterId' typo costs a beat of clarity.

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?

No output schema exists, yet the description names what comes back (new block ids, the verdict on pasted blocks, the pasted LaTeX) and states the compile check and the guarantee that the rest of the document is unchanged. For a 4-parameter, non-idempotent append tool, an agent has everything needed to call it and interpret the result.

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 format, afterId, content and documentId are already documented; the baseline is 3. The description reinforces afterId semantics (insert after a block id, or at the end when omitted) and implies format auto-detection via the Import → Paste comparison, but adds little beyond the schema.

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?

Names a specific verb (paste) and resource (a document) plus the accepted input flavors: LaTeX fragment or whole paper, Markdown, plain text, LML. It implicitly contrasts with add_block and edit_block through the section-by-section workflow, but never explicitly states how it differs from import_document for whole-paper cases, which is the one remaining ambiguity.

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 operating procedure: paste a section, read the verdict, fix with edit_block, paste the next after the last block added. It also explains the afterId placement choice (after a block or at the end). No explicit when-not-to-use or exclusion against import_document, so it stops 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