Generate scenario
generate_scenarioCreate agent evaluation test scenarios (info_exchange or interview) with skill tags and context. Validates tags upfront and supports batch generation, returning scenario UUIDs or structured errors.
Instructions
Generates a new test scenario of a given type (info_exchange or interview) with optional skill tags and context. Invalid tag names or incompatible tags fail immediately with 400/422 before a job is queued; use recommend_scenario_tags, search_scenario_tags, or list_compatible_tags to pick valid tag names. Typically takes 30s–2min; task-capable MCP clients receive a pollable task handle immediately, while others block until generation finishes. Set num_scenarios greater than 1 for batch mode (requires tag_pool). Returns the new scenario’s uuid, or batch uuids when batching, or a structured error if generation fails for other reasons after the job starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workspace-unique scenario name. | |
| tags | No | Skill tag names (use recommend_scenario_tags, search_scenario_tags, or list_compatible_tags). | |
| tag_pool | No | Required when num_scenarios > 1; universe of tag names to sample from. | |
| total_tags | No | Batch only; tags drawn per scenario from tag_pool. | |
| include_tags | No | Batch only; tags required in every scenario (subset of tag_pool). | |
| num_scenarios | No | Batch size. 1 = single scenario (default). Greater than 1 requires tag_pool. | |
| scenario_type | Yes | ||
| context_prompt | No | ||
| max_tags_per_npc | No | Batch only; caps tags per NPC. |