Generate Chaos Fault Injection Policy
systemores_inject_environment_faultGenerate mock chaos fault policies to simulate HTTP failures, latency, and malformed responses in resilience tests, scoped to a target tool or all tools at a chosen probability.
Instructions
Generates a stateless, non-persistent chaos fault policy payload (mock HTTP body, simulatedLatencyMs, and retry guidance) for your test harness to simulate failures (429, 500, timeout, 401, malformed JSON) against targetToolName or 'all_tools' at failureProbability (0.01–1.0). Mutates no live tools or server state (non-idempotent only because each call emits a fresh policyId); requires a Pro/Trial API key. Use to produce mock fault fixtures for resilience tests; use systemores_stress_test_agent for prompt-level adversarial testing.
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": {
"faultType": "<faultType>",
"targetToolName": "<targetToolName>"
},
"name": "systemores_inject_environment_fault"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faultType | Yes | The specific chaos fault to inject. | |
| targetToolName | Yes | Target tool name to scope the generated mock fault policy to, or 'all_tools' for any tool. | |
| failureProbability | No | Probability of fault triggering per invocation (0.01 to 1.0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policyId | Yes | ||
| faultType | Yes | ||
| recommendation | Yes | ||
| targetToolName | Yes | ||
| mockResponseBody | Yes | ||
| failureProbability | Yes | ||
| simulatedLatencyMs | Yes | ||
| activeDurationSeconds | Yes |