Generate scenario
generate_scenarioCreates test scenarios for info-exchange or interview simulations, with optional skill tags and context, validating tag compatibility before generation.
Instructions
Generates a new test scenario of a given type (info_exchange or interview) with optional skill tags and context. The scenario is written as a new-engine simulation_input document. info_exchange needs at least two skill tags; interview needs exactly one. Invalid tag names, incompatible tags, or a tag count the new engine cannot build 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"scenario_type": "<scenario_type>"
},
"name": "generate_scenario"
}
}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. |