Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesTool Use in Claude: Based on Anthropic MaterialsYour First Simple Tool
A get_article tool call and its result fit together like two partsThe agent loop: reason, act, observeOne MCP connector linking files, Git and memory
Course

Tool Use in Claude: Based on Anthropic Materials

Module 1 · Tool Use Fundamentals
01Tool Use Overview02Your First Simple Tool
Module 2 · Structured Outputs and Tool Choice
03Structured JSON: Structured Outputs and Strict Tool Use04Controlling Tool Selection: tool_choice
Module 3 · Complete Workflow and Agentic Patterns
05Complete Workflow: tool_result and Data Return06Chatbot with Multiple Tools
Tool Use in Claude: Based on Anthropic Materials · Lesson 2

Your First Simple Tool

Build a calculator tool, define it with JSON Schema in strict mode (strict: true), pass it to Claude, find every tool_use block in the response, and send the result back as a tool_result.

25 min readUpdated Nov 9, 20263 questions in quizReady prompt included

The Problem: Long Arithmetic Without a Tool

A language model produces its answer token by token, so an exact result for long multiplication is not guaranteed without a tool. The classic example from Anthropic's course was recorded on Claude 3 Haiku (that model was retired from the API on April 20, 2026):

Prompt:       Multiply 1984135 by 9343116. Only respond with the result
Model answer: 18593367726060
Correct:      18538003464660
Off by about 55 billion

Current models may give a different answer. For calculations where every digit matters (money, taxes, units of measure), it is safer to hand the work to code.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
The Problem: Long Arithmetic Without a ToolSolution: Give Claude a CalculatorFull Cycle: Find tooluse, Call the Function, Return the ResultSystem Prompt Against Tool-Hungry ClaudePracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free