BioTool: A Comprehensive Tool-Calling Dataset for Enhancing Biomedical Capabilities of Large Language Models

Xin Gao, Ruiyi Zhang, Meixi Du, Peijia Qin, Pengtao Xie

TL;DR

BioTool is a new, human-verified dataset of 7,040 query-API pairs designed to teach Large Language Models (LLMs) how to use specialized biomedical databases like NCBI, Ensembl, and UniProt. By instruction-tuning a compact 4-billion-parameter model on BioTool, researchers outperformed frontier models like GPT-5.1 and Claude 4.5 Sonnet in tool-calling accuracy, drastically reducing hallucinations and knowledge gaps in complex biological tasks.

What Problem Does This Paper Address?

While LLMs excel at general-purpose language tasks, they frequently stumble in highly specialized scientific domains. In biomedicine, even human experts cannot deduce the function of a raw nucleotide sequence or find specific genetic linkages without querying external computational tools and databases.

When standard LLMs are asked these questions, they suffer from domain-specific hallucinations, imprecise generalizations, or outright knowledge gaps. Previous attempts to fix this relied on in-context learning (prompting the model with tool descriptions and examples). However, this approach is severely bottlenecked by context window limits and fails to capture the complex schemas, strict identifier formats, and parameter conventions required by primary biological repositories.

Figure 1: Comparison between answers generated by LLMs without tools and BIOTOOL-augmented LLMs for biomedical queries. LLMs without tools often hallucinate or produce imprecise answers (left), whereas BIOTOOL- augmented LLMs (right) generate API calls and retrieve critical information from biomedical databases, leading to higher-quality responses.

Methods

The authors developed a multi-stage pipeline to build BIOTOOL, moving from automated generation to rigorous filtering and human verification:

  1. Tool & Parameter Selection: The team selected 34 widely used tools comprising 124 API endpoints across NCBI, UniProt, and Ensembl. They manually curated biologically meaningful arguments (e.g., taxon IDs, gene symbols) to ensure realistic API calls.
  2. API Call Synthesis & Verification: Candidate API calls were randomly sampled and executed. The authors applied a novel heuristic filter to discard failed executions, empty responses, and overly redundant calls, leaving 3,829 unique, functional API calls.
  3. User Query Generation via CoT: Using OpenAI's o3 model with Chain-of-Thought (CoT) prompting, the system summarized the technical API responses into natural language descriptions, which were then used to generate realistic user queries. This ensured that the API data was necessary to answer the query.
  4. Informativeness Filtering & Human Refinement: Claude Haiku 4.5 acted as a judge to filter out vague or unrelated pairs. Finally, human bioinformatics experts reviewed and refined the remaining queries to ensure precise biological terminology.
Figure 2: The systematic workflow of BIOTOOL spans from automated dataset construction to downstream application. Panel (a) illustrates the multi-stage construction pipeline, which includes initial tool selection from primary databases, automated API call generation, and a rigorous filtering process involving execution checks, heuristic validation, and LLM-based informativeness assessment. Panel (b) depicts the inference-time application, where specialized API-calling models fine-tuned on BIOTOOL enable base LLMs to retrieve grounded observations and generate verifiable biological answers.

Datasets

The paper introduces BIOTOOL, an instruction fine-tuning dataset containing 7,040 high-quality query-API call pairs. The dataset is highly balanced across its three primary database sources: UniProt (33.9%), Ensembl (33.5%), and NCBI (32.6%). It spans multiple critical biological subdomains, heavily featuring genomics (40.8%) and proteomics (28.2%), alongside variation, evolution, literature, and general biology.

Figure 3: Distribution analysis of the 7,040 samples within BIOTOOL across four dimensions. Panel (a) shows the distribution across source databases. Panel (b) illustrates the distribution of samples by tool type. Panel (c) presents the distribution across various biological domains. Panel (d) delineates the distribution of user queries across the 34 distinct biological tools.

Key Insights and Ideas

  • Small Models, Big Domain Expertise: The most significant takeaway is that massive parameter scale isn't necessary for specialized tool use. A 4B parameter model explicitly trained on high-density domain data can easily beat a closed 100B+ parameter model relying on prompts.
  • The Literal Translation Trap: Proprietary models fail at biological tool-calling because they try to pass literal natural language terms from the query (e.g., passing species="goat" or population_name="NextGen") instead of mapping them to strict database identifiers (like species="capra_hircus" or population_name="NextGen:All"). Fine-tuning successfully teaches the model this implicit mapping.
  • Exact Match vs. Functional Success: There is a massive divergence between an Exact Match (EM) of the API string and API Success (AS). While frontier models can sometimes guess a functional API call structure (high AS), their exact parameter matching (EM) is incredibly low, leading to subtly wrong biological data retrieval.

Key Results

The authors evaluated several open-source models (fine-tuned on BioTool) against frontier proprietary models using a specialized BioTool score (which measures the semantic embedding similarity of the retrieved biological facts to the ground truth).

  • API Calling Performance: The BioTool-fine-tuned Qwen3-4B-Instruct model achieved the highest overall BioTool score of 93.6, outperforming the strongest proprietary model, Claude 4.5 Sonnet (81.4), by 15.0% and GPT-5.1 (55.4) by 68.9%.
  • Syntax Fidelity: In Exact Match (EM) testing on the NCBI subset, GPT-5.1 scored a flat 0.0% due to strict identifier constraints, while the fine-tuned Qwen3-4B-Instruct achieved 66.7%.
  • Downstream Answer Quality: In side-by-side human expert evaluations, a GPT-5.1 model augmented with the BioTool-fine-tuned Qwen3-4B tool caller achieved an 84.5% adjusted win rate over the base GPT-5.1 model operating without tools.

Limitations and Future Work

Currently, BioTool is strictly limited to one-hop tool calling. It assumes a single query can be answered with a single API interaction. Real-world biomedical workflows, however, are highly iterative and frequently require multi-hop reasoning or sequential tool chaining (e.g., using BLAST to find a sequence ID, then querying Ensembl for its genomic coordinates).

Additionally, the authors did not fine-tune an end-to-end autonomous agent due to the extreme context lengths of raw biological data. The authors note that future work must explore long-context architectures to handle multi-step reasoning trajectories over raw biological outputs.

Summary updated

BibTeX
@inproceedings{gao2026biotool,
  author = {Xin Gao and Ruiyi Zhang and Meixi Du and Peijia Qin and Pengtao Xie},
  title = {{BioTool: A Comprehensive Tool-Calling Dataset for Enhancing Biomedical Capabilities of Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.2138},
}
Figure