Skip to main content
Glama

Recover Failed Resource

simulation.recover_resource

Use simulationId from simulation.create or current demo. Use resourceId or resourceName for reversible resource recovery. Returns recovery progress; next tool is simulation.step, then simulation.metrics. Keyless demo. cwm://guides/public/simulation.recover_resource

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.recover_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceIdNo
resourceNameNo
simulationIdNoID returned by simulation.create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / simulationId / description
      Added value: +"ID returned by simulation.create."
  2. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / resourceId / description
      Removed value: -"ID of the failed resource to recover"
    • removedInput schema / properties / resourceName / description
      Removed value: -"Exact case-insensitive name of the failed resource to recover"
    • 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": {
      -    "deactivatedFailureIds": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "previousHealth": {
      -      "type": "string"
      -    },
      -    "recoveryProgress": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "cooldown": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "completedSteps": {
      -              "type": "number"
      -            },
      -            "remainingSteps": {
      -              "type": "number"
      -            },
      -            "requiredSteps": {
      -              "type": "number"
      -            },
      -            "target": {
      -              "anyOf": [
      -                {
      -                  "enum": [
      -                    "warning",
      -                    "healthy"
      -                  ],
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "target",
      -            "completedSteps",
      -            "requiredSteps",
      -            "remainingSteps"
      -          ],
      -          "type": "object"
      -        },
      -        "parkWindow": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "completedSteps": {
      -              "type": "number"
      -            },
      -            "remainingSteps": {
      -              "type": "number"
      -            },
      -            "totalSteps": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "totalSteps",
      -            "completedSteps",
      -            "remainingSteps"
      -          ],
      -          "type": "object"
      -        },
      -        "state": {
      -          "enum": [
      -            "parked",
      -            "blocked",
      -            "cooling_down",
      -            "healthy"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "state",
      -        "parkWindow",
      -        "cooldown"
      -      ],
      -      "type": "object"
      -    },
      -    "recoveryState": {
      -      "type": "string"
      -    },
      -    "resolvedResourceId": {
      -      "type": "string"
      -    },
      -    "resolvedResourceName": {
      -      "type": "string"
      -    },
      -    "simulationId": {
      -      "type": "string"
      -    },
      -    "simulationIdSource": {
      -      "enum": [
      -        "explicit",
      -        "session_default"
      -      ],
      -      "type": "string"
      -    },
      -    "stepsToHealthy": {
      -      "type": "number"
      -    },
      -    "stepsToHealthyIsLowerBound": {
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changed
    • changedOutput schema / properties / recoveryProgress / properties / state / enum
      Previous value: -[
      -  "parked",
      -  "cooling_down",
      -  "healthy"
      -]New value: +[
      +  "parked",
      +  "blocked",
      +  "cooling_down",
      +  "healthy"
      +]
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent; the description adds genuinely new context by calling the operation reversible and 'Keyless demo' (no auth needed). It also notes a return signal ('recovery progress') despite no output schema. It does not say what happens if the resource is already healthy or the recovery fails.

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

Conciseness5/5

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

Five short, front-loaded fragments, each carrying distinct information (ID source, target identification, return value, next steps, auth model) plus a pointer to deeper docs. Nothing is redundant with the title or schema.

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?

For a 3-param mutation with no output schema, the essentials (inputs, return signal, workflow continuation) are present. However, the precondition for recovery — that the resource be in a failed/unhealthy state — and the behavior when it is not are entirely missing, leaving a real gap for a recovery tool.

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

Parameters4/5

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

Schema coverage is only 33% (only simulationId documented), so the description must compensate — and it does: it explains that simulationId comes from simulation.create or defaults to the current demo, and that resourceId and resourceName are interchangeable ways to name the target. Only the format of the resource identifiers remains unexplained.

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

Purpose4/5

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

States a concrete action and object: reversible recovery of a resource inside a simulation, with the identifier alternatives spelled out. It is distinguishable from simulation.create/inject_failure/delete, though it never uses the title's framing of 'failed resource' to say what state the resource must be in.

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?

Gives clear sourcing rules for simulationId ('from simulation.create or current demo') and an explicit either/or for identifying the resource, plus the follow-on workflow (simulation.step, then simulation.metrics). No explicit when-not guidance or preconditions are stated.

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