In short.
This Anthropic tutorial guides developers through building a Claude agent that calls application functions, but it provides a simulated calendar rather than a working calendar integration. Its main value is making the message protocol visible before introducing SDK helpers that manage the loop. Examples cover Python, TypeScript, C#, Go, Java, PHP and Ruby. Production controls, dependency compatibility and actual behavior remain unassessed; none of the examples was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected documentation page at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/build-a-tool-using-agent.md], including all five rings, seven language variants, explanatory notices, illustrative outputs and next-step link labels. Linked pages and their contents are excluded. Source revision: sha256:cc3c1c7d5f39ab37177fe5ecef780fcf5afe10fae284bed8bfa79354ea870df9. No code was executed, and real calendar operations, API compatibility, costs and redistribution rights remain unassessed or unknown.
The overview
Resource identity
Tutorial: Build a tool-using agent is a page in Anthropic's Claude developer documentation. The selected source is [https://platform.claude.com/docs/en/agents-and-tools/tool-use/build-a-tool-using-agent.md].
The page organizes a calendar example into five standalone stages, called rings. Each introduces a concept before the final stage replaces the manual orchestration with an SDK tool runner.
Practical assessment
This is useful for understanding what happens between a model requesting a tool and an application returning the result. Keeping the same calendar scenario makes changes to the orchestration easier to follow.
Treat it as an instructional starting point for application code. Although the introduction describes a route toward a production-ready loop, the examples do not establish production readiness: calendar operations are mocked and several operational controls are absent.
Who it suits
Developers new to model tool calling can follow the heavily commented first stage and then add concepts gradually. Some familiarity with one supported language, API requests and structured data is needed.
Experienced developers can use the manual examples to understand message ordering, tool-result correlation and SDK abstractions before integrating their own functions. People seeking a ready-to-use calendar assistant would still need to build the calendar connection.
What it teaches
The five stages cover one tool call, repeated calls with conversation history, two tools with multiple requests in a response, tool failures and SDK-managed orchestration. The create_calendar_event schema includes required title and start/end fields, an optional attendee array and an optional nested recurrence object.
Later stages introduce list_calendar_events and return every tool result together in one user message. This supports multiple model-requested calls, but the displayed manual handlers execute sequentially; these examples do not demonstrate concurrent execution or a speed improvement.
Using it
Requirements
Following an example requires a compatible language runtime, the corresponding Anthropic SDK, network access to the API and an ANTHROPIC_API_KEY environment variable. The TypeScript tool-runner example also imports Zod.
The examples name claude-opus-5-5 or its SDK constant. Model availability, account access, minimum runtime versions and compatible SDK releases are not established by the page. It supplies no pinned dependency set.
How the agent works
The application sends tool descriptions and input schemas with a user message. Claude can respond with a tool_use block containing a tool name, structured arguments and an identifier. Application code executes the handler and returns a tool_result whose tool_use_id matches that identifier.
The manual loop preserves the assistant response and tool results in conversation history, then makes another API request while stop_reason equals tool_use. Failures are returned with is_error set to true. The final stage delegates orchestration, result formatting, error wrapping and conversation management to beta SDK helpers.
Getting started
Choose one language and begin with its first ring after installing the relevant dependencies and configuring API access. The page presents each ring as a standalone program, so earlier examples do not need to be combined into one file.
Keep the simulated handlers while learning the protocol. A real calendar integration requires replacing them with authenticated calendar operations and adding validation and error handling appropriate to that service. Installation commands and calendar authentication instructions are outside this page.
Representative examples
Ring 3 asks Claude to inspect the calendar for March 30, 2026 and schedule a one-hour planning session without conflicts. The listing handler always returns a meeting from 14:00 to 15:00, and the creation handler returns a simulated success. The displayed answer describes scheduling from 10:00 to 11:00; it is illustrative output, not evidence of a calendar write.
Ring 4 requests an event with 15 attendees while its handler rejects more than 10. This demonstrates returning a tool error to the model. The ten-person limit belongs to the example code and does not establish a restriction of any calendar provider.
Assessment & evidence
Limits and implementation gaps
The calendar handlers return fixed event identifiers and sample events. They do not persist appointments, implement recurrence or independently enforce conflict avoidance. Authentication, time-zone handling and real calendar behavior remain application work.
The manual loops stop whenever the response is no longer tool_use; they do not explicitly distinguish every other stop reason from successful completion. They also show no explicit turn limit, calendar-write approval, idempotency protection or comprehensive input validation.
The language variants differ in detail. For example, Ring 5 uses a generic dictionary for Python recurrence, while its Java tool class omits recurrence. Several Java handlers also construct JSON through string concatenation, which needs safe serialization for titles containing quotes or backslashes. These are observations from the displayed code, not execution results.
Why the teaching approach helps
The progression connects each added behavior to a visible code change: repeat requests, retain history, process all tool blocks, return failures and finally use a runner. This makes the abstraction easier to understand than starting directly with a helper.
The realistic schema introduces nested data and optional fields without requiring calendar-service setup. That simplicity supports learning the protocol, while leaving integration correctness and operational reliability unresolved.
Approaches to compare
The page itself offers two implementation approaches. Rings 2 through 4 expose the conversation loop for developers who need to understand or customize orchestration. Ring 5 places more of that work inside the SDK runner.
The page links to dedicated references for tool definitions, parallel tool use, error handling, tool runners and troubleshooting. Those pages are outside the selected scope. It provides no comparative evidence about other agent frameworks or model providers.
Evidence and confidence
The complete tutorial contains explanations, code in seven languages and illustrative expected outputs. It directly supports describing the protocol and the structure of the examples.
None of the programs was executed. Compilation, dependency compatibility, actual model responses, error-recovery success, latency and reliability were not assessed. The displayed success messages do not establish that any real calendar operation occurred.
Access & freshness
Costs and usage
The page gives no API prices, example-run costs, billing requirements or calendar-service charges. Total cost is unknown.
Requests set max_tokens to 1024, but that is a per-response setting rather than a spending limit for the whole task. Manual loops make additional requests after tool results and resend the accumulated history. Their total usage depends on the conversation and number of iterations; no explicit iteration budget is shown.
Reuse and licensing
The selected page supplies no explicit documentation licence, sample-code licence or redistribution terms. Permission to repackage the page or its examples is therefore unknown from this evidence.
The imported SDKs and other dependencies are named, but their licence terms are not included. Dependency licensing is not assessed here.
Version and freshness limits
The available page was captured on November 24, 2026 at 14:26:19 UTC. It includes no publication date, update date or pinned SDK release.
The code uses beta tool-runner interfaces and references claude-opus-5-5. Compatibility with a particular installed SDK and current model access is unknown. The model identifier alone does not establish when the page was authored or updated.
Suggested next steps
Use Ring 1 to understand the request/result exchange, then study Rings 3 and 4 for multiple requests and tool failures. Compare the manual loop with Ring 5 before choosing how much orchestration to delegate to the SDK.
Before adapting the example to real appointments, confirm dependency and model compatibility, implement the calendar connection, validate dates and time zones, serialize results safely and add execution limits and duplicate-write protection. Evaluate failure paths and handling of stop reasons other than tool_use before relying on its completion messages.
