Skip to main content
Glama

Inject Failure

simulation.inject_failure

Use simulationId from simulation.create or current demo. Use resourceId or resourceName to target a resource. Returns updated state; next tool is simulation.step, then simulation.recover_resource. Keyless demo. cwm://guides/public/simulation.inject_failure

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "simulation.inject_failure"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoCDN types require explicit CDN-capable network resourceId/name, not random/node-pool selectors.
durationNo1–86400 simulation steps (default 30); requires typed CDN failure and explicit CDN-capable resourceId/name.
nodePoolIdNo
resourceIdNo
nodePoolNameNo
resourceNameNo
simulationIdNoID returned by simulation.create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / duration / description
      Previous value: -"Only with explicit type cdn_cache_loss or az_outage and CDN-capable network resourceId or resourceName. Integer 1–86400 simulation steps, not seconds; default 30. No random/node-pool selectors; omit for legacy quick failures."New value: +"1–86400 simulation steps (default 30); requires typed CDN failure and explicit CDN-capable resourceId/name."
    • changedInput schema / properties / type / description
      Previous value: -"Only cdn_cache_loss or az_outage, with an explicit CDN-capable network resourceId or resourceName; no random/node-pool selectors. Cache loss forwards misses; az_outage blocks the edge. Omit type and duration for legacy quick failures."New value: +"CDN types require explicit CDN-capable network resourceId/name, not random/node-pool selectors."
  2. Changed2 schema fields changed
    • addedInput schema / properties / duration / description
      Added value: +"Only with explicit type cdn_cache_loss or az_outage and CDN-capable network resourceId or resourceName. Integer 1–86400 simulation steps, not seconds; default 30. No random/node-pool selectors; omit for legacy quick failures."
    • addedInput schema / properties / type / description
      Added value: +"Only cdn_cache_loss or az_outage, with an explicit CDN-capable network resourceId or resourceName; no random/node-pool selectors. Cache loss forwards misses; az_outage blocks the edge. Omit type and duration for legacy quick failures."
  3. Changed3 schema fields changed
    • addedInput schema / properties / duration
      Added value: +{
      +  "maximum": 86400,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / simulationId / description
      Added value: +"ID returned by simulation.create."
    • addedInput schema / properties / type
      Added value: +{
      +  "enum": [
      +    "cdn_cache_loss",
      +    "az_outage"
      +  ],
      +  "type": "string"
      +}
  4. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / nodePoolId / description
      Removed value: -"Optional GKE node pool ID; requires resourceId or resourceName."
    • removedInput schema / properties / nodePoolName / description
      Removed value: -"Optional exact GKE node pool name; duplicate names are ambiguous and require nodePoolId."
    • removedInput schema / properties / resourceId / description
      Removed value: -"Optional: ID of the resource to fail. Takes precedence over resourceName."
    • removedInput schema / properties / resourceName / description
      Removed value: -"Optional: name of the resource to fail (exact match preferred; unambiguous prefix accepted). Ambiguous names return a 400 with a candidate list."
    • removedInput schema / properties / simulationId / description
      Removed value: -"Simulation ID returned by simulation.create. Preserve Mcp-Session-Id to omit this field and use the session's current simulation; if your connector starts a fresh MCP session for each call (for example Grok Bot or Cursor), pass this explicit ID after every fresh initialization. A fresh session has no current-simulation pointer and returns NO_ACTIVE_SIMULATION when the ID is omitted. Anonymous capabilities are short-lived (30 minutes by default), unguessable, and revoked when the demo expires or is deleted; proxy IP changes do not invalidate them. Do not treat the ID as a durable share link."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": true,
      -  "properties": {
      -    "event": {
      -      "additionalProperties": {},
      -      "description": "Failure event that was logged",
      -      "type": "object"
      -    },
      -    "previousHealth": {
      -      "description": "The resource's health status immediately before the failure was applied",
      -      "type": "string"
      -    },
      -    "resolvedResourceId": {
      -      "description": "ID of the resource that was failed (targeted or randomly selected)",
      -      "type": "string"
      -    },
      -    "resolvedResourceName": {
      -      "description": "Name of the resource that was failed",
      -      "type": "string"
      -    },
      -    "resources": {
      -      "description": "Updated resource list after failure injection",
      -      "items": {
      -        "additionalProperties": {},
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  5. Changed2 schema fields changed
    • addedInput schema / properties / nodePoolId
      Added value: +{
      +  "description": "Optional GKE node pool ID; requires resourceId or resourceName.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / nodePoolName
      Added value: +{
      +  "description": "Optional exact GKE node pool name; duplicate names are ambiguous and require nodePoolId.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / simulationId / description
      Previous value: -"Simulation ID returned by simulation.create. Preserve Mcp-Session-Id to omit this field and use the session's current simulation; if your connector starts a fresh MCP session for each call (for example Grok Bot or Cursor), pass this explicit ID. A fresh session has no current-simulation pointer and returns NO_ACTIVE_SIMULATION when the ID is omitted. Anonymous capabilities are short-lived, bound to the creating anonymous client, and revoked when the demo expires or is deleted; do not treat the ID as a durable share link."New value: +"Simulation ID returned by simulation.create. Preserve Mcp-Session-Id to omit this field and use the session's current simulation; if your connector starts a fresh MCP session for each call (for example Grok Bot or Cursor), pass this explicit ID after every fresh initialization. A fresh session has no current-simulation pointer and returns NO_ACTIVE_SIMULATION when the ID is omitted. Anonymous capabilities are short-lived (30 minutes by default), unguessable, and revoked when the demo expires or is deleted; proxy IP changes do not invalidate them. Do not treat the ID as a durable share link."
  7. Changed1 schema field changed
    • changedInput schema / properties / simulationId / description
      Previous value: -"Simulation ID returned by simulation.create. Optional in demo sessions — omit to target this session's current simulation (set by simulation.create and updated by the most recent successful explicit use). If the session has no current simulation you get a NO_ACTIVE_SIMULATION result."New value: +"Simulation ID returned by simulation.create. Preserve Mcp-Session-Id to omit this field and use the session's current simulation; if your connector starts a fresh MCP session for each call (for example Grok Bot or Cursor), pass this explicit ID. A fresh session has no current-simulation pointer and returns NO_ACTIVE_SIMULATION when the ID is omitted. Anonymous capabilities are short-lived, bound to the creating anonymous client, and revoked when the demo expires or is deleted; do not treat the ID as a durable share link."
  8. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "One-sentence goal for this session — e.g. 'train RL agent on AWS', 'compare GCP vs Azure costs', or 'run chaos test on database tier'.",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "context"
      -]
  9. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare it is a non-readonly, non-destructive, non-idempotent, closed-world mutation, so safety is covered. The description adds real value beyond that: it returns updated state, it is a keyless demo (no auth needed), and it participates in a defined step/recover sequence. It does not say what happens to the simulation if the failure is left unrecovered, which would complete the picture.

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?

Short, front-loaded, and every clause carries information: ID source, targeting, return value, next steps, auth mode. The telegraphic sentence fragments and the bare documentation URL at the end are the only rough edges.

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

Completeness3/5

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

With no output schema, the 'returns updated state' line is necessary and present, and the workflow chain is covered. But for a 7-parameter mutation with 0 required fields and 43% schema coverage, the description leaves the agent without guidance on defaults, which targeting selectors are mutually exclusive, or what the injected failure actually affects.

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 coverage is only 43%, so the description must compensate. It usefully explains the either/or of resourceId vs resourceName and where simulationId comes from, and the schema itself covers the type enum and duration. However, nodePoolId and nodePoolName get no explanation in either place, and with zero required parameters an agent is left guessing which targeting combination is valid.

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

Purpose3/5

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

The description never states the action explicitly ("injects a failure into a targeted resource"); the purpose is only inferable from the tool name plus the targeting sentence. It does clarify that a resource is targeted via resourceId or resourceName, which separates it from simulation.create/step, but a reader must already know what 'inject failure' means.

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

Usage Guidelines4/5

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

It gives concrete sequencing: simulationId comes from simulation.create (or the current demo), and after this call the next tools are simulation.step then simulation.recover_resource. That is a clear workflow context, though there are no explicit 'when not to use' exclusions or contrast with simulation.inject_traffic.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources