Organizations: University of Maryland, College Park · Carnegie Mellon University · Texas A&M University, College Station · University of Washington · Northeastern University · The University of Alabama · Stanford University
As large language models (LLMs) become more capable, financial agents need tools they can readily discover and use. Yet financial software is fragmented across libraries with different interfaces and conventions, making it difficult to build reliable agent workflows. We present Fin-RSI, a unified Python library of financial skills, checks, and self-improvement designed for LLM agents. It brings together tools for market analysis, forecasting, portfolio construction, and trading research through shared interfaces across models and agent frameworks. Agents can find suitable tools from natural-language requests, reuse tested implementations, and improve generated programs through checking and feedback. Developers can extend the library with new tools without rebuilding integrations for each model. Across 20 open-weight models on six trading-position tasks, tool discovery increased the proportion of episodes producing valid programs from 9.7% to 29.2%; for models with at least 14 billion parameters, it rose from 23.6% to 64.6%. We release the library and benchmark as a shared resource for the community and plan to expand its tools and task coverage as financial agents evolve.
Figures & tables
Figure 1: Fin-RSI at a glance. Left: the library, one piece per skill, rule card, check and self-improvement method; coloured pieces illustrate a selection. Middle: the agent is the user’s own model plus the pieces it picks or that route() names, used through MCP, tool schemas or Python. Right: a stock-strategy backtest illustrates buying and selling on historical prices and tracking returns; the curves are schematic. The agent writes a program and the checks run; a failure goes to the self-improvement method before the next attempt, within one budget for every method. Only the delivered program meets the hidden grader. The benchmark retains valid, accepted-but-wrong and rejected episodes. Appendix Figure 4 follows one episode.
Figure 2: Who gains from the library: valid episodes without it (F0), with its interface (F1), with route() (F4), or with the call named (F2). (a) Model-size groups: finding the call helps more than listing the interface (dashed: F0; line across F4: F2). (b) Every model, grouped by series and size in billions (shaded: 14B or more); F4 and F2 differ by at most 2 episodes per model. (c) Every rule and both variants: F2 and F4 beat F0 and F1 (grey dots: F1, F3).
Figure 3: How the library helps. (a) How episodes ended, by arm and model size; accepted but wrong programs passed every check and were still wrong. (b) The 360 F4 episodes: what route() named, whether the final program called positions() , and the outcome (band width: episodes). (c) Share of executed programs that failed each check (F0 open, F4 filled, F1–F3 grey). Small glyphs illustrate the failure types; the plotted rates come from the recorded programs.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 4: A one-line error, caught and repaired. (a) Amazon’s 20-for-1 split on 6 June 2022 reduces its raw quote by 95%. Reading raw quotes makes the momentum program short for 25 sessions, although the reference is long on 10 (shaded). (b) Three default checks test momentum_a . The split-equivalence failure returns its cause (shortened here) and the split-adjustment card. The agent repairs one line on its second of at most 3 runs. Only the benchmark receives the hidden grade. These verdicts hold across every synthetic seed and the real panel. (c) On synthetic prices, lagged inverse-volatility positions first change at k+1 and pass the timing check; positions read one row early change at k and fail.
Method
How it improves the program
NoImprove
One program, without feedback.
SelfDebug
Retry on execution errors until the program runs.
CheckFeedback
Retry with failed checks, causes and their rule cards.
Reflexion
Add a written reflection before each retry.
Team
Use a writer and one reviewer assigned to each rule family.
PlaybookLearning
Add learned entries on tool use, retrieval and experience to check feedback.
Appendix
Table 1: Seven ways to improve a program under the same prompt, judge and budget. These are adaptations of the cited approaches, using one library interface.
Method
qwen- coder- 32b
mistral- small- 24b
granite- 8b
olmo3- 7b
phi4- mini
all
NoImprove
1
3
0
0
0
4
SelfDebug
1
3
0
0
0
4
CheckFeedback
7
9
0
0
0
16
Reflexion
5
6
0
0
0
11
Team
2
5
0
0
0
7
Evolve
7
9
0
0
0
16
Appendix
Table 2: Valid episodes without the library, out of 18 per core model. Across all 20 models and 360 episodes per arm, Repeat was valid in 12, Check in 22 and Explain in 37.
Table 3: The 17 algorithms and their development split. Each has two task variants. Portfolio and signal tasks use positions() ; the other families use rolling() .
Figure 5: Valid episodes out of 18 for every model and arm. Darker cells indicate more valid episodes; blue marks models of 14B or more, magenta the smaller models. The bars show what route() selected in F4. The bottom row gives the overall percentages and correct selections out of 360. B denotes model size in billions of parameters.
The integration of Large Language Models (LLMs) into the financial domain is driving a paradigm shift from passive information retrieval to dynamic, agentic interaction. While general-purpose tool learning has witnessed a surge in benchmarks, the financial sector, characterized by high stakes, strict compliance, and rapid data volatility, remains critically underserved. Existing financial evaluations predominantly focus on static textual analysis or document-based QA, ignoring the complex reality of tool execution. Conversely, general tool benchmarks lack the domain-specific rigor required for finance, often relying on toy environments or a negligible number of financial APIs. To bridge this gap, we introduce FinToolBench, the first real-world, runnable benchmark dedicated to evaluating financial tool learning agents. Unlike prior works limited to a handful of mock tools, FinToolBench establishes a realistic ecosystem coupling 760 executable financial tools with 295 rigorous, tool-required queries. We propose a novel evaluation framework that goes beyond binary execution success, assessing agents on finance-critical dimensions: timeliness, intent type, and regulatory domain alignment. Furthermore, we present FATR, a finance-aware tool retrieval and reasoning baseline that enhances stability and compliance. By providing the first testbed for auditable, agentic financial execution, FinToolBench sets a new standard for trustworthy AI in finance. The tool manifest, execution environment, and evaluation code will be open-sourced to facilitate future research.
Jiaxuan Lu, Kong Wang, Yemin Wang +9
Shanghai AI Laboratory · Hunan University · Xiamen University +3
This paper introduces FinMCP-Bench, a novel benchmark for evaluating large language models (LLMs) in solving real-world financial problems through tool invocation of financial model context protocols. FinMCP-Bench contains 613 samples spanning 10 main scenarios and 33 sub-scenarios, featuring both real and synthetic user queries to ensure diversity and authenticity. It incorporates 65 real financial MCPs and three types of samples, single tool, multi-tool, and multi-turn, allowing evaluation of models across different levels of task complexity. Using this benchmark, we systematically assess a range of mainstream LLMs and propose metrics that explicitly measure tool invocation accuracy and reasoning capabilities. FinMCP-Bench provides a standardized, practical, and challenging testbed for advancing research on financial LLM agents.
Financial AI agents must do more than retrieve facts: investment workflows require correct quantitative execution, reliable use of procedural resources, and auditable structured outputs. We introduce FinSkillBench, an evaluation suite of 2,603 point in time episodes across 12 subtasks in portfolio construction, risk management, and fundamental analysis, with hidden regenerable ground truth and task specific deterministic verifiers. Executing 17,820 episodes across 9 models and 3 resource conditions, the paired analysis across 8 models shows that curated skill packages raise mean scores by +16.2 points (0.366 to 0.528), whereas skills generated within a single episode add only +0.5 points while consuming more tokens and turns. We then decompose the curated premium by granting human authored procedural documents and executable domain tools separately: documents alone add +5.6 points, tools alone add +19.5 points, and their combination is subadditive. The premium is strongly workflow dependent: executable tools dominate numerically intensive workflows, documentation matters more when procedural or output schema guidance is the bottleneck, and interpretive tasks benefit from both. The effects are sign stable across 10 scoring variants and cluster bootstrap analyses, and an independently implemented second harness reproduces the directional pattern while showing that effect magnitudes depend on how tools and data are exposed. Overall, a measured "skill premium" is a property of the full model, resource, and harness system rather than of the underlying model alone.
Jermyn Zhen Yong Bek, Zhuang Qiang Bok, Zhongtian Sun
Deep Insight Labs Singapore, Singapore · University of Kent Canterbury, United Kingdom · University of Cambridge Cambridge, United Kingdom