Pubmed Spell Check
pubmed_spell_checkSpell-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. Each correction is checked against PubMed first: one with under a tenth of the PubMed records of the word it replaces is dropped and the word kept (tirzepatide, which ESpell would turn into irzepatide), unless ESpell's MeSH dictionary offers a spelling PubMed holds more often than the word (tirzepatid → tirzepatide). A check that cannot run leaves ESpell's correction applied, or the dropped word as written, and notice names it. 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. | |
| notice | No | Names each correction applied as ESpell wrote it without its PubMed record-count check, and each word kept as written without a MeSH-dictionary spelling tried, with the cause: an NCBI request failed, the checks reached their limit of 12 requests, or they ran out of time (10 seconds, or less when the tool call had less time left). Absent when every check ran. | |
| 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. So is a word whose ESpell correction has under a tenth of its PubMed records, unless ESpell's MeSH dictionary offers a spelling PubMed holds more often than the word, which is used instead. Same as `original` when `hasSuggestion` is false. | |
| hasSuggestion | No | Whether at least one correction was applied to `corrected` |