[KongchangAI]
· 2 min read· 1,301 words

Stateful Tool Calling in LLMs: The Convention Trap of Omitted Fields and Prompt Design

Stateful Tool Calling in LLMs: The Convention Trap of Omitted Fields and Prompt Design

LLMs rely heavily on implicit conventions in stateful tool calling; accuracy plummets under reversed omission rules, while explicit rule tables can substantially remedy the issue.

The LeaveItOutBench benchmark reveals that LLMs handling field omission in stateful tool calling rely heavily on implicit conventions in training data. Accuracy is 76.2% under conventional rules but drops sharply to 49.5% under reversed rules—a 26.7 percentage point gap. When omission means resetting to default, accuracy is only 3.8%. Explicitly defining operations and rule tables can improve accuracy under reversed rules by 39.8 to 43.7 percentage points, but interface design requires caution. Multi-model, multi-vendor tests show the problem is systemic. The research recommends an "explicit over implicit" strategy: write absence semantics into the tool contract and cover reversed-rule tests.

When large language models (LLMs) act as agents calling tools, a seemingly trivial detail—field omission—can become the dividing line for reliability. When a tool updates a record, omitting a field may mean "keep the original value unchanged," or it may mean "reset to the default value." These two conventions are directly opposed, yet they are often left unspecified in prompts. The test results from LeaveItOutBench reveal the model's significant fragility on these "conventions of absence": accuracy is 76.2% under the conventional rule, but drops sharply to 49.5% under the reversed rule—a gap of 26.7 percentage points. Based on the public data from this benchmark, this article analyzes LLM performance in scenarios involving omission, empty values, and explicit null, and explores feasible paths to improve robustness through prompt design.

LeaveItOutBench benchmark diagram

The "Convention of Absence" Problem in Stateful Tool Calling

In function calling or tool use scenarios, the model needs to generate JSON-formatted call parameters. LeaveItOutBench focuses on "stateful" update operations: given the current record state, a tool description, and an update request, the model must decide how to fill in the parameters. The key variable is the semantics of "absence"—when a field is not included in the call, should the system retain the old value or restore the default value? Different frameworks and different APIs make different design choices, and models often need to infer intent from limited tool descriptions.

The benchmark designs paired tasks: the same request, the same schema, and the same target state, with only one update rule changed. For example, in one task family, omitting the "status" field means the status remains unchanged; in the paired task family, omission resets it to "pending." The model outputs only one JSON call as text, and scoring is based on the complete state after the call, distinguishing between "stored values" and "inherited default values." This design strips away the model's reliance on surface patterns and directly targets understanding of the rule itself.

Stateful tool calling means that when a model calls a tool, it must consider the system's current state (such as a record in a database) and generate parameters that correctly update that state. Unlike stateless calls (where each call is independent), in stateful calls the meaning of parameters depends on the current state: for example, if a field is omitted in an update request, the system may retain the old value or reset to the default value, depending on the tool contract. This state dependency forces the model to understand the semantics of "absence" rather than generating parameters solely by pattern matching.

Accuracy Reveals Convention Dependence

The experiment covered five pre-registered models and 120 held-out task families. When the tool description did not explicitly state the rule, the model's exact accuracy was 76.2% under the conventional convention, but only 49.5% under the reversed convention—a gap of 26.7 percentage points. This gap indicates that the model relies heavily on conventions implicit in the training data rather than reasoning explicit rules from the task context.

A more fine-grained analysis focused on 32 omission task families: when omission meant "keep the field unchanged," accuracy was 76.9%; when omission meant "reset to the default value," accuracy plummeted to 3.8%. This is an extreme contrast, showing that the model is almost unable to handle omission semantics that contradict mainstream conventions. Even with identical prompts, the model still tends to act according to the default assumption that "omission means preserve."

Reversed convention refers to rules that are opposite to mainstream conventions. In tool calling, the mainstream convention is usually "omission means preserve the original value" (such as PATCH semantics), while the reversed convention specifies that "omission means reset to the default value." This design aims to test whether the model can reason explicit rules from the task description rather than relying on statistical biases in the training data. The performance gap under the reversed convention reveals the degree to which the model depends on implicit conventions.

The Remedial Effect of Defined Operations and Rule Tables

If the model's dependence on conventions is so strong, can explicitly defining operations and adding a rule table alleviate the problem? The answer is yes. Experiments show that under reversed rules, providing operation definitions and a rule table increased accuracy by 39.8 percentage points (without examples) and 43.7 percentage points (with examples). This improvement is considerable, indicating that when rules are clearly stated, the model is capable of overriding its inherent biases.

A subsequent separate test on Qwen3-14B further compared different interface designs. Two interfaces with explicit operations improved by 5.8 and 6.7 percentage points respectively compared with full documentation, but neither reached the pre-registered threshold of 8 percentage points. This suggests that merely "mentioning" operations may not be enough; how to organize information and how to reduce ambiguity remain key.

Rule table is a prompt structure that explicitly lists in tabular form the semantic consequence of each operation (such as "omit field" or "explicit null")—for example, "preserve original value" or "reset to default value." By presenting rules in a structured way, it reduces the ambiguity of natural language descriptions and helps the model refer to the rules when generating calls. Experiments show that rule tables can significantly improve the model's accuracy in counter-convention scenarios because they force the model to focus on the rules themselves rather than relying on priors.

Consistency Across Models and Vendors

To verify the universality of the conclusion, the researchers tested three follow-up models from two vendors using short descriptions and observed the same gap. This indicates that the "convention of absence" problem is not a product of a specific model or specific training data, but a systemic weakness of current LLMs in stateful tool calling. When processing negative information such as "none" or "absence," models often lack sufficient attention allocation—the title's phrase "Nothing Is Harder Than Nothing" aptly summarizes this dilemma.

Negative information refers to semantic content indicating "none," "absence," or "not included," such as empty values, omitted fields, and explicit null. In neural networks, such information often lacks explicit lexical markers, making it difficult for the model to allocate attention and easy to overlook. LLMs are fragile when processing negative information and often default to common conventions rather than reasoning from context about the true meaning of absence.

Implications for Tool Design and Prompt Engineering

From an engineering practice perspective, this research sends several clear signals. First, tool descriptions cannot assume that the model understands implicit conventions; boundary cases such as omission, empty strings, falsy values, and explicit null should be explained one by one in the schema or description. Second, rule tables are an effective prompt structure, especially when rules contradict mainstream conventions. Third, interface design (such as distinguishing "unchanged" from "reset" operations) may be more effective than piling up documentation, but attention must be paid to how information is organized to avoid offsetting the benefits through ambiguous wording.

For developers building agent systems, the safest strategy may be "explicit over implicit": write the semantics of absence into the tool contract and cover reversed-rule scenarios in the test set. The paired task design provided by LeaveItOutBench can also serve as a template for internal evaluation to test whether the model truly understands tool semantics rather than merely memorizing statistical patterns in the training data.

Conclusion

LLM performance in stateful tool calling depends heavily on whether conventions are explicitly expressed. The 26.7 percentage point gap and the extreme accuracy of 3.8% remind us that the model's handling of "absence" is far from reliable. By explicitly defining operations and rule tables, this gap can be significantly narrowed, but how to design more natural interfaces and how to enable the model to generalize to new rules with only a few prompts remain open questions. As agents become increasingly widespread, this kind of foundational research deserves more attention.

#LLM tool calling#stateful tool calling#field omission#prompt engineering#LeaveItOutBench#agent systems#rule tables
Share:

Related articles