Manuscript Offprint

arXiv:2610.23342

Robust Function Calling for LLM Agents Under Interface Drift

Aniruddha Chattopadhyay, Kanishka Halder, Partha Sarathi Roy

Aniruddha Chattopadhyay 1^{1}, Kanishka Halder 1^{1}, and Partha Sarathi Roy 1^{1}

Independent Researcher

Abstract. Tool-augmented language-model agents rely on interface text: tool descriptions, argument schemas, and the candidate tool list shown at inference time. These interfaces often change after deployment even when the underlying tool semantics remain fixed, creating a practical reliability problem for function-calling systems. We study this failure mode as interface drift and evaluate whether a lightweight, training-free repair layer can recover robustness without retraining the base model. Our method, SchemaShield-Lite, combines schema validation, candidate-set retry for missing tool names, and one-shot constrained repair. On Qwen3.5-9B, it raises DICE-300 accuracy from 0.717 to 0.813 and BFCL-200 accuracy from 0.580 to 0.805, recovering 19/22 and 33/45 drift-induced failures with no observed repair harms. Naive retry does not explain the gains. Ablations show that candidate-set drift, especially distractor tools, accounts for most observed damage, while description and schema edits alone are less harmful. The results position validation-and-repair as a practical robustness layer for deployed LLM-agent tool use.

Keywords: tool-augmented large language models · function calling · interface drift · agentic AI robustness · inference-time validation and repair

1 Introduction

Modern language-model agents increasingly depend on external tools for retrieval, execution, planning, and actuation. In practice, however, tool use is mediated entirely through text: tool descriptions, parameter schemas, enum values, and candidate tool lists. Recent work shows that these interface details strongly affect tool selection and argument generation even when the tool semantics are unchanged [4,2]. This creates a deployment problem: tool interfaces drift over time as developers rename parameters, revise descriptions, add examples, or expand candidate tool sets.

We study this problem as interface drift: benign, semantics-preserving changes to tool interfaces that occur after deployment. Our goal is not to train a new tool-calling model, but to quantify drift sensitivity and test whether a compact inference-time repair layer can recover reliability without retraining.

We instantiate drift with three deployment-motivated synthetic perturbations: (i) stale description examples that mention legacy field names, (ii) schema

A. Chattopadhyay et al.

renaming, and (iii) distractor tools. Our primary evaluation uses Qwen3.5-9B on a 300-example DICE-BENCH slice [5] and a 200-example BFCL slice [21] under a deployment-realistic non-oracle repair protocol. Earlier oracle-constrained sweeps on additional open models are retained only as upper-bound context and for secondary analyses.

This paper makes three empirical contributions, demonstrated primarily on Qwen3.5-9B with a supporting replication on Qwen3.5-35B-A3B:

  1. Non-oracle inference-time repair recovers drift-induced failures on the primary model. On Qwen3.5-9B, SchemaShield-Lite raises DICE-300 accuracy from 0.717 to 0.813 and BFCL-200 accuracy from 0.580 to 0.805, while showing no observed repair harms on the originally-correct slice in either benchmark. A same-protocol BFCL replication on Qwen3.5-35B-A3B (0.635 → 0.845) confirms the effect is not confined to a single model size, though the cleanest non-oracle evidence remains within the Qwen family.

  2. Naive retry does not explain the gains. In the separate baseline runs reported in Section 6.2, naive retry reaches 0.727 versus repaired 0.813 on DICE-300 and 0.610 versus 0.795 on BFCL-200. A second attempt alone therefore cannot explain the recovery.

  3. Missing tool names are the main non-oracle bottleneck, and most primary-model drift misses remain validator-visible. In the non-oracle setting, adding a candidate-set retry improves repaired accuracy from 0.780 to 0.813 on DICE and from 0.725 to 0.805 on BFCL while reducing unresolved repair targets from 35 to 15 and from 34 to 9 respectively. In the final primary runs, only 2/22 drift misses on the DICE originally-correct slice and 0/45 on BFCL remain validator-invisible.

References (20)