← All stories

Report

LLM Tool Calling Limitations: What Schema Constraints Actually Enforce

Strict tool schemas guarantee argument structure on supported models, not that a call is correct or appropriate. Published evidence on injection, format constraints and judge guardrails is uneven.

  • Few sources cleanly separate what a schema guarantees (shape) from what a policy guarantees (permitted action, sequence,
  • The format-versus-reasoning trade-off rests on one 2024 study of older models. No current frontier-model replication was
  • Exact enforcement limits per provider were not retrieved from primary vendor documentation; most discussion is secondhan
  • Few sources report what happens when a well-formed tool call is itself the attack surface, for example a tool that retur
  • Cost and latency of grammar compilation are mentioned but poorly quantified. One source says complex schemas can add ini
LLM tool calling limitations OpenAI strict mode function calling

Photo: Matheus Bertelli · Pexels

Strict function calling in the OpenAI API guarantees one thing well: the arguments a model emits conform to the schema you supplied, on supported models and within a supported subset of JSON Schema. It does not guarantee that the values are correct, or that the call was appropriate. Most LLM tool calling limitations sit in that gap.

What strict mode guarantees

According to OpenAI’s help article, the guarantee applies only on supported models and configurations, and only when the schema uses the supported JSON Schema subset. “Strict” is a property of a specific model and schema pair, not of the API as a whole.

Shape versus meaning

A schema-valid argument can still carry a hallucinated value: an order ID that does not exist, or a date in the wrong year. Structural validity tells the application that the call parses. It says nothing about whether the parameters are true, so application-side validation is still required. This is the author’s reading, which a GMI Cloud explainer also states.

How constrained decoding enforces shape

A secondary explainer from GMI Cloud describes constrained decoding as masking invalid tokens at each generation step, so that only grammar- or schema-legal continuations remain possible. The mechanism here rests on this account and the vendor’s description of its guarantee.

Cost is poorly quantified. One source notes that complex schemas can add initialisation latency. A commonly quoted overhead figure is said to come from early implementations. I could not find a current measured figure, so none is given here.

Provider differences in enforced features

Vendors do not enforce the same keyword set. Check current provider docs before relying on any keyword list.

Format constraints and reasoning quality

The most-cited study here is “Let Me Speak Freely?” (arXiv 2408.02442). Its authors report that format restrictions significantly reduced reasoning performance, and that stricter constraints generally caused greater degradation. The models were older: GPT-3.5, Gemini 1.5 Flash and LLaMA-3-8B. Parse errors were near zero even where scores fell, so the harm is not only parse failure. Secondary summaries attribute part of the effect to key ordering that places the answer before the reasoning, which removes chain-of-thought. I have not verified that mechanism against the paper’s text. I have also left out the GSM8K drop figures in a secondary overview, because I could not check them against the paper.

What the evidence does not show

I found no frontier-model replication of the format-reasoning result in the material reviewed. The study does not show that constraint is harmful in general. It shows that, for some tasks and models, enforcing output format has cost accuracy.

Behavioural limits: prompt injection

Prompt injection success cannot be reduced to one rate. Published figures depend on the setup, the attack budget and whether the agent executes actions automatically.

  • arXiv 2511.15759 reports 73.2% average attack success on a baseline, falling to 8.7% with a full defence framework.
  • The AIShellJack study (arXiv 2509.22040) reports attack success for executing malicious commands on GitHub Copilot and Cursor ranging from 41% to 84%.

The authors of arXiv 2610.23254 warn that low injection success can hide agents that simply fail to finish tasks, which is why they separate “ignored” from “refused” outcomes.

Why the numbers diverge

Attack budget (one attempt versus many), auto-execution, benchmark construction and model generation all differ between studies. In my reading, these differences explain most of the spread. A single percentage without its setup cannot be compared with another.

Judge-based guardrails and sequencing

A 2025 preprint (arXiv 2512.23738) argues that existing guardrails rely on ad-hoc techniques and LLM validators, and lack formal guarantees for tool-call sequencing. This is a single preprint.

Practical controls and open questions

Practitioner guidance from promptessor and Wiz Academy converges on placing permissions outside the prompt: in the tool itself, the runtime, the identity system and OAuth scopes. This is vendor and blog consensus, not research. In practice, that means validating every argument server-side, enforcing authorisation in code, and treating even a well-formed call as possibly wrong or injected.

Three questions remain open. Does the format-reasoning effect hold for current frontier models? What are the current per-provider enforcement limits, which need confirming from primary documentation? And what is the measured grammar-compilation latency on current systems?

Sources

About the author

Written & reviewed by Abhay Patel

Founder, Publisher & Editor-in-Chief, FinVibe

Abhay Patel is a financial technology researcher and markets analyst with more than six years' experience in algorithmic trading, AI infrastructure in fintech and global macroeconomics. He checks FinVibe's analysis against primary sources — company filings, regulatory publications and official data — and is accountable for what is published here. More about the editor.

Contactabhay@kivons.com

35 views · Accept cookies in the banner below to help measure reading time.