Find duplicate entries
dedupe_entriesFind duplicate BibTeX, RIS, or CSL JSON references by DOI, cite key, or similar titles; identify which entry to keep or remove and return cleaned BibTeX without changing your files.
Instructions
Find duplicate references by matching DOI, by the same cite key, and by similar titles (the years must not clash). Each group says which entry to keep, the one with the most fields, and which to remove. Also returns the list as BibTeX with the extra copies dropped. Example: two entries with the same DOI, one with 3 fields and one with 6, give one group that keeps the entry with 6 fields and lists the other under remove. 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": "dedupe_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. | |
| title_threshold | No | How alike two titles must be to count as the same, from 0.5 to 1. Defaults to 0.9. | |
| merge_duplicates | No | Set to true to also return a merged list that shows, for each group, the fields only the removed copies had, like doi or pages. The kept entry's own fields are never changed. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | How many entries were read. | |
| groups | Yes | ||
| merged | No | Only present when merge_duplicates is true: one item per group showing the merged fields. | |
| unique | Yes | How many entries are left once the duplicates are dropped. | |
| deduplicated_bibtex | Yes | The list as BibTeX without the removed copies. |