AI test case builder
build_test_packValidate 1-20 response tests and return JSON text to save as tests.json for PromptBrake CI. Use when the user has prompts and expected or forbidden response text; use map_owasp_llm_risk for risk-based test ideas. No account or API key required to create a pack; running it separately requires a PromptBrake runner and CI access with PB_CUSTOM_TESTS_FILE set to the saved file. Checks are case-insensitive text comparisons; they do not judge meaning or verify backend actions. Invalid packs return a tool error explaining the validation problem. Test content is not stored or executed; operational request metadata is logged.
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": {
"tests": "<tests>"
},
"name": "build_test_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tests | Yes | 1-20 response tests with unique names. |