Tool Preferences in Agentic LLMs are Unreliable

Kazem Faghih, Wenxiao Wang, Yize Cheng, Siddhant Bharti, Gaurang Sriramanan +3 more
5/23/2025
cs.AIcs.CLcs.CR

Official code: kazemf78/llm-unreliable-tool-preferences (4 stars, last commit 2025-09-21).

Abstract

Large language models (LLMs) can now access a wide range of external tools, thanks to the Model Context Protocol (MCP). This greatly expands their abilities as various agents. However, LLMs rely entirely on the text descriptions of tools to decide which ones to use--a process that is surprisingly fragile. In this work, we expose a vulnerability in prevalent tool/function-calling protocols by investigating a series of edits to tool descriptions, some of which can drastically increase a tool's usage from LLMs when competing with alternatives. Through controlled experiments, we show that tools with properly edited descriptions receive over 10 times more usage from GPT-4.1 and Qwen2.5-7B than tools with original descriptions. We further evaluate how various edits to tool descriptions perform when competing directly with one another and how these trends generalize or differ across a broader set of 17 different models. These phenomena, while giving developers a powerful way to promote their tools, underscore the need for a more reliable foundation for agentic LLMs to select and utilize tools and resources. Our code is publicly available at https://github.com/kazemf78/llm-unreliable-tool-preferences.

View on arXivView PDF

Code Implementations(1)

[EMNLP 2025] Implementation for paper "Tool Preferences in Agentic LLMs are Unreliable"

40Shell, PythonMay 26, 20251 years ago

Similar Papers

Cite this paper

@article{faghih2025tool,
  title  = {Tool Preferences in Agentic LLMs are Unreliable},
  author = {Kazem Faghih and Wenxiao Wang and Yize Cheng and Siddhant Bharti and Gaurang Sriramanan and Sriram Balasubramanian and Parsa Hosseini and Soheil Feizi},
  year   = {2025},
  eprint = {2505.18135},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.18135v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.18135.svg)](https://codeofpaper.com/paper/2505.18135)

Discussion