Pubmed Spell Check
pubmed_spell_checkCorrect misspelled PubMed search queries against NCBI ESpell and return the fixed query, especially after zero-hit or thin results. Preserve field tags, operators, spacing, and indexed field values.
Instructions
Spell-check a PubMed search query against NCBI ESpell and get the corrected query back. Use after a zero-hit or thin pubmed_search_articles result, or when a drug, gene, disease, or author name may be misspelled. Corrections are applied in place, so field tags, operators, spacing, and gene symbols stay as written (alzhiemer diseese treatmnt outcomse → alzheimer disease treatment outcomes). The value of an indexed field — MeSH, publication type, journal, author, language, subset, and the like (aged[mh], free full text[sb], zhang y[au]) — is kept as written, misspelled or not, since the ESpell dictionary is not the index that field searches; free-text fields such as [tiab], [ti], and [tw] are corrected. Words in all capitals, with digits or non-ASCII letters, or differing only in case are never changed, nor is a single letter swapped for another (q fever, the initial in smith q), words after a number or symbol ESpell skips are left as written, and hasSuggestion is false when no correction was applied. Re-run the search with corrected.
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": {
"query": "<query>"
},
"name": "pubmed_spell_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | PubMed search query to spell-check. Must carry a term: a value of only whitespace or invisible characters, such as a zero-width space, is rejected rather than sent to ESpell. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| original | No | Original query | |
| corrected | No | The query with ESpell's accepted corrections applied in place; field tags, the values of indexed fields such as `aged[mh]` and `zhang y[au]`, operators, spacing, words in capitals or with digits, and a single letter ESpell would swap for another are kept as written. Same as `original` when `hasSuggestion` is false. | |
| hasSuggestion | No | Whether at least one correction was applied to `corrected` |