spring ai

Spring AI: Agents & Tools

Give the application the power to act. Implement Tool Calling with @Tool and Model Context Protocol (MCP) to build agents that act in Java.

Expected Outcome

The ability to use @Tool and MCP to safely expose Java logic and build agents that make decisions and perform actions.

Target Audience

Java developers looking to move from passive chats to active services that can use Java methods as tools in their systems.

Prerequisites

Experience with Spring AI equivalent to 'Spring AI Jumpstart: Professional' is required to handle Tool Calling logic.

Curriculum & Highlights

→ Tool Calling & @Tool Annotation
→ Model Context Protocol (MCP)
→ Multi-step Agent Reasoning
→ Declarative Tool Definitions
→ Tool Metadata & @ToolParam
→ ChatClient Tool Integration
→ Bean-based Tool Resolution
→ Agent State & Feedback Loops

Challenges we address

"How is the @Tool annotation used to expose Java code to a language model?"

"How are standardized tool interfaces created with Model Context Protocol (MCP) and @McpTool?"

"How are complex flows handled where the AI needs to invoke multiple different tools to solve a task?"

Detailed Description
A standard chat AI is limited to its training data, but agents can actively interact with their surrounding systems. Using Tool Calling and the Model Context Protocol (MCP), the AI model gains the ability to independently choose and invoke the right Java method to retrieve real-time data or execute changes within the application. This workshop teaches the foundations of creating these actionable agents in Spring AI 2.1 through Active Learning. The focus is on the modern, declarative way of working with AI tools through annotations. The goal is to provide the team with a clear structure for bridging the gap between the language model's reasoning and the existing codebase in a way that is both secure and maintainable. It explores how to define tools with @Tool and @ToolParam on Java methods, and how Model Context Protocol (MCP) is used with @McpTool for standardized tool integration. During the day, agents capable of multi-step reasoning are built, where the model independently decides when it needs to invoke a tool to complete a task. The importance of clear method descriptions is also addressed, as these instructions govern the model's ability to choose the right tool at the right time. Actlea's core philosophy is that the power of AI lies in its ability to act, but responsibility always remains with the code. Experience shows that combining @Tool and MCP is the key to making AI integrations clear and scalable for Java developers. A key insight for modern teams is that agents do not replace logic—they use it. This workshop provides the foundation for transforming AI from an advisor into an active participant in business processes on the Java platform.
Recommendation & Next Steps

Empower the agents with the company's own data by moving on to: 'Enterprise RAG with Spring AI'. →

Format Workshop
Duration 1 day
Level Professional
Instructor Andreas Olsson
Price per group $2,900

Standard price per group (up to 12 participants) for remote delivery. Additional costs apply for onsite delivery.

Tech Stack
AI Agents MCP Tool Calling @Tool Spring AI 2.1 Java
Andreas Olsson

Your Instructor

Andreas Olsson

Expertise through Active Learning

Java and the Spring Framework have been my core focus for over 20 years. Today, my mission is primarily to help organizations step into the future by integrating intelligent agents and AI-driven features into modern Java systems.

Actlea stands for Active Learning – the philosophy that programming is best learned by writing code, not by watching slides. My workshops focus on intensive, hands-on exercises designed to solve real-world problems.

I deliver proven training concepts globally across all timezones. While I specialize in remote delivery, I love to travel for onsite workshops. My modules are ready for immediate impact but can be tailored to your team's specific requirements.

Connect on LinkedIn

Enterprise teams trained by Actlea

Academic Work
Handelsbanken
Scania
Swedbank
CGI
SEB
Participant Reviews

What past participants say

Read about the pedagogical approach, the hands-on labs, and the impact on daily work.

Related Training

spring ai Professional

Enterprise RAG with Spring AI

1 day
Group Rate: $2,900

Build secure RAG systems in Spring AI 2.1. Learn to import data from databases and documents via vectors and similarity search.

  • RAG Architecture & Patterns
  • VectorStore & Embedding Models
  • Data Import & Vectorization
java Professional

Java Foundations: Fast-track

3 days
Group Rate: On Request

Intensive Java onboarding for experienced developers. Master object-oriented concepts, Data-Oriented Programming (Java 21+), and functional data streams.

  • Core Java & OOP Principles
  • Data-Oriented Programming
  • Virtual Threads (Project Loom)
java Foundational

Java Jumpstart: Essentials

1 day
Group Rate: $2,900

Master Java's core: from the JVM and encapsulation to deep object-orientation, Collections, and error handling.

  • Classes, Objects & Encapsulation
  • Polymorphism & Inheritance
  • Interfaces & Clean Code
Take the next step

Ready to elevate your
Team's expertise?

Book a single workshop, a multi-day course, or a complete training package. The programs are built on proven standard modules of high technical quality, designed to be deployed immediately without lengthy preparation.

  • ✔
    Expert-led training: Designed for professional development teams.
  • ✔
    Standardized quality: Proven modules ready for immediate delivery.
  • ✔
    Flexible formats: Execution is handled remote or onsite.

Send an inquiry to discuss availability and setup, completely without sales pressure.

Prefer connecting directly on LinkedIn? Skip the form:

Connect & Message on LinkedIn →