arXiv(opens in a new tab)cs.IRAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.22751

Risk-Aware Reranking for Agentic Tool Retrieval

Qinfei Li, Xiaoxuan Dong, Jin Zhang, Dexu Yu, Wenhao Deng, Junchen Fu, Youhua Li, Hanwen Du, Chunxiao Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Qinfei Li

University of Science and Technology

of China

Hefei, China

lqfff1984@gmail.com

Dexu Yu

Fenz.AI

Palo Alto, United States

yu.dex@northeastern.edu

Youhua Li

City University of Hong Kong

Hong Kong, China

youhuali2-c@my.cityu.edu.hk

Xiaoxuan Dong

University of Electronic Science and

Technology of China

Chengdu, China

202522010524@std.uestc.edu.cn

Wenhao Deng

University of Glasgow

Glasgow, United Kingdom

w.deng.1@research.gla.ac.uk

Hanwen Du

The Ohio State University

Columbus, United States

du.1128@osu.edu

Jin Zhang

Lanzhou University

Lanzhou, China

mjzj35723@gmail.com

Junchen Fu

University of Glasgow

Glasgow, United Kingdom

j.fu.3@research.gla.ac.uk

Chunxiao Li ∗^{*}

University of Science and Technology

of China

Hefei, China

chunxiao.li@ustc.edu.cn

Abstract

Tool retrieval determines which external tools are exposed to an LLM agent for a user query or task, making retrieval a critical pre-execution safety boundary. Unlike document retrieval, tool retrieval exposes executable actions: a tool that is useful for one task may be unnecessary or risky for another. However, existing tool-retrieval methods primarily optimize semantic relevance, and safety evaluations often focus on failures after tool execution rather than risks introduced during retrieval. We study risk-aware tool retrieval, where the goal is to retrieve useful tools while reducing exposure to higher-risk tools. We propose a lightweight reranking framework on top of a frozen first-stage retriever. The framework models query-conditioned relevance and tool-level exposure risk separately, combines them through an explicit parameter controlling the tradeoff between safety and utility, smooths scores over a ToolGraph, and optionally applies rule-based safety constraints. To support retrieval-time safety evaluation, we annotate 6,108 tools across UltraTool and Seal-Tools with five ordinal risk levels and define metrics that measure risky-tool exposure in the top-k results. Experiments on UltraTool and Seal-Tools show that our approach improves the relevance-safety tradeoff over relevance-only retrievers and reranking baselines, with the rule-filtered variant providing a conservative operating point for safety-critical deployments. These findings indicate that retrieval-stage filtering can reduce the candidate action space exposed to agents before execution, complementing downstream tool-use safeguards. The code and supplementary materials are available at: https://github.com/qli447/risk-aware-tool-retrieval-release.

CCS Concepts

• Information systems → Retrieval models and ranking; • Computing methodologies → Natural language processing; • Security and privacy → Software and application security.

References (7)