Convert a bibliography
convert_bibliographyConverts reference lists between BibTeX, RIS, CSL JSON, and styled plain text, detecting input format and cleaning page ranges, DOIs, and names.
Instructions
Convert a reference list between BibTeX, RIS, CSL JSON and plain text (a simple reference list style, APA by default, or MLA, IEEE, Chicago or Harvard when you pass style). The input format is detected unless you pass it. Page ranges, DOIs and names are cleaned on the way. Example: text is a BibTeX entry and to is "ris", and output is the same reference as RIS. Set from only to override detection.
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": {
"text": "<text>",
"to": "<to>"
},
"name": "convert_bibliography"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The format to write. | |
| from | No | The format of the text. Defaults to auto, which looks at the text to decide. | |
| text | Yes | The reference list as text: BibTeX, RIS or CSL JSON. | |
| style | No | The citation style for the text output: apa, mla, ieee, chicago or harvard. Defaults to apa. Ignored for the other formats. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The format that was written. | |
| from | Yes | The format that was read. | |
| count | Yes | How many entries were converted. | |
| output | Yes | The converted reference list. |