Skip to main content
QUICK REVIEW

[Paper Review] Schema First Tool APIs for LLM Agents: A Controlled Study of Tool Misuse, Recovery, and Budgeted Performance

Akshey Sigdel, Rista Baral|arXiv (Cornell University)|Mar 12, 2026
Software Engineering ResearchComputer Science0 citations
TL;DR

The paper conducts a controlled study comparing free-form prose, JSON Schema, and JSON Schema with structured diagnostics for tool interfaces in LLM agents, showing schema forms reduce interface misuse but do not improve semantic task success under strict budgets in a deterministic sandbox.

ABSTRACT

Tool use has become central to modern LLM agents, yet interface design is rarely isolated as an experimental variable. This paper studies whether schema based tool contracts and structured validation diagnostics improve reliability under strict interaction budgets. We evaluate three conditions that preserve identical tool semantics and information content: free form documentation, JSON Schema specifications, and JSON Schema with structured diagnostics. We implement a deterministic software engineering sandbox with logs, metrics, configurations, and repository tasks, and evaluate a fully crossed pilot with one open local model, three seeds, three interface conditions, and four budgets. We report end task success, interface misuse, execution failures, semantic misuse, recovery behavior, and overhead. In this pilot, success remains zero across conditions, while schema conditions reduce interface misuse but not semantic misuse. The evidence supports a precise interpretation that interface formalization improves contract adherence, but semantic action quality and timeout sensitive tasks remain dominant bottlenecks under constrained local inference.

Motivation & Objective

  • Isolate how tool interface representation and validation feedback affect reliability of LLM agents under strict interaction budgets.
  • Compare three interface conditions (free-form prose, JSON Schema, JSON Schema with diagnostics) while keeping tool semantics constant.
  • Quantify how schema rigor impacts interface misuse, recovery, semantic misuse, and token overhead.
  • Provide a reproducible sandbox and evaluation protocol for diagnosing interface-driven reliability.
  • Characterize where interface rigor helps and where semantic planning limits remain dominant.

Proposed method

  • Develop a deterministic software engineering sandbox with logs, metrics, configurations, and a repository of tasks.
  • Define canonical contracts for tools and generate both prose and JSON Schema representations from the same contract.
  • Operate an agent under a fixed budget with an explicit error feedback channel and distinguish interface validity from execution validity.
  • Isolate interface effects by comparing three conditions A (free-form), B (JSON Schema), and C (JSON Schema with diagnostics).
  • Measure task success, interface misuse, execution failures, recovery, semantic misuse, and overhead across budgets and seeds.

Experimental results

Research questions

  • RQ1Does schema-first specification reduce interface misuse compared to free-form documentation?
  • RQ2Do structured diagnostics improve recovery after invalid calls versus schemas alone?
  • RQ3How does end-task success vary with budget across interface conditions?
  • RQ4Do schema-based interfaces influence semantic misuse or only interface violations?
  • RQ5What is the cost (token overhead) of using schema-based interfaces under constrained budgets?

Key findings

  • Schema-first interfaces reduce interface misuse relative to prose documentation.
  • Structured diagnostics increase recovery probability after invalid calls but do not reduce semantic misuse.
  • End-task success is zero across all conditions and budgets in the pilot, indicating semantic action quality and timeout sensitivity dominate under constraint.
  • Execution failures occur mainly in the prose condition, while schema conditions show zero execution failures in the pilot.
  • Increasing budgets raises misuse counts and does not translate into success gains, suggesting recovery policy and planning limits dominate under local inference.
  • The study provides a methodological, diagnostic contribution with a reproducible sandbox and preregistered protocol.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.