Skip to main content
Glama

Destroy a resource

destroy_resource
DestructiveIdempotent

Destroy a resource and all of its data, such as every table and row in a database. This cannot be undone, so confirm with the user first. A resource attached to any app is refused, and the answer names those apps: detach it from each with detach_resource, then destroy it. The provider removes it in the background. Destroying a resource that is already being removed changes nothing. Requires connecting a Valet account.

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": {
      "resource": "<resource>"
    },
    "name": "destroy_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_nameNoThe Valet organization the resource belongs to. Omit to use the organization the account joined first.
resourceYesThe resource's name in the organization.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "already_gone": {
      -        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "description": "Always resource: the kind of thing this tool destroys.",
      -        "enum": [
      -          "resource"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Name of the resource destroyed, as passed in resource.",
      -        "type": "string"
      -      },
      -      "org": {
      -        "description": "Name of the Valet organization the call acted in.",
      -        "type": "string"
      -      },
      -      "provider": {
      -        "description": "Provider the resource was provisioned from. Absent for a resource created from environment variables.",
      -        "type": "string"
      -      },
      -      "resource_id": {
      -        "description": "ID of the resource.",
      -        "type": "string"
      -      },
      -      "state": {
      -        "description": "deprovisioning while the provider removes the resource and its data in the background, or deprovisioned for a resource that only held environment variables and needed no removal.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "org",
      -      "name",
      -      "kind",
      -      "resource_id",
      -      "state"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "already_gone": {
      -        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "description": "Always resource: the kind of thing this tool destroys.",
      -        "enum": [
      -          "resource"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Name of the resource destroyed, as passed in resource.",
      -        "type": "string"
      -      },
      -      "org": {
      -        "description": "Name of the Valet organization the call acted in.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "org",
      -      "name",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "already_gone": {
      +        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "description": "Always resource: the kind of thing this tool destroys.",
      +        "enum": [
      +          "resource"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name of the resource destroyed, as passed in resource.",
      +        "type": "string"
      +      },
      +      "org": {
      +        "description": "Name of the Valet organization the call acted in.",
      +        "type": "string"
      +      },
      +      "provider": {
      +        "description": "Provider the resource was provisioned from. Absent for a resource created from environment variables.",
      +        "type": "string"
      +      },
      +      "resource_id": {
      +        "description": "ID of the resource.",
      +        "type": "string"
      +      },
      +      "state": {
      +        "description": "Deletion state of the resource identified by resource_id. Deprovisioning includes accepted deletions whose completion could not be confirmed.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "org",
      +      "name",
      +      "kind",
      +      "resource_id",
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "already_gone": {
      +        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "description": "Always resource: the kind of thing this tool destroys.",
      +        "enum": [
      +          "resource"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name of the resource destroyed, as passed in resource.",
      +        "type": "string"
      +      },
      +      "org": {
      +        "description": "Name of the Valet organization the call acted in.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "org",
      +      "name",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "already_gone": {
      -        "description": "True when the thing was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "description": "What the thing was, such as channel, connector, or resource.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Name of the thing the call destroyed, as the caller gave it.",
      -        "type": "string"
      -      },
      -      "org": {
      -        "description": "Name of the Valet organization the call acted in.",
      -        "type": "string"
      -      },
      -      "provider": {
      -        "description": "Provider the resource was provisioned from. Absent for a resource created from environment variables.",
      -        "type": "string"
      -      },
      -      "resource_id": {
      -        "description": "ID of the resource.",
      -        "type": "string"
      -      },
      -      "state": {
      -        "description": "deprovisioning while the provider removes the resource and its data in the background, or deprovisioned for a resource that only held environment variables and needed no removal.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "org",
      -      "name",
      -      "kind",
      -      "resource_id",
      -      "state"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "already_gone": {
      -        "description": "True when the thing was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      -        "type": "boolean"
      -      },
      -      "kind": {
      -        "description": "What the thing was, such as channel, connector, or resource.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Name of the thing the call destroyed, as the caller gave it.",
      -        "type": "string"
      -      },
      -      "org": {
      -        "description": "Name of the Valet organization the call acted in.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "org",
      -      "name",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "already_gone": {
      +        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "description": "Always resource: the kind of thing this tool destroys.",
      +        "enum": [
      +          "resource"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name of the resource destroyed, as passed in resource.",
      +        "type": "string"
      +      },
      +      "org": {
      +        "description": "Name of the Valet organization the call acted in.",
      +        "type": "string"
      +      },
      +      "provider": {
      +        "description": "Provider the resource was provisioned from. Absent for a resource created from environment variables.",
      +        "type": "string"
      +      },
      +      "resource_id": {
      +        "description": "ID of the resource.",
      +        "type": "string"
      +      },
      +      "state": {
      +        "description": "deprovisioning while the provider removes the resource and its data in the background, or deprovisioned for a resource that only held environment variables and needed no removal.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "org",
      +      "name",
      +      "kind",
      +      "resource_id",
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "already_gone": {
      +        "description": "True when the resource was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +        "type": "boolean"
      +      },
      +      "kind": {
      +        "description": "Always resource: the kind of thing this tool destroys.",
      +        "enum": [
      +          "resource"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name of the resource destroyed, as passed in resource.",
      +        "type": "string"
      +      },
      +      "org": {
      +        "description": "Name of the Valet organization the call acted in.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "org",
      +      "name",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / resource / description
      Previous value: -"Required. The resource's name in the organization."New value: +"The resource's name in the organization."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "already_gone": {
      +          "description": "True when the thing was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +          "type": "boolean"
      +        },
      +        "kind": {
      +          "description": "What the thing was, such as channel, connector, or resource.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Name of the thing the call destroyed, as the caller gave it.",
      +          "type": "string"
      +        },
      +        "org": {
      +          "description": "Name of the Valet organization the call acted in.",
      +          "type": "string"
      +        },
      +        "provider": {
      +          "description": "Provider the resource was provisioned from. Absent for a resource created from environment variables.",
      +          "type": "string"
      +        },
      +        "resource_id": {
      +          "description": "ID of the resource.",
      +          "type": "string"
      +        },
      +        "state": {
      +          "description": "deprovisioning while the provider removes the resource and its data in the background, or deprovisioned for a resource that only held environment variables and needed no removal.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "org",
      +        "name",
      +        "kind",
      +        "resource_id",
      +        "state"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "already_gone": {
      +          "description": "True when the thing was already gone before the call, so nothing was destroyed. Absent when this call destroyed it.",
      +          "type": "boolean"
      +        },
      +        "kind": {
      +          "description": "What the thing was, such as channel, connector, or resource.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Name of the thing the call destroyed, as the caller gave it.",
      +          "type": "string"
      +        },
      +        "org": {
      +          "description": "Name of the Valet organization the call acted in.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "org",
      +        "name",
      +        "kind"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint, openWorldHint) the description adds real operational context: exactly what data is destroyed, irreversibility requiring user confirmation, the failure mode where attached apps block the call and are named in the response, asynchronous background removal, and that re-destroying an already-removing resource is a no-op.

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?

Every sentence carries distinct operational value — destruction scope, confirmation, refusal recovery path, async behavior, idempotency, auth — and the most critical fact (irreversible destruction) is front-loaded.

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?

For a destructive, one-required-parameter tool with an output schema, the description covers everything an agent needs: safety confirmation, blocking conditions, the recovery path via detach_resource, and async semantics. Return values need not be explained since an output schema exists.

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 both org_name and resource are fully documented in the schema; the description adds no additional meaning about parameter syntax, naming, or defaults. Baseline 3 applies since the schema carries the parameter burden.

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 opens with a specific verb+resource and immediately clarifies scope ('and all of its data, such as every table and row in a database'), which distinguishes it from detach_resource and the other destroy_* siblings that target different object types.

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 gives explicit preconditions ('confirm with the user first', 'Requires connecting a Valet account'), states a when-not case (resource attached to an app is refused), and names the required alternative ('detach it from each with detach_resource, then destroy it'). Nothing about tool selection is left to inference.

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