<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg" -->

---
title: Spring AI Tutorial : 09 - Extend LLMs Capabilities using...
description: This tutorial episode demonstrates how to extend LLM capabilities using tool calling in Spring AI, building on a prior episode about RAG. It walks through...
canonical: https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling | daily.dev
og:description: This tutorial episode demonstrates how to extend LLM capabilities using tool calling in Spring AI, building on a prior episode about RAG. It walks through...
og:url: https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg
og:image: https://api.daily.dev/og/posts/kz9HKLXbG.png
og:image:alt: Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling

**[SivaLabs \(YouTube\)](https://daily.dev/sources/sivalabs-youtube)** · 20 min read · 0 upvotes · 0 comments

## Summary

This tutorial episode demonstrates how to extend LLM capabilities using tool calling in Spring AI, building on a prior episode about RAG. It walks through creating a help-desk style application backed by Ollama and a Qwen3 model that supports tool calling, defining tools with the @Tool annotation (both in plain classes and Spring beans), registering them with a ChatClient, and testing prompts that require the LLM to invoke tools such as fetching the current date, retrieving employee details, checking who is on leave for a given date, and applying for leave. Logs and reasoning traces show the model chaining multiple tool calls (e.g., getting today's date before querying leave records) to fulfill natural language requests.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=LJCnpsdhPlQ>

## Questions this post answers

### How do I let a Spring AI ChatClient know about custom tools like getting the current date or querying a database?

Annotate methods with @Tool (optionally naming them, otherwise the method name is used) and provide a clear description so the model can decide when to invoke it. Register instances of the classes containing these tools as defaultTools when building the ChatClient via its builder, whether the class is a plain object or a Spring bean.

_Developers wiring up agentic Spring AI apps can find more tool-calling walkthroughs on daily.dev._

### Why can't an LLM answer questions about today's date or real-time data without tool calling?

A language model only knows information up to its training cutoff, so it has no built-in notion of the current date or live data like who is on leave today. Providing a tool that returns the current date, alongside tools that query real-time data sources, lets the model retrieve this information and reason with it before responding.

_Anyone building real-time-aware AI assistants can track patterns like this for LLM tool use on daily.dev._

### Which local models support tool calling when using Ollama with Spring AI?

Models such as GPT-OSS and Qwen3 support tool calling when run through Ollama. Ollama's model listing lets you filter models by supported features, including tool calling, so you can pick a locally hosted model capable of invoking external functions defined in a Spring AI application.

_Developers picking local models for agentic Spring AI setups can follow ongoing tool-calling capability updates on daily.dev._

## Similar posts on daily.dev

- [Explainable AI Agents: Capture LLM Tool Call Reasoning with Spring AI](https://daily.dev/posts/explainable-ai-agents-capture-llm-tool-call-reasoning-with-spring-ai-jxsstkrzq) · Spring · 2 upvotes · 0 comments
- [Spring AI tutorial: Get started with Spring AI](https://daily.dev/posts/spring-ai-tutorial-get-started-with-spring-ai-phjfbwkwg) · InfoWorld · 0 upvotes · 0 comments
- [LLM Tool Call Reasoning Using Embabel Agentic AI Framework](https://daily.dev/posts/llm-tool-call-reasoning-using-embabel-agentic-ai-framework-uucsie3do) · Baeldung · 2 upvotes · 0 comments
- [Mastering LLM Tool Calling: The Complete Framework for Connecting Models to the Real World](https://daily.dev/posts/mastering-llm-tool-calling-the-complete-framework-for-connecting-models-to-the-real-world-g3xjopzgl) · Machine Learning Mastery · 4 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents), [#java](https://daily.dev/tags/java), [#ollama](https://daily.dev/tags/ollama), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling","url":"https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg"},"datePublished":"2026-09-27T07:26:39.991Z","dateModified":"2026-09-27T07:53:36.930Z","description":"This tutorial episode demonstrates how to extend LLM capabilities using tool calling in Spring AI, building on a prior episode about RAG. It walks through...","image":"https://i.ytimg.com/vi/LJCnpsdhPlQ/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/LJCnpsdhPlQ/sddefault.jpg","isAccessibleForFree":true,"articleSection":"SivaLabs (YouTube)","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"SivaLabs (YouTube)","logo":"https://media.daily.dev/image/upload/s--8ATVo4an--/f_auto,q_auto/v1790493987/logos/sivalabs-youtube?_a=BAMAMicg0","url":"https://daily.dev/sources/sivalabs-youtube"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,ai-agents,java,ollama,spring-ai","timeRequired":"PT20M","video":{"@type":"VideoObject","name":"Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling","description":"This tutorial episode demonstrates how to extend LLM capabilities using tool calling in Spring AI, building on a prior episode about RAG. It walks through...","thumbnailUrl":"https://i.ytimg.com/vi/LJCnpsdhPlQ/sddefault.jpg","uploadDate":"2026-09-27T07:26:39.991Z","duration":"PT20M","url":"https://api.daily.dev/r/kz9HKLXbG","embedUrl":"https://www.youtube.com/embed/LJCnpsdhPlQ"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"SivaLabs (YouTube)","item":"https://daily.dev/sources/sivalabs-youtube"},{"@type":"ListItem","position":3,"name":"Spring AI Tutorial : 09 - Extend LLMs Capabilities using Tool Calling"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/spring-ai-tutorial-09---extend-llms-capabilities-using-tool-calling-kz9hklxbg#faq","mainEntity":[{"@type":"Question","name":"How do I let a Spring AI ChatClient know about custom tools like getting the current date or querying a database?","acceptedAnswer":{"@type":"Answer","text":"Annotate methods with @Tool (optionally naming them, otherwise the method name is used) and provide a clear description so the model can decide when to invoke it. Register instances of the classes containing these tools as defaultTools when building the ChatClient via its builder, whether the class is a plain object or a Spring bean. Developers wiring up agentic Spring AI apps can find more tool-calling walkthroughs on daily.dev."}},{"@type":"Question","name":"Why can't an LLM answer questions about today's date or real-time data without tool calling?","acceptedAnswer":{"@type":"Answer","text":"A language model only knows information up to its training cutoff, so it has no built-in notion of the current date or live data like who is on leave today. Providing a tool that returns the current date, alongside tools that query real-time data sources, lets the model retrieve this information and reason with it before responding. Anyone building real-time-aware AI assistants can track patterns like this for LLM tool use on daily.dev."}},{"@type":"Question","name":"Which local models support tool calling when using Ollama with Spring AI?","acceptedAnswer":{"@type":"Answer","text":"Models such as GPT-OSS and Qwen3 support tool calling when run through Ollama. Ollama's model listing lets you filter models by supported features, including tool calling, so you can pick a locally hosted model capable of invoking external functions defined in a Spring AI application. Developers picking local models for agentic Spring AI setups can follow ongoing tool-calling capability updates on daily.dev."}}]}
```

