File: eval-tool.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Test & evaluate
Using the Evaluation Tool
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
On this page
To get started with the Evaluation tool:

Ensure your prompt includes at least 1-2 dynamic variables using the double brace syntax: {{variable}}. This is required for creating eval test sets.
The Console offers a built-in prompt generator powered by Claude Opus 4.1:
1
Click 'Generate Prompt'
Clicking the ‘Generate Prompt’ helper tool will open a modal that allows you to enter your task information.
2
Describe your task
Describe your desired task (e.g., “Triage inbound customer support requests”) with as much or as little detail as you desire. The more context you include, the more Claude can tailor its generated prompt to your specific needs.
3
Generate your prompt
Clicking the orange ‘Generate Prompt’ button at the bottom will have Claude generate a high quality prompt for you. You can then further improve those prompts using the Evaluation screen in the Console.
This feature makes it easier to create prompts with the appropriate variable syntax for evaluation. 
When you access the Evaluation screen, you have several options to create test cases:
To use the ‘Generate Test Case’ feature:
1
Click on 'Generate Test Case'
Claude will generate test cases for you, one row at a time for each time you click the button.
2
Edit generation logic (optional)
You can also edit the test case generation logic by clicking on the arrow dropdown to the right of the ‘Generate Test Case’ button, then on ‘Show generation logic’ at the top of the Variables window that pops up. You may have to click `Generate’ on the top right of this window to populate initial generation logic.Editing this allows you to customize and fine tune the test cases that Claude generates to greater precision and specificity.
Here’s an example of a populated Evaluation screen with several test cases: 
If you update your original prompt text, you can re-run the entire eval suite against the new prompt to see how changes affect performance across all test cases.
Prompt Structure for Evaluation
To make the most of the Evaluation tool, structure your prompts with clear input and output formats. For example:
Copy
In this task, you will generate a cute one sentence story that incorporates two elements: a color and a sound.
The color to include in the story is:
<color>
{{COLOR}}
</color>
The sound to include in the story is:
<sound>
{{SOUND}}
</sound>
Here are the steps to generate the story:
1. Think of an object, animal, or scene that is commonly associated with the color provided. For example, if the color is "blue", you might think of the sky, the ocean, or a bluebird.
2. Imagine a simple action, event or scene involving the colored object/animal/scene you identified and the sound provided. For instance, if the color is "blue" and the sound is "whistle", you might imagine a bluebird whistling a tune.
3. Describe the action, event or scene you imagined in a single, concise sentence. Focus on making the sentence cute, evocative and imaginative. For example: "A cheerful bluebird whistled a merry melody as it soared through the azure sky."
Please keep your story to one sentence only. Aim to make that sentence as charming and engaging as possible while naturally incorporating the given color and sound.
Write your completed one sentence story inside <story> tags.
This structure makes it easy to vary inputs ({{COLOR}} and {{SOUND}}) and evaluate outputs consistently.
Use the ‘Generate a prompt’ helper tool in the Console to quickly create prompts with the appropriate variable syntax for evaluation.
The Evaluation tool offers several features to help you refine your prompts:
By reviewing results across test cases and comparing different prompt versions, you can spot patterns and make informed adjustments to your prompt more efficiently. Start evaluating your prompts today to build more robust AI applications with Claude!
Was this page helpful?
YesNo
Develop test cases Reducing latency
Assistant
Responses are generated using AI and may contain mistakes.


