Skip to main content
Glama
scholar-mcp

scholar-mcp

by pvliesdonk

Generate Citations

generate_citations
Read-only

Generate formatted citations for papers and patents in BibTeX, CSL-JSON, or RIS, with optional OpenAlex metadata enrichment.

Instructions

Generate formatted citations for papers and patents.

Papers are resolved through Semantic Scholar and can be enriched with OpenAlex metadata. Patent numbers such as EP1234567A1 may be mixed into paper_ids; they are resolved through EPO and come out as patent entries. Entries keep the order of paper_ids. The output is BibTeX, CSL-JSON or RIS.

Enrichment fans out per paper, so a large batch can take a while; such a call answers with a job handle to poll using get_job_result instead of the citations themselves.

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": {
      "paper_ids": "<paper_ids>"
    },
    "name": "generate_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
enrichNoIf True, attempt OpenAlex enrichment for missing venue data when a DOI is available.
paper_idsYesPaper identifiers (S2 IDs, DOIs, arXiv IDs, etc.) and patent numbers (``EP1234567A1``, ``US11234567B2``), in the order the citations should appear. Maximum 100.
citation_formatNoOutput format: ``bibtex``, ``csl-json`` or ``ris``.bibtex

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.3.0
    • changedInput schema / properties / paper_ids / description
      Previous value: -"List of paper identifiers (S2 IDs, DOIs, arXiv IDs,\netc.). Maximum 100."New value: +"Paper identifiers (S2 IDs, DOIs, arXiv IDs, etc.) and\npatent numbers (``EP1234567A1``, ``US11234567B2``), in the order\nthe citations should appear. Maximum 100."
  2. Changed1 schema field changedv3.1.1
    • changedInput schema / properties / citation_format / description
      Previous value: -"Output format — bibtex, csl-json, or ris."New value: +"Output format: ``bibtex``, ``csl-json`` or ``ris``."
  3. Changed4 schema fields changedv1.10.0
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  4. First observedv1.9.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare read-only, open-world, non-destructive; the description adds genuinely new behavior: patent numbers may be mixed into paper_ids and are resolved through a different backend (EPO), entries preserve the order of paper_ids, and large batches return an async job handle rather than results. That async/fallback behavior is exactly the kind of thing an agent cannot infer from annotations and would otherwise mishandle.

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?

Two tight paragraphs, front-loaded with the core action, then backend behavior, then the async caveat. Every sentence carries information the agent needs; no restatement of the title or schema.

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?

An output schema exists, so return values need not be described, and the description still covers the three output formats. For a 3-parameter tool with mixed identifier types and an async fallback path, the definition discloses everything needed to invoke it correctly, including the polling follow-up.

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; the description goes beyond it by clarifying that paper_ids is a heterogeneous list (S2 IDs, DOIs, arXiv IDs, and patent numbers like EP1234567A1) and that order is semantically meaningful, which the schema only partially conveys. It says nothing extra about enrich or citation_format beyond what the schema already documents.

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?

"Generate formatted citations for papers and patents" gives a specific verb and resource, and the body immediately scopes it: papers resolved via Semantic Scholar/OpenAlex, patents via EPO, output in BibTeX/CSL-JSON/RIS. An agent can distinguish this from retrieval-style siblings like get_citations or get_citation_graph without opening a 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 description tells the agent that enrichment fans out per paper and that a large batch answers with a job handle to poll via get_job_result instead of citations, which is a concrete routing rule. It stops short of stating when to prefer this over get_citations or when to disable enrichment, so it is clear but not exhaustive.

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