Tool use with the Messages API
by Anthropic (Claude Academy)
Make a working Claude tool loop reliable, fast and cheaper to run in production
Overview
Tool use with the Messages API is a free, self-paced course on Claude Academy, Anthropic's learning platform at academy.claude.com (formerly Anthropic Academy). It runs about 1.5 hours across nine lessons and a graded quiz, and it starts where most tool-calling tutorials stop: your tool loop already works, and now Claude picks the wrong tool, your backend rejects malformed calls, the interface freezes while a call streams in, or input tokens climb with every tool result. Each lesson is a short video about a fictional consultancy, Meridian, fixing one of those problems. The eight core lessons cover writing tool descriptions that Claude actually selects, strict tool use so inputs match your JSON schema, parallel tool calling to cut latency, streaming tool calls, Anthropic's code execution tool running on Files API uploads, web search limited to sites you trust, computer use for desktop software that has no API, and reducing the cost of tool-heavy workflows with prompt caching and programmatic tool calling. A final page points you to applying the fixes to your own tools. The material assumes Python SDK code and some JSON, and there is no code to write on the course page itself, so you get the most from it by trying each technique with your own Claude Console API key. Passing the quiz earns a completion badge, which is separate from Anthropic's paid certifications.
At a Glance
- Topic
- Agentic
- Level
- Intermediate
- Format
- Course
- Cost
- Free
- Duration
- ~1.5 hours, 9 lessons plus a graded quiz, self-paced
- Provider
- Anthropic (Claude Academy)
- Hands-on
- No
- Certificate
- Available
What You’ll Learn
- ✓Write tool names and descriptions that tell Claude clearly when each tool should be used
- ✓Turn on strict tool use so every tool input matches your declared JSON schema
- ✓Let Claude issue parallel tool calls in one response to cut end-to-end latency
- ✓Stream tool calls so your interface shows the chosen tool as soon as its name arrives
- ✓Use Anthropic's code execution tool so Claude runs the code it writes on Files API uploads
- ✓Limit the web search tool to sites you trust and use computer use on desktop apps without an API
- ✓Reduce input-token cost in tool-heavy workflows with prompt caching and programmatic tool calling
Highlights
- •Built around production failure modes such as the wrong tool being picked, rejected calls, frozen spinners and growing token counts, instead of a first hello-world tool call
- •Covers Anthropic's server-side tools (code execution, web search, computer use) alongside client-defined tools in one short course
- •Each video lesson fixes one concrete problem, so you can jump straight to the one you have
- •Listed in Sandlabs' October 31, 2026 Claude Academy guide under its Build with the API track for developers whose tool use already works
- •Free, with a completion badge for passing the graded quiz
Who It’s For
Best For
- ✓Developers with a working Claude tool loop who need it reliable in production
- ✓Agent builders dealing with latency, schema errors or rising token bills from tool results
- ✓Teams evaluating Anthropic's server-side tools before building their own equivalents
Prerequisites
- •Claude Platform 101, or experience hand-writing the Messages API tool loop yourself
- •Python SDK code and basic JSON Schema
- •A Claude Console API key to try the techniques; computer use also needs a containerized desktop and your own driver code
FAQ
What is Tool use with the Messages API?
A free Claude Academy course for developers whose Claude tool use already works but misbehaves in production. In short video lessons it covers tool descriptions Claude picks correctly, strict tool use, parallel and streaming tool calls, Anthropic's code execution, web search and computer use tools, and cutting token cost in tool-heavy agents.
Is Tool use with the Messages API free?
Tool use with the Messages API is free to access.
What level is Tool use with the Messages API for?
Tool use with the Messages API is aimed at a intermediate audience. Recommended background: Claude Platform 101, or experience hand-writing the Messages API tool loop yourself, Python SDK code and basic JSON Schema, A Claude Console API key to try the techniques; computer use also needs a containerized desktop and your own driver code.
How long does Tool use with the Messages API take?
Expect roughly ~1.5 hours, 9 lessons plus a graded quiz, self-paced. Most learners work through it at their own pace.
What will I learn from Tool use with the Messages API?
You'll learn: Write tool names and descriptions that tell Claude clearly when each tool should be used; Turn on strict tool use so every tool input matches your declared JSON schema; Let Claude issue parallel tool calls in one response to cut end-to-end latency; Stream tool calls so your interface shows the chosen tool as soon as its name arrives; Use Anthropic's code execution tool so Claude runs the code it writes on Files API uploads; Limit the web search tool to sites you trust and use computer use on desktop apps without an API; Reduce input-token cost in tool-heavy workflows with prompt caching and programmatic tool calling.
Topics
Sources
This page was written from 3 sources, 1 on domains other than academy.claude.com.