Large language model agents can use tools to perform clinical calculations
Open accessAbstract
Large language models (LLMs) can answer expert-level questions in medicine but are prone to hallucinations and arithmetic errors. Early evidence suggests LLMs cannot reliably perform clinical calculations, limiting their potential integration into clinical workflows. We evaluated ChatGPT's performance across 48 medical calculation tasks, finding incorrect responses in one-third of trials (n = 212). We then assessed three forms of agentic augmentation: retrieval-augmented generation, a code interpreter tool, and a set of task-specific calculation tools (OpenMedCalc) across 10,000 trials. Models with access to task-specific tools showed the greatest improvement, with LLaMa and GPT-based models demonstrating a 5.5-fold (88% vs 16%) and 13-fold (64% vs 4.8%) reduction in incorrect responses, respectively, compared to the unimproved models. Our findings suggest that integration of machine-readable, task-specific tools may help overcome LLMs' limitations in medical calculations.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
GenAI tools can significantly improve clinical accuracy, workflow efficiency, and decision-support capacity when implemented under structured supervision.
“Studies27,29,30,42 provide empirical evidence that GenAI tools can significantly improve clinical accuracy, workflow efficiency, and decision-support capacity when implemented under structured supervision.”
From Generative Artificial Intelligence in Healthcare: Automation Bias, Deskilling, and Cognitive Implications – A Systematic Review (2026) · cites this paper as [42]
The Results (Focused analysis, page unavailable) show significantly higher accuracy on clinical calculation vignettes with tool augmentation, including GPT accuracy rising from 36.1% to 95.2% with OpenMedCalc. The Discussion describes workflow benefits and decision-support uses as future possibilities, not measured improvements; the study also does not establish that the tools were implemented under structured clinical supervision. (LLM, conf=0.87)
Experimental — accuracy not yet measuredClinician performance is optimized when AI outputs are analyzed rather than uncritically accepted.
“Empirical evidence27,29,42 indicated that clinician performance is optimized when AI outputs are analyzed rather than uncritically accepted.”
From Generative Artificial Intelligence in Healthcare: Automation Bias, Deskilling, and Cognitive Implications – A Systematic Review (2026) · cites this paper as [42]
The Results evaluate LLM accuracy on clinical calculations, and the Discussion notes that even the best configuration made errors. Neither section examines clinician performance when clinicians analyze AI outputs versus accept them uncritically. Searches for clinician review, verification, and reliance found no such comparison in our copy. (LLM, conf=0.74)
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Toward expert-level medical question answering with large language models
Singhal, K., Tu, T., Gottweis, J., Sayres, R., Wulczyn, E., Amin, M., Hou, L., Clark, K., Pfohl, S. R., Cole-Lewis, H., et al. (2025) · Nature Medicine · doi:10.1038/s41591-024-03423-7 · Cited by 1,734 · see citing works
Adapted large language models can outperform medical experts in clinical text summarization
Van Veen, D., Van Uden, C., Blankemeier, L., Delbrouck, J.-B., Aali, A., Bluethgen, C., Pareek, A., Polacin, M., Reis, E. P., Seehofnerová, A., et al. (2024) · Nature Medicine · doi:10.1038/s41591-024-02855-5 · Cited by 891 · cited 1× · see citing works
“1forbothmodelstoevaluatethemost-likelyresponse 38 while allowing for some variability for self-correction (discussed below).”
Large Language Model Influence on Diagnostic Reasoning: A Randomized Clinical Trial
Goh, E., Gallo, R., Hom, J., Strong, E., Weng, Y., Kerman, H., Cool, J. A., Kanjee, Z., Parsons, A. S., Ahuja, N., et al. (2024) · JAMA Network Open · doi:10.1001/jamanetworkopen.2024.40969 · Cited by 724 · see citing works
Towards Reasoning in Large Language Models: A Survey
Huang, J., & Chang, K. C.-C. (2023) · Findings of the Association for Computational Linguistics: ACL 2023 · doi:10.18653/v1/2023.findings-acl.67 · Cited by 428 · see citing works
Almanac — Retrieval-Augmented Language Models for Clinical Medicine
Zakka, C., Shad, R., Chaurasia, A., Dalal, A. R., Kim, J. L., Moor, M., Fong, R., Phillips, C., Alexander, K., Ashley, E., et al. (2024) · NEJM AI · doi:10.1056/aioa2300068 · Cited by 424 · see citing works
Savage, T., Nayak, A., Gallo, R., Rangan, E., & Chen, J. H. (2024) · npj Digital Medicine · doi:10.1038/s41746-024-01010-1 · Cited by 265 · see citing works
Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicine
Nori, H., Lee, Y. T., Zhang, S., Carignan, D., Edgar, R., Fusi, N., King, N., Larson, J., Li, Y., Liu, W., et al. (2023) · arXiv · doi:10.48550/arxiv.2311.16452 · Cited by 178 · see citing works
Ng, M. Y., Helzer, J., Pfeffer, M. A., Seto, T., & Hernandez-Boussard, T. (2025) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocaf005 · Cited by 36 · see citing works
Flagged first, then by citations
Research works printed but not linked: 30
- [2]Kung, T. H. et al. Performance of ChatGPT on USMLE: potential for ai-assisted medical education using large language models. PLoS Digit. Health 2, e0000198 (2023). 36812645 PMC9931230 · DOI · Paper page
- [3]Singhal, K. et al. Large language models encode clinical knowledge. Nature 620, 172–180 (2023). 37438534 PMC10396962 · DOI · Paper page
- [4]OpenAI. Gpt-4 technical report. http://arxiv.org/abs/2303.08774 (2023). · arXiv
- [6]Patel, D. et al. Evaluating prompt engineering on GPT-3.5’s performance in USMLE-style medical calculations and clinical scenarios generated by GPT-4. Sci. Rep. 14, 17341 (2024). 39069520 PMC11284198 · DOI
- [8]Yao, S. et. al. ReAct: Synergizing Reasoning and Acting in Language Models. The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=WE_vluYUL-X (2023).
- [9]Xi, Z. H. et al. The rise and potential of large language model based agents: a survey. Sci China Inf Sci. 68, 121101 (2025). · DOI · Paper page
- [10]Yubo, W., Xueguang, M. & Wenhu, C. Augmenting Black-box LLMs with Medical Textbooks for Biomedical Question Answering. 10.48550/arXiv.2309.02233 (2024). · DOI
- [11]Jin, Q., Yang, Y., Chen, Q. & Lu, Z. Genegpt: augmenting large language models with domain tools for improved access to biomedical information. Bioinformatics 40, btae075 (2024). 38341654 PMC10904143 · DOI · Paper page
- [12]Imani, S., Du, L. & Shrivastava, H. MathPrompter: Mathematical Reasoning using Large Language Models. In Proc. 61st Annual Meeting of the Association for Computational Linguistics (eds Sitaram, S., Beigman K. B. & Williams, J. D.) Volume 5: Industry Track, 37–42 (Association for Computational Linguistics, Toronto, Canada, 2023).
- [14]Walker, G. Emergentology: the ups and downs of developing the MDCalc app. Emerg. Med. News 38, 18 (2016). · DOI
- [15]Bilimoria, K. Y. et al. Development and evaluation of the universal ACS NSQIP surgical risk calculator: a decision aid and informed consent tool for patients and surgeons. J. Am. Coll. Surg. 217, 833 (2013). 24055383 PMC3805776 · DOI
- [16]Shahian, D. M. et al. The society of thoracic surgeons 2018 adult cardiac surgery risk models: part 1—background, design considerations, and model development. Ann. Thorac. Surg. 105, 1411–1418 (2018). 29577925 · DOI · Paper page
- [19]Bumgardner, V. K. C. et al. Institutional platform for secure self-service large language model exploration. arXiv [cs.CR]. http://arxiv.org/abs/2402.00913 (2024). PMC12150735 40502230 · arXiv
- [21]Hong, H. J., Schmiesing, C. A. & Goodell, A. J. Enhancing the readability of preoperative patient instructions using large language models. Anesthesiology 141, 608–610 (2024). 39136480 · DOI
- [22]Chung, P. et al. Large language model capabilities in perioperative risk prediction and prognostication. JAMA Surg. 159, 928–937 (2024). 38837145 PMC11154375 · DOI
- [23]Kwan, B., Bell, J. F., Longhurst, C. A., Goldhaber, N. H. & Clay, B. Implementation of an electronic health record-integrated instant messaging system in an academic health system. J. Am. Med. Inform. Assoc. 31, 997–1000 (2024). 38287641 PMC10990552 · DOI
- [24]Schick, T. D. et al. Toolformer: Language models can teach themselves to use tools. Adv. Neural Inf. Process. Syst. 36, 68539–68551 (2023).
- [25]Goodell, A. J., Chu, S. N., Rouholiman, D. & Chu, L. F. Augmentation of ChatGPT with clinician-informed tools improves performance on medical calculation tasks. medRxiv 2023-12. 10.1101/2023.12.13.23299881 (2023). · DOI
- [26]Khandekar, N. et al. Medcalc-bench: Evaluating large language models for medical calculations. arXiv [cs.CL]. http://arxiv.org/abs/2406.12036 (2024). · arXiv
- [27]Jin, Q. et al. Agentmd: empowering language agents for risk prediction with large-scale clinical tool learning. arXiv [cs.CL]. http://arxiv.org/abs/2402.13225 (2024). PMC12549800 41130954 · arXiv
- [28]Zhu, Y. et al. Menti: bridging medical calculator and llm agent with nested tool calling. arXiv [cs.AI]. http://arxiv.org/abs/2410.13610 (2024). · arXiv
- [29]Wan, N. et al. Humans continue to outperform large language models in complex clinical decision-making: a study with medical calculators. arXiv [cs.CL]. http://arxiv.org/abs/2411.05897 (2024). PMC12919463 41726433 · arXiv
- [30]Fleming, S. L. et al. MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Records. In Proc. AAAI Conference on Artificial Intelligence, Vol. 38, 22021–22030 (2024). PMC12826664 41584261
- [31]Pal, A. et al. Med-HALT: Medical Domain Hallucination Test for Large Language Models. In Proc. 27th Conference on Computational Natural Language Learning (CoNLL) (eds Jiang, J., Reitter, D. & Deng, S) 314–334 (Association for Computational Linguistics, Singapore, 2023) https://aclanthology.org/2023.conll-1.21/
- [33]Qiao, S. et al. Reasoning with Language Model Prompting: A Survey. In Proc. 61st Annual Meeting of the Association for Computational Linguistics, Vol. 1 (eds Rogers, A., Boyd-Graber, J. & Okazaki, N) 5368–5393 (Association for Computational Linguistics, Toronto, Canada, 2023).
- [34]Shashikumar, S. P., Wardi, G., Malhotra, A. & Nemati, S. Artificial intelligence sepsis prediction algorithm learns to say “I don’t know”. npj Digit. Med. 4, 1–9 (2021). 34504260 PMC8429719 · DOI
- [35]Tang, X. et al. MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoning. 10.48550/arXiv.2311.10537 (2024). · DOI
- [36]Liao, Y., Meng, Y., Liu, H., Wang, Y. & Wang, Y. An automatic evaluation framework for multi-turn medical consultations capabilities of large language models. 10.48550/arXiv.2309.02077 (2023). · DOI
- [37]Schmidgall, S. et al. Agentclinic: a multimodal agent benchmark to evaluate ai in simulated clinical environments. arXiv [cs.HC] http://arxiv.org/abs/2405.07960 (2024). · arXiv
- [39]Willard, B. T. & Louf, R. Efficient guided generation for large language models. arXiv [cs.CL]. http://arxiv.org/abs/2307.09702 (2023). · arXiv
Cited by
Sorted by citations
From language to action: a review of large language models as autonomous agents and tool users
Chowa, S. S., Alvi, R., Rahman, S. S., Rahman, M. A., Raiaan, M. A. K., Islam, M. R., Hussain, M., & Azam, S. (2026) · Artificial Intelligence Review · doi:10.1007/s10462-025-11471-9 · Cited by 50 · see citing works
“Other studies assess agents in their ability to execute clinical calculations using established medical calculators or make complex oncology decisions based on multimodal patient data [53,73].”
InfluentialAl-Anezi, F. M. (2026) · Journal of Healthcare Leadership · doi:10.2147/jhl.s590498 · Cited by 6 · see citing works
- Authors
- Goodell, A. J., Chu, S. N., Rouholiman, D., & Chu, L. F.
- Affiliations
- Stanford Medicine (US)
- University of California, San Francisco (US)
- Corresponding author
- Goodell, Alex J.
- Venue
- npj Digital Medicine
- Published
- 2025-03-17
- Volume
- 8
- Issue
- 1
- Pages
- 163-163
- ISSN
- 2398-6352 (ISSN-L)
- PMC
- PMC11914283
- OpenAlex
- W4408529625
- Cited by
- 48
- References
- 8
- Citations by year
- 2026: 38 · 2025: 10
- FWCI
- 11.55
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- npj Digital Medicine (publishedVersion, cc-by-nc-nd)
- PubMed Central (publishedVersion, cc-by-nc-nd)
- PubMed (publishedVersion)
- eScholarship (California Digital Library) (submittedVersion, cc-by-nc-nd)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- National Institutes of Health
- University of California, San Francisco
- National Institute of General Medical Sciences (T32GM089626)
- National Institute of Allergy and Infectious Diseases (T32AI125222)
- Topics
- Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
- Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
- Health Sciences › Health Professions › Health Information Management › Artificial Intelligence in Healthcare
- Keywords
- LLM agents, hallucinations, ChatGPT, retrieval-augmented generation, code interpreter, llamas, clinical workflow integration
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review