JTPRO: A Joint Tool-Prompt Reflective Optimization Framework for Language Agents

Sandip Ghoshal, Anshul Mittal, Jyotika Singh, Miguel Ballesteros, Weiyi Sun +7 more
4/20/2026
cs.AIcs.SE

No confident code implementation found for this paper.

Abstract

Large language model (LLM) agents augmented with external tools often struggle as number of tools grow large and become domain-specific. In such settings, ambiguous tool descriptions and under-specified agent instructions frequently lead to tool mis-selection and incorrect slot/value instantiation.

Show full abstract

We hypothesize that this is due to two root causes: generic, one-size-fits-all prompts that ignore tool-specific nuances, and underspecified tool schemas that lack clear guidance on when and how to use each tool and how to format its parameters. We introduce Joint Tool-Prompt Reflective Optimization (JTPRO), a framework for improving tool-calling reliability in trace-supervised settings by iteratively using rollout-driven reflection to co-optimize global instructions and per-tool schema/argument descriptions for accurate tool selection and argument instantiation in large tool inventories. JTPRO is designed to preserve only tool-local cues needed for correct disambiguation and slot filling. We evaluate JTPRO across multi-tool benchmarks, which account for different number of tools using three metrics: Tool Selection Accuracy (TSA), Slot Filling Accuracy(SFA), and Overall Success Rate(OSR) (correct tool + correct slots + correct values). JTPRO consistently outperforms strong baselines, including CoT-style agents, and reflective prompt optimizers such as GEPA by 5%-20% (relative) on OSR. Ablations show that joint optimization of instructions and tool schemas is more effective and robust than optimizing either component in isolation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ghoshal2026jtpro,
  title  = {JTPRO: A Joint Tool-Prompt Reflective Optimization Framework for Language Agents},
  author = {Sandip Ghoshal and Anshul Mittal and Jyotika Singh and Miguel Ballesteros and Weiyi Sun and Fang Tu and Shailender Singh and Yassine Benajiba and Fahad Shah and Sujeeth Bharadwaj and Sujith Ravi and Dan Roth},
  year   = {2026},
  eprint = {2604.19821},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19821v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.19821.svg)](https://codeofpaper.com/paper/2604.19821)

Discussion