Skip to main content
Glama
Systemores AI Agent & MCP Security Auditor

Systemores AI Agent & MCP Security Auditor

Generate Chaos Fault Injection Policy

systemores_inject_environment_fault
Read-only

Generate 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

NameRequiredDescriptionDefault
faultTypeYesThe specific chaos fault to inject.
targetToolNameYesTarget tool name to scope the generated mock fault policy to, or 'all_tools' for any tool.
failureProbabilityNoProbability of fault triggering per invocation (0.01 to 1.0).

Output Schema

NameRequiredDescriptionDefault
policyIdYes
faultTypeYes
recommendationYes
targetToolNameYes
mockResponseBodyYes
failureProbabilityYes
simulatedLatencyMsYes
activeDurationSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.2
    • changedInput schema / properties / targetToolName / description
      Previous value: -"The target tool name to attach fault injection policy to (or 'all_tools')."New value: +"Target tool name to scope the generated mock fault policy to, or 'all_tools' for any tool."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "activeDurationSeconds": {
      +      "type": "integer"
      +    },
      +    "failureProbability": {
      +      "type": "number"
      +    },
      +    "faultType": {
      +      "type": "string"
      +    },
      +    "mockResponseBody": {
      +      "type": "string"
      +    },
      +    "policyId": {
      +      "type": "string"
      +    },
      +    "recommendation": {
      +      "type": "string"
      +    },
      +    "simulatedLatencyMs": {
      +      "type": "integer"
      +    },
      +    "targetToolName": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "policyId",
      +    "targetToolName",
      +    "faultType",
      +    "failureProbability",
      +    "simulatedLatencyMs",
      +    "mockResponseBody",
      +    "activeDurationSeconds",
      +    "recommendation"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.3

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=false, and openWorldHint=false, and the description is fully consistent with them. It adds valuable context beyond the annotations: stateless non-persistent output, no mutation of live tools or server state, the reason for non-idempotency (fresh policyId per call), the generated payload fields, and the Pro/Trial API key requirement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the main action and every clause contributes useful information about scope, behavior, constraints, and alternatives. It is somewhat dense as one long sentence with multiple parentheticals and semicolon-separated clauses, which slightly reduces readability but not enough to call it wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has an output schema and rich annotations, and the description covers the remaining gaps: what is generated, what is not mutated, authentication requirements, and the sibling alternative for different testing needs. An agent has everything needed to decide whether and how to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents faultType, targetToolName, and failureProbability including the enum and numeric range. The description reinforces those meanings but adds little syntax or semantics beyond what the input schema provides, making 3 the appropriate baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: generates a chaos fault policy payload for test harnesses. It names the exact fault modes (429, 500, timeout, 401, malformed JSON) and explicitly distinguishes the tool from systemores_stress_test_agent, so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this tool to produce mock fault fixtures for resilience tests and directs prompt-level adversarial testing to systemores_stress_test_agent. That is a clear when-to-use statement plus a sibling alternative with the condition that selects it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.