Generate Citations
generate_citationsGenerate 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
| Name | Required | Description | Default |
|---|---|---|---|
| enrich | No | If True, attempt OpenAlex enrichment for missing venue data when a DOI is available. | |
| paper_ids | Yes | Paper identifiers (S2 IDs, DOIs, arXiv IDs, etc.) and patent numbers (``EP1234567A1``, ``US11234567B2``), in the order the citations should appear. Maximum 100. | |
| citation_format | No | Output format: ``bibtex``, ``csl-json`` or ``ris``. | bibtex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||