Fix entries
fix_entriesApply safe BibTeX fixes flagged by linting: convert single-hyphen page ranges to double hyphens, capitalize titles while protecting acronyms, and turn DOI links or doi: prefixes into bare DOIs.
Instructions
Apply the safe fixes that lint_entries points to and return the cleaned list as BibTeX: page ranges with one hyphen get a double hyphen, titles that start with a lower case letter or are all lower case get capitals (words inside braces are left alone, and acronyms like DNA, NASA or iOS in those titles are wrapped as {DNA} so BibTeX keeps their case; they are listed in protected_titles), and DOIs written as a link or with a doi: prefix become bare DOIs. Missing fields, backwards page ranges and DOIs that are not valid are not guessed, so run lint_entries on the result. Example: pages "12-15" becomes "12--15". Your files are not changed.
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>"
},
"name": "fix_entries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The reference list as text: BibTeX, RIS or CSL JSON. | |
| format | No | The format of the text. Defaults to auto, which looks at the text to decide. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many entries were read. | |
| fixed | Yes | How many changes were made. | |
| fixes | Yes | ||
| bibtex | Yes | The cleaned list as BibTeX. | |
| protected_titles | Yes | Acronyms wrapped in braces, like DNA, in titles that got a capitalization fix. |