Skip to main content
Glama
litMcp

litMcp

by L1nze

Library Export

library_export

Export screened library papers to a BibTeX file for reference lists and citation managers such as Zotero, EndNote, or JabRef after finalizing your selection.

Instructions

Export screened papers from the library to a BibTeX file.

TRIGGER when the user wants a reference list, citation export, or a .bib file for Zotero / EndNote / JabRef (导出参考文献、生成 BibTeX).

Generates BibTeX entries directly from library columns and saves them to ~/.AI-CACHE/openalex/collections/{target}.

Use this as the FINAL step — after iteratively screening with library_query and confirming the papers you want.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "library_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSingle ``column[:asc|desc]`` expression. Allowed columns: id, title, publication_year, publication_date, cited_by_count, source_name, is_oa.
targetNoTarget .bib filename (default ``"export.bib"``). Must be a single filename and is always stored in the ``collections/`` directory.export.bib
work_idsNoComma-separated work IDs (e.g. ``"W123,W456,W789"``) or ``"*"`` to export all works.*
cite_key_styleNo``"author_year"`` (default, e.g. ``liu2024``) or ``"openalex_id"`` for legacy keys.author_year

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden, and it discloses the write destination path ``~/.AI-CACHE/openalex/collections/{target}`` and that entries are generated from library columns rather than live API data. It does not state whether an existing file with the same target is overwritten, nor any permission or size constraints, which is the main residual gap for a file-mutating tool.

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?

Front-loaded with the one-line purpose, then trigger conditions, then mechanism and path, then sequencing. Each sentence contributes distinct information, and the parenthetical bilingual keywords aid matching without bloating the text.

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?

An output schema exists, so return values need no explanation, and sequencing plus destination path cover the operational essentials for a four-parameter export tool. The only omission is overwrite semantics for the target file, a mutation detail with no annotation coverage to fill it in.

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 description coverage is 100%, so all four parameters (sort, target, work_ids, cite_key_style) are already documented in the schema. The description only echoes the target location and adds no syntax or behavioral nuance beyond it, so the baseline 3 applies.

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 ("Export screened papers from the library") plus the output format (BibTeX file), which immediately separates it from search/query siblings like library_query. An agent knows exactly what artifact this produces.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger condition (user wants a reference list, citation export, or .bib file for Zotero/EndNote/JabRef) and an explicit sequencing rule: it is the FINAL step after screening with ``library_query``. It even names the prerequisite workflow, leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.