Task Statement 2.2·Domain 2 — 18% of exam
Structured Error Responses
Implement structured error responses for MCP tools
Official Exam Guide Objectives
The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.
Task 2.2: Implement structured error responses for MCP tools.
Knowledge of
- The MCP isError flag pattern for communicating tool failures back to the agent
- The distinction between transient errors (timeouts, service unavailability), validation errors (invalid input), business errors (policy violations), and permission errors
- Why uniform error responses (generic "Operation failed") prevent the agent from making appropriate recovery decisions
- The difference between retryable and non-retryable errors, and how returning structured metadata prevents wasted retry attempts
Skills in
- Returning structured error metadata including errorCategory (transient/validation/permission), isRetryable boolean, and human-readable descriptions
- Including retriable: false flags and customer-friendly explanations for business rule violations so the agent can communicate appropriately
- Implementing local error recovery within subagents for transient failures, propagating to the coordinator only errors that cannot be resolved locally along with partial results and what was attempted
- Distinguishing between access failures (needing retry decisions) and valid empty results (representing successful queries with no matches)
What You Need to Know
What a failing MCP tool hands back determines whether the agent can do anything sensible about it. "Operation failed" tells a model nothing it can act on: not what broke, not whether another attempt would help, not what to try instead.
The protocol provides isError for exactly this. Setting it marks the response as a failure rather than a result, which is the difference between an agent reasoning about recovery and an agent treating the error text as the answer it asked for.
An Error Is an Input to a Decision
Design every failure response so that the agent's next action can be read off it. On receiving a tool response that is not a plain success, the agent has exactly five possible moves, and each belongs to one kind of response:
| What came back | The agent's move |
|---|---|
| Transient error | Send the same call again, after a pause |
| Validation error | Correct the arguments, then call again |
| Business error | Explain the outcome to the user and take the permitted alternative (often escalation) |
| Permission error | Escalate, or obtain authorisation; never repeat the identical call |
| Empty result from a query that ran | Report "nothing found". This is not an error at all |
A generic "Operation failed" makes all five equally plausible, so the agent guesses, usually by retrying, which spends turns and still fails. The test of a good error is that recovery needs no guessing: if the recovery logic has to guess, the error is underspecified.
isError is defined by MCP. The metadata fields the exam guide names (errorCategory, isRetryable and a human-readable description) are not part of the MCP specification; they are an application convention that you carry inside the result. The examples below put them in structuredContent, the result's field for machine-readable data, beside a short text block; a real server would also serialise the same JSON into the text block, so that every client and the model can read it (see the Deep Dive). Only the fields that matter for error handling are shown.
The Four Error Categories
Every tool failure falls into one of four categories. Each one calls for a different response, and telling them apart is only possible if the response says which it is.
1. Transient Errors Timeouts, service unavailability, rate limits. Nothing is wrong with the request; the system on the other end is briefly out of reach. Recovery: wait, then send the same call again.
{
"isError": true,
"content": [{
"type": "text",
"text": "Service temporarily unavailable"
}],
"structuredContent": {
"errorCategory": "transient",
"isRetryable": true,
"description": "The order database is under load and refused the connection. Nothing is wrong with this request; sending it again shortly should work."
}
}2. Validation Errors Malformed input, absent required fields, values outside the permitted range. Here the request itself is at fault. Recovery: correct the input, then send it again.
{
"isError": true,
"content": [{
"type": "text",
"text": "Invalid order ID format"
}],
"structuredContent": {
"errorCategory": "validation",
"isRetryable": true,
"description": "Order IDs take the form #NNNNN, for example #12345. This call supplied 'order-abc'. Reformat the identifier and send it again."
}
}A good validation description names the expected format and, where the agent cannot know the right value, the step that would produce it ("call get_customer, then use one of the returned order IDs").
3. Business Errors A policy violation, a limit exceeded, a rule that forbids what was asked. The call is well-formed and the system understood it perfectly — and refused. Recovery: do NOT retry, because the rule will apply identically next time. The agent needs a different route entirely.
{
"isError": true,
"content": [{
"type": "text",
"text": "Refund exceeds policy limit"
}],
"structuredContent": {
"errorCategory": "business",
"isRetryable": false,
"description": "£750 is above the £500 ceiling for automatic refunds, so this one needs a manager to approve it. Hand the refund details to a human agent."
}
}isRetryable: false is doing the important work there. A policy does not relent on the second attempt, so anything short of a different path — escalation, usually — just burns calls arriving at the same refusal. Writing the description in terms a customer could hear also lets the agent explain the outcome rather than reporting an error code. The exam guide's own preparation exercise states the expected behaviour as "retrying transient errors, explaining business errors to the user".
4. Permission Errors Access denied, credentials insufficient, authorisation refused. The obstacle is who is asking rather than what is being asked. Recovery: escalate, or come back with different credentials.
{
"isError": true,
"content": [{
"type": "text",
"text": "Access denied"
}],
"structuredContent": {
"errorCategory": "permission",
"isRetryable": false,
"description": "Financial records are outside what this service account may read. Pass the request to a senior agent whose access covers the financial system."
}
}Recognising the category from a stem
| Category | Typical wording in a question |
|---|---|
| Transient | Timeout, 503, connection reset, rate limit, database deadlock, "service unavailable" |
| Validation | Malformed ID, missing required field, value out of range, wrong date format |
| Business | Return window expired, refund above the policy limit, account frozen, duplicate refund |
| Permission | Not authenticated, insufficient scope, access denied, a record belonging to another tenant |
The category and the flag must agree. A payload that says transient with isRetryable: false contradicts itself, and the agent can only guess which half to believe.
How the guide words it
The guide's two skill bullets spell the flag two ways, isRetryable and retriable: false. They are the same idea: a boolean saying whether trying again is worthwhile. Its errorCategory example lists three values (transient/validation/permission), while its knowledge bullet names four kinds of error, including business errors. Learn all four, and do not read anything into the spelling of the flag in an answer option.
What isRetryable Really Signals
The flag answers one narrow question: could any retry ever succeed? It does not claim the identical call will work. Transient and validation errors both carry isRetryable: true and reach success by different routes — the transient one by resending unchanged once the service recovers, the validation one only after the agent repairs the input, turning order-abc into #12345. Business and permission errors share isRetryable: false for the complementary reason: a rule that blocks the request blocks it every time, and a credential problem is solved by a different principal rather than a different wording. So read isRetryable for whether to try again at all, and errorCategory for what trying again would have to involve — resend, self-correct, escalate, or route around.
Retryable doesn't mean resend the exact same call, step 1: Transient — timeout, rate limit — retry, unchanged
The validation flag is a convention, not a guide fact
The exam guide names the boolean and the categories but never says which value a validation error carries. This lesson uses "could a further attempt succeed", which gives true. Some teams define the flag more narrowly, as "would the identical call succeed", and so set false on validation errors, relying on the description to say what a corrected call looks like. Both conventions produce the same behaviour, and the behaviour is what to answer with: a validation error is recovered by correcting the input and calling again; it is never resent unchanged, and it is not escalated while the agent can still fix it. Whichever convention a server uses, the agent should branch on errorCategory as well as the flag. Transient (retry) and business (do not retry) are not in dispute.
Access Failure vs Valid Empty Result
Of everything in this domain, this is the distinction to nail. The guide lists it as a skill under both this task statement and Task 5.3.
Access failure: the query never ran. Something timed out, authentication was refused, the service was unreachable. Whether the data exists is unknown, because nothing got far enough to look.
Valid empty result: the query ran and the answer is nothing. The system was reached, the search executed, and no record matched. Retrying repeats a successful operation to obtain the same correct answer.
Blur the two and recovery logic stops working. Here's how that plays out:
A tool returns an empty array after a customer lookup. The agent retries 3 times, then escalates to a human. Analysis reveals the customer's account simply does not exist.
Nothing malfunctioned. The lookup worked, found no such customer, and reported that accurately. What went wrong is that "reached the database, no match" and "never reached the database" arrived looking identical, so the agent applied its failure handling to a success — three wasted calls and a human pulled in to confirm an answer it already had.
The confusion runs in both directions, and each has its own cost:
| Confusion | Consequence |
|---|---|
| An empty result reported as an error | The agent retries a query that already succeeded, then tells the customer the system is broken when the honest answer is "there are none" |
| A failure reported as an empty result | The agent concludes that nothing exists and proceeds confidently on missing data; the failure is invisible to everything downstream |
So shape the responses to make the two unmistakable: an empty answer from a query that ran should share no surface with a query that never ran at all. Echoing the query that was run in the empty result (which customer, which filter) lets the agent state precisely what was searched.
// Valid empty result — NOT an error
{
"isError": false,
"content": [{
"type": "text",
"text": "The search ran and matched nothing for 'john@example.com'. No such customer exists — this is an answer, not a failure."
}],
"structuredContent": { "resultCount": 0, "query": { "email": "john@example.com" } }
}
// Access failure — IS an error
{
"isError": true,
"content": [{
"type": "text",
"text": "Could not reach customer database"
}],
"structuredContent": {
"errorCategory": "transient",
"isRetryable": true,
"description": "The customer database did not answer within 5 seconds, so the search never ran. Whether a match exists is still unknown."
}
}An error is not an empty answer — say which one this is, step 1: Scenario A: the database is unreachable. Scenario B: it searched and found nothing.
A Fuller Error Payload: Beyond the Guide's Three Fields
The guide asks for a category, a retryable flag and a human-readable description, plus "customer-friendly explanations" for business rule violations. Production payloads often add a few fields. None of the names below comes from the guide or from MCP; treat them as one reasonable design, not as exam vocabulary.
| Field | What it adds |
|---|---|
customerMessage | Text that is safe to say to the end user as it stands, separate from the model-facing description |
errorCode | A stable machine code such as RETURN_WINDOW_EXPIRED, for code and dashboards to branch on |
retryAfterSeconds | For transient errors, how long to wait before the next attempt |
details | Specifics the recovery needs: the expected formats, or the candidates when a lookup matched several records, so the agent asks the user for another identifier instead of guessing |
{
"errorCategory": "business",
"errorCode": "RETURN_WINDOW_EXPIRED",
"isRetryable": false,
"description": "Return window closed 2026-08-04 (delivered 2026-07-05, 30-day policy returns.standard.30d). A return cannot be created. Exceptions need human approval via escalate_to_human.",
"customerMessage": "This order was delivered on 5 July, and our 30-day return window closed on 4 August. I can ask a specialist to review whether an exception applies."
}The reason to keep the customer-facing text in its own field: the model-facing description carries internal policy identifiers and system detail that should not be read out to a customer, while the customer-facing text must be accurate and free of internals. With one merged message the model has to paraphrase, and paraphrase is where policy detail gets mangled. Note that the customer text also names the alternative path, a review for an exception. This is the guide's "customer-friendly explanations for business rule violations so the agent can communicate appropriately" made concrete.
Error Propagation in Multi-Agent Systems
Across several agents, the governing principle is that failures are handled as low down as possible and only travel upward when they cannot be:
- Subagents implement local recovery for transient failures. A search that times out is retried by the search subagent, without the coordinator ever learning it happened.
- Only propagate errors that cannot be resolved locally. Once local recovery is exhausted, the failure goes up — at that point it is genuinely the coordinator's decision.
- Include partial results and what was attempted. Bare failure is not enough to decide with: "I searched 3 of 5 sources successfully. Sources 4 and 5 timed out. Here are partial results from the 3 successful sources."
What a propagated error carries
Task 2.2 names two things that travel with a propagated error: partial results and what was attempted. Task 5.3 completes the list as "failure type, attempted query, partial results, alternative approaches". Each element answers a question the coordinator would otherwise have to guess at:
| Element | Why the coordinator needs it |
|---|---|
| Failure type | To know the class of problem: wait, correct, or escalate |
| What was attempted | So that it does not issue the identical call again |
| Partial results | So that work already done is not thrown away |
| Alternatives | So that it has options to choose between |
With those in hand the coordinator can proceed on the partial results and mark the gap in coverage, delegate again with a corrected or narrower query, or escalate when the subagent cannot obtain access.
Local recovery, then structured propagation
The sketch below shows the pattern. search stands for any function that queries one source, and found_so_far holds the findings already gathered from other sources.
import time
def search_source(search, query, found_so_far, attempts=3):
for attempt in range(attempts):
if attempt:
time.sleep(2 ** attempt) # back off before each further try
try:
return {"status": "ok", "findings": search(query)}
except TimeoutError: # transient: recover locally
continue
except (ValueError, PermissionError) as e: # not fixable here: propagate at once
kind = "validation" if isinstance(e, ValueError) else "permission"
return {"status": "error", "errorCategory": kind, "attempted": query,
"partialResults": found_so_far, "alternatives": ["re-delegate with a corrected query"]}
return {"status": "error", "errorCategory": "transient", "attempted": query, "attempts": attempts,
"partialResults": found_so_far, "alternatives": ["narrow the query", "proceed with partial results"]}The invariants: only transient failures are retried locally, and the retries are bounded; a validation or permission failure is propagated immediately, because repeating it locally cannot help; and every error that goes up carries its type, what was attempted, the partial results and the alternatives.
Two anti-patterns are ruled out by this. Swallowing an error and reporting an empty success hides the failure from the only component able to compensate for it. Aborting the entire workflow on one subagent's failure discards work that succeeded and was recoverable. Both leave the coordinator deciding without the information it needed.
Report what happened — don't hide it or discard it, step 1: Three sources search successfully
Deep Dive
MCP's two error-reporting mechanisms
The MCP specification (latest published revision: 2026-07-28) distinguishes two separate error channels, and mixing them up is a common source of bugs.
Protocol errors "indicate issues with the request structure itself that models are less likely to be able to fix": an unknown tool, a malformed request (one that does not satisfy the tools/call request schema), or a server error. They are returned as standard JSON-RPC errors:
{
"jsonrpc": "2.0",
"id": 3,
"error": { "code": -32602, "message": "Unknown tool: invalid_tool_name" }
}Tool execution errors "contain actionable feedback that language models can use to self-correct and retry with adjusted parameters": API failures, input validation errors (a date in the wrong format, a value out of range) and business logic errors. They are reported inside a successful tool result with isError: true.
A tool that exists and was called, and then fails, should therefore return a normal JSON-RPC result with isError: true in the payload, not a protocol-level error. The schema reference gives the reason: errors that originate from the tool "SHOULD be reported inside the result object, with isError set to true, not as an MCP protocol-level error response. Otherwise, the LLM would not be able to see that an error occurred and self-correct." The handling rules differ accordingly: clients "SHOULD provide tool execution errors to language models to enable self-correction", whereas they only "MAY provide protocol errors to language models, though these are less likely to result in successful recovery". If isError is not set, it is assumed to be false.
This is the mechanical basis for the taxonomy in this lesson: every one of the four categories (transient, validation, business, permission) is a tool execution error, never a protocol error. Note where invalid tool arguments belong. The 2025-06-18 revision listed "Invalid arguments" under protocol errors; the current revision reserves protocol errors for structurally malformed requests and states that invalid tool arguments "are instead reported as tool execution errors, with isError set to true".
Sourcesmodelcontextprotocol.io › toolsmodelcontextprotocol.io › schemafetched 2026-11-19
isError in MCP maps to is_error in the Messages API
The MCP spec's isError flag has a direct analogue in Anthropic's own Messages API: a client tool_result block carries an optional is_error field, to be "Set to true if the tool failed or the call was invalid." After such a result, "Claude might then call the tool again with a new tool_use block, so limit how many retries your loop allows", or it tells the user what happened. The same page gives the guidance this whole lesson rests on: "Write instructive error messages. Instead of generic errors such as "failed", include what went wrong and what Claude should try next (for example, "Rate limit exceeded. Retry after 60 seconds."). This gives Claude the context it needs to recover or adapt without guessing."
When Claude connects to a remote MCP server through the Messages API's MCP connector (a beta feature) rather than through a client-side tool loop, results come back as mcp_tool_result content blocks that carry the same boolean, e.g. {"type": "mcp_tool_result", "is_error": false, "content": [...]}. Whichever path you're building against, the pattern is identical: a boolean flag inside the result, not an HTTP-style status code, tells the model whether to treat the payload as a success or a failure to reason about. (Anthropic's server tools, such as web search, are the exception on the sending side: you do not send is_error results for them, because the API returns any error inside the tool's own result block.)
Sourcesplatform.claude.com › handle-tool-callsplatform.claude.com › mcp-connectorfetched 2026-11-19
structuredContent and outputSchema turn ad-hoc JSON into a contract
MCP does not say where application error metadata should go: its own error examples carry the explanation as text in content, with isError: true. That leaves two places for errorCategory, isRetryable and the description. The simplest is a JSON string in a text block. The other is MCP's first-class field for machine-readable data, structuredContent, a JSON value returned alongside content (the 2025-06-18 revision restricted it to a JSON object; the current revision allows any JSON value). The two are meant to be used together: "For backwards compatibility, a tool that returns structured content SHOULD also return the serialized JSON in a TextContent block."
If the tool declares an outputSchema, the contract tightens: servers "MUST provide structured results that conform to this schema" and clients "SHOULD validate structured results against this schema". A schema that describes the failure shape is therefore a way to stop individual code paths from forgetting a field. The specification does not say how an output schema applies to a result with isError: true, so a schema intended to cover failures has to describe the failure shape explicitly, alongside the success shape.
Two behaviours of the Agent SDK's custom-tools API matter if you build the server that way. When a TypeScript tool() handler sets structuredContent, "the text blocks in content don't reach Claude", so the description must be inside the structured object. And the Python @tool decorator "forwards only content and is_error from the handler's return dict", so an in-process Python tool has to carry its metadata as JSON in the text block.
Sourcesmodelcontextprotocol.io › toolscode.claude.com › custom-toolsfetched 2026-11-19
The spec says a human SHOULD be able to deny tool invocations
MCP's design guidance states there "SHOULD always be a human in the loop with the ability to deny tool invocations." The sentence is about users confirming tool calls, not about error categories, but it is a useful way to think about permission errors: the protocol's trust model assumes that someone with authority can say no. A tool that returns a permission error is reporting that the system said no, and the fitting response is escalation to someone who can authorise the action, not a workaround.
Sourcemodelcontextprotocol.io › toolsfetched 2026-11-19
An invalid tool call and a validation error from your tool are handled the same way
If Claude's tool call itself is invalid (the docs' example is a missing required parameter), you report it the same way as any other failure: a tool_result with is_error: true and a message such as "Error: Missing required 'location' parameter". "Claude can then call the tool again with the missing information filled in." The docs do not promise a fixed number of such attempts, which is why your loop should cap them. They add that an invalid call "usually means that there wasn't enough information for Claude to use the tool correctly", and that the best approach during development is more detailed description values in the tool definitions.
Strict tool use (strict: true on the tool definition) removes one class of these errors: it "guarantees that tool inputs always match your schema exactly, preventing missing parameters and type mismatches". It cannot remove the validation errors this lesson is about. order-abc is a perfectly valid string, so only your tool can know it is not a real order ID, and only your tool's validation error can tell the agent what a correct one looks like.
Sourceplatform.claude.com › handle-tool-callsfetched 2026-11-19
The Agent SDK converts uncaught handler exceptions to error results automatically
If you build your MCP tool with the Claude Agent SDK's custom-tools API, "A handler error doesn't stop the agent loop." The SDK's in-process MCP server catches uncaught exceptions in your handler and "converts it to an error result carrying the raw exception message". That's a safety net, not a substitute for the structured-error design in this lesson: the raw exception text is whatever the failing library happened to say, whereas catching the error and returning isError: true (TypeScript) or "is_error": True (Python) means "Claude sees the message you compose", with your own category, retryable flag and description. The docs' rule of thumb: "Catch errors yourself when the raw exception message isn't enough for Claude to act on."
Sourcecode.claude.com › custom-toolsfetched 2026-11-19
Quick Reference
| Fact | Value |
|---|---|
| MCP's two error mechanisms | Protocol errors (JSON-RPC: unknown tool, malformed request, server error) vs tool execution errors (isError: true inside a successful result: API failures, input validation errors, business logic errors) |
isError semantics | true = tool execution failed; model reasons about recovery instead of treating text as a normal result. Absent = false |
| Who sees which error | Clients SHOULD pass tool execution errors to the model; they only MAY pass protocol errors |
| Messages API equivalent | tool_result.is_error (optional boolean); MCP connector mcp_tool_result.is_error |
| Where the metadata comes from | errorCategory / isRetryable / description are the exam guide's application convention, not MCP fields; carry them as JSON in the text block and/or structuredContent |
structuredContent | JSON value for structured tool output; also serialise to a text block for back-compat |
outputSchema | If declared: server MUST conform, client SHOULD validate |
| Four error categories | transient (retry after delay) · validation (fix input, call again) · business (never retry; explain, then alternative path or escalation) · permission (escalate / different credentials) |
isRetryable | true for transient, false for business/permission. Validation: the guide assigns no value; this lesson uses true ("a corrected call can succeed"). Answer by behaviour: fix the input, then call again |
| Guide's two spellings | isRetryable and retriable: false mean the same thing |
| Access failure vs valid empty result | Access failure = isError: true (couldn't reach data); empty result = isError: false, resultCount: 0 (reached data, found nothing) |
| Business error extras | Non-retryable flag plus a customer-friendly explanation the agent can relay |
| MCP human-in-the-loop principle | Spec: there SHOULD always be a human able to deny tool invocations |
| Invalid tool calls | Reported with is_error: true like any failure; Claude may call again, so cap retries in your loop; strict: true prevents missing parameters and type mismatches only |
| SDK handler error handling | Uncaught exceptions become error results carrying the raw exception message; returning isError: true yourself lets you compose the recovery message |
| Multi-agent error propagation | Local recovery for transient failures; propagate only unresolvable errors, with failure type, what was attempted, partial results and alternatives |
Exam Traps
More wrong answers, and why each fails
| Tempting answer | Why it fails | Choose instead |
|---|---|---|
| Pass the raw stack trace or internal SQL back as the error text | It names where the code broke, not what the agent should do, and it leaks internals into a path that may reach a customer | A description of what went wrong and what to try next |
Report "no match" as an error with a not_found category the agent is told never to retry | A query that ran and matched nothing did not fail; flagging it invites the retry-then-escalate loop however the category is labelled | A successful result with a zero count |
Keep isError: false for an outage and append a warning to the text, or use a count of −1 as a sentinel | Recovery logic does not branch on prose, and a sentinel overloads one field with two meanings that every caller must know | isError: true with a transient category |
How This Is Tested
| Stem signal | Answer | Wrong-answer pattern beside it |
|---|---|---|
| The agent retries a policy violation several times, or tells the customer "the system is busy" | A business error: non-retryable flag, a customer-friendly explanation, and the alternative path | A longer backoff; setting isError alone; the tool quietly doing something smaller than was asked |
| Every tool fails with the same text; the agent retries permanent failures and abandons recoverable ones | Structured metadata: errorCategory, isRetryable, a human-readable description (plus a customer-friendly explanation for business errors) | Error codes, timestamps, HTTP statuses or severity levels, which help humans and logs but do not tell the agent how to recover |
| "How should the tool report that no orders match?" or an agent that retries and escalates an empty lookup | A successful result with zero matches, structurally distinct from an access failure | More retries; later escalation; a prompt rule about empty results |
| The agent told customers that nothing exists while the data source was down | Report the access failure as an error (isError: true, transient) so that it cannot be read as an empty answer | A longer timeout; querying twice; softer wording |
| A subagent times out or exhausts its retries: what goes to the coordinator? | Structured error context: failure type, what was attempted, partial results, alternatives | A generic status after retries; an empty success; terminating the whole workflow |
"Where does isError live?" or a server that reports every failure through one channel | In the tool result. Protocol errors are for unknown tools, malformed requests and server errors | A protocol error for a refusal the model needs to see; a plain success that merely describes the failure |
Practice Scenario
Your get_customer tool returns an empty list when the customer database does not answer within its five-second timeout, using the same shape it returns when a search runs and matches nothing. During a slow period the agent told fourteen customers no account existed under their email address and closed the tickets. Every one of those accounts was real. What change would most effectively address this?
Practice Questions
Exam simulator
Question 1 of 13
Scenario · Multi-Agent Research System
A report states that "no peer-reviewed studies exist" on a topic. Tracing the run, you find the academic database returned a 503, and your search tool caught the exception and returned an empty list, exactly as it does when a query genuinely finds nothing. The coordinator took the empty list at face value. What change would most effectively prevent this?
Sources
- Claude Certified Architect Foundations Exam Guide — Domain 2, Task Statement 2.2 — Anthropic
- Tools — MCP Specification (2026-07-28) — Model Context Protocol
- Schema Reference — MCP Specification (2026-07-28) — Model Context Protocol
- Building Effective Agents — Anthropic — Anthropic
- MCP Specification — Tools (2025-06-18) — Model Context Protocol
- Handling tool calls — Anthropic API Documentation — Anthropic
- MCP connector — Anthropic API Documentation — Anthropic
- Agent SDK — Custom Tools — Anthropic