Relevance Is Not Necessity: Selecting the Necessary API Set for Tool-Using LLMs
Abstract
Tool-using LLM agents over large API libraries rank APIs by textual relevance and then plan. Multi-tool benchmarks such as ToolBench accept a plan only when its calls equal a labeled gold set exactly. An API is necessary, in the sense used here, when it belongs to that verifier-defined set. Relevance and necessity can disagree: a same-family sibling is often highly relevant yet unnecessary, and per-API scores do not say whether the complete set is right. When gold-set membership is correlated across APIs, selectors that use only those scores can miss the set the verifier requires. TC-MASS edits the API set of a frozen upstream plan offline, with no additional LLM calls, and is trained on whole-set exact match. On a leakage-controlled 300-task ToolBench G2/G3 slice it improves exact recovery over the upstream plan, while matched per-API selectors do not, and method-blind judges prefer the sets it changes. The claim is scoped to retrieval-conditioned, large-pool, multi-tool settings.