Skip to main content
Glama

Lilia Editor

Add a reference

add_reference

Add a reference to the document's bibliography from its DOI, arXiv id or ISBN (give one): Lilia looks it up (Crossref, arXiv, Open Library) and writes the entry, so its authors, title, venue and year are the real ones. Returns the cite key and what to write in the text to cite it (@cite{key}). A DOI the document already holds is not added twice: its key is returned. The bibliography block is made at the end when there is none.

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

Input Schema

NameRequiredDescriptionDefault
doiNoA DOI, e.g. 10.1145/321879.321884 (a https://doi.org/ link is fine).
isbnNoAn ISBN, for a book.
arxivNoAn arXiv id, e.g. 2106.09685 or arXiv:2106.09685.
citeKeyNoOptional cite key to use instead of Lilia's (author and year), e.g. tarjan1975.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and readOnlyHint=false, and the description adds real value on top: external lookups at Crossref/arXiv/Open Library, deduplication of an already-held DOI, and creation of a bibliography block at the end when none exists. The dedup statement sits in mild tension with idempotentHint=false, but it describes a specific duplicate case rather than contradicting the annotation outright.

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?

Three dense sentences, front-loaded with the core action and identifier options, then the return value, then edge-case behavior. The clause about authors, title, venue and year being 'the real ones' is slightly expansive but justifies the lookup behavior.

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?

With no output schema, the description still covers the return value (cite key and @cite{key} in-text form), the write side effect, and the auto-created bibliography block. Nothing essential to invoking it correctly is missing.

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 100%, so the baseline is 3, but the description adds the one-of constraint across doi/isbn/arxiv that the schema does not express. It does not mention citeKey, which the schema documents on its own.

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 (add a reference to the document's bibliography) plus the accepted identifier formats (DOI, arXiv id, ISBN) and the services used. An agent can distinguish it from add_block or add_section without opening the schema.

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?

The parenthetical 'give one' tells the agent the identifier parameters are mutually exclusive, and the duplicate-DOI sentence tells it what happens on a repeat call. It lacks an explicit statement of when to prefer this over add_block or import_document, but the context is clear enough to act on.

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