
Tool Use And Schema Validation
Claude API · Anthropic
Foundation Model & API — Anthropic (Claude)
Evaluates Anthropic's Tool Use & Schema Validation across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
About Anthropic
Anthropic is an AI safety company and the maker of Claude. Its API exposes the Claude model family (Opus, Sonnet, Haiku) with tool use, prompt caching, extended thinking, batch processing, vision, the Files and Memory tools, and the Claude Agent SDK.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Agent provides three tools and sets tool_choice=auto. The user query 'what time is it in Tokyo?' clearly needs the get_time tool. | Pass tool_choice={type:'auto'} (or omit; auto is default when tools are present). Allow the model to decide whether to call. Do not pre-route by string-matching the user query and forcing a tool — that bypasses model reasoning. | Pass / FailAi Platformmedium |
| 02 | Workflow requires the next assistant message to call the submit_invoice tool — no other tool and no plain-text response. | Set tool_choice={type:'tool', name:'submit_invoice'}. The next assistant response will contain a tool_use block for submit_invoice and no text block. Handle the resulting tool_use_id and pair with tool_result. | Pass / FailAi Platformhigh |
| 03 | Model returns two tool_use blocks in one assistant turn: get_weather(SF) and get_weather(NYC). Agent dispatches both in parallel. | On the next user turn, include two tool_result blocks — one per tool_use_id, matched exactly by tool_use_id. Order of tool_results within the user turn is independent of dispatch order; matching is by id. | Pass / FailAi Platformcritical |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
Rubric criteria
- Anthropic
- Ai Platform
- Tool Use And Schema Validation
Recommended for
Works with
Related evals
Claude API
Evaluates Anthropic's Batch API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Extended Thinking across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Files API & Citations across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
ViewFrequently asked questions
What does the Tool Use And Schema Validation eval for Anthropic Claude API test?+
Evaluates Anthropic's Tool Use & Schema Validation across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
How is the Tool Use And Schema Validation eval scored?+
The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
How many test cases does this eval pack include?+
The Tool Use And Schema Validation pack for Anthropic Claude API contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.
How do I run this eval?+
Sign up for Corsac, connect your model or agent endpoint, and run the Tool Use And Schema Validation pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.