arXiv:2610.20388cs.AIOct 2026

Manuscript Offprint

arXiv:2610.20388

From Relevance to Validity: Zero-Shot Tool Selection via Functional and Contextual Validation

Xiaoxuan Dong, Jin Zhang, Zichen Yuan, Yue Zhou, Zihao Rao, Dexu Yu, Tingyong WU, Wenhao Deng, Junchen Fu, Pengwei Sun, Yang Ran, Bo Lan, Yongxin Ni, Youhua Li

Abstract

Large language model (LLM) agents increasingly face tasks from unseen domains and execution contexts, making zero-shot tool selection essential for identifying tools that can satisfy task requirements. Existing dominant methods mainly rely on relevance ranking, but semantic matching alone cannot ensure that a tool is functionally compatible or remains applicable in a new context. We preliminarily identify a transfer-validity gap, where semantically relevant tools may still fail to satisfy functional or contextual requirements after transfer. To address this gap, we propose TACT, a progressive validation framework that complements semantic relevance with endpoint-grounded functional compatibility and task-conditioned contextual evidence. Across cross-domain and cross-dataset transfer, TACT consistently improves capability ranking, with larger gains under functional or contextual ambiguity. Ablation results further confirm the complementary contributions of functional and contextual validation.

1 Introduction

As large language models increasingly interact with external tools, APIs, and services, agents must select suitable capabilities from growing libraries (Yao et al., 2023; Schick et al., 2023). This problem becomes harder under distribution shift, where tasks may come from unseen domains or execution settings and target-side supervision is unavailable. Reliable zero-shot selection therefore requires transferring previously learned task-capability relations to new contexts.

Existing methods mainly improve candidate retrieval or ranking. Re-Invoke reformulates queries for zero-shot tool retrieval (Chen et al., 2024), while ToolRerank improves candidate ordering through adaptive reranking (Zheng et al., 2024). Other approaches extend selection through generation or open-world function calling (Wang et al.,

Figure

Figure 1: Zero-shot capability transfer involves three questions: whether a candidate is relevant, whether its endpoints can satisfy the task, and whether source-side support remains applicable to the current task.

2025; Qin et al., 2025). These methods provide strong mechanisms for proposing plausible candidates, but relevance alone does not establish whether a candidate remains valid after transfer.

Two additional constraints arise. First, a relevant capability may lack an endpoint that jointly supports the required operation, arguments, and input types; semantic relevance therefore does not guarantee functional compatibility. Second, even a functionally valid capability may have been supported only under particular source-side conditions, such as platform, locale, access policy, or execution environment. Its contextual applicability must therefore be reassessed for the current task. As illustrated in Figure 1, zero-shot transfer must thus consider relevance, functional compatibility, and contextual applicability.

Preliminary controlled diagnostics reveal both gaps, as shown in Figure 2. Among eligible tasks, 44.25% contain functionally different candidates with semantic scores less than 0.01 apart, indicating that semantic near-ties can mask functional in-compatibility. Holding the capability and callable function fixed, changing only the task context reverses applicability in 15.20% of determinate pairs with an applicable base context (62/408). These diagnostics motivate progressive validation: semantic relevance proposes candidates, endpoint evidence evaluates functional compatibility, and task-conditioned source evidence assesses contextual applicability.

Based on this observation, we propose TACT, an evidence-grounded framework for zero-shot capability transfer. Semantic Proposal provides a frozen relevance anchor. Functional Validation scores task requirements against operation, argument, and type evidence composed within individual endpoints. Contextual Validation uses task-conditioned source evidence to adjust relations whose support changes across contexts. Finally, Validated Ranking combines these signals through bounded gates, retaining the preceding estimate when a correction has no supporting evidence.

We evaluate TACT under cross-domain and cross-dataset zero-shot transfer. TACT achieves the strongest aggregate ranking performance, with larger gains when semantically plausible candidates differ in functional compatibility or contextual applicability. On the cross-domain CONTEXT view, TACT improves NDCG@5 from 0.518 for the strongest baseline, PORTS, to 0.624. Ablation results confirm the contributions of both functional and contextual validation, while downstream execution shows corresponding gains in task completion across frozen agent backbones.

Our main contributions are:

• We identify the transfer-validity gap in zero-shot capability selection and distinguish semantic relevance, functional compatibility, and contextual applicability through controlled diagnostics.

• We introduce TACT, which performs progressive transfer validation through Semantic Proposal, Functional Validation, Contextual Validation, and Validated Ranking.

• We evaluate TACT across cross-domain and cross-dataset transfer, controlled candidate ambiguity, ablations, scaling, source-evidence availability, and frozen-agent execution.