Skip to main content
Glama

deleteResource

Destructive

Delete a bookable resource. Deleting is permanent and cannot be undone: it cancels the resource's bookings without a refund, removes its assignments, and unlinks it from the subscriptions that include it. Returns the resource as it was before the delete. Get resourceId from getResources. Never invent UUIDs; only use values from prior tool responses.

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": {
      "resourceId": "<resourceId>"
    },
    "name": "deleteResource"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceIdYesThe id of the resource.

Output Schema

NameRequiredDescriptionDefault
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / resource / properties / doorflowGroupRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "DoorFlow access group reference."
      +}
  2. Changed6 schema fields changed
    • removedOutput schema / properties / resource / properties / addons
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Shop products members can order together with a booking of this resource.",
      -  "properties": {
      -    "products": {
      -      "description": "Products offered with a booking, in order.",
      -      "items": {
      -        "description": "Product id.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "products"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / resource / properties / crossSells
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Shop products members can order together with a booking of this resource.",
      +  "properties": {
      +    "products": {
      +      "description": "Products offered with a booking, in order.",
      +      "items": {
      +        "description": "Product id.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "products"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / properties / resource / properties / plans / properties / tiers / items / properties / addons
      Removed value: -{
      -  "description": "Addons included in the tier.",
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "description": "Addon id.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / resource / properties / plans / properties / tiers / items / properties / crossSells
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Plans members can buy together with this tier.",
      +  "properties": {
      +    "plans": {
      +      "description": "Plans offered with the tier, in order.",
      +      "items": {
      +        "description": "Plan id.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "plans"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / resource / properties / plans / properties / tiers / items / required
      Previous value: -[
      -  "addons",
      -  "commitmentCycles",
      -  "credits",
      -  "entire",
      -  "grantedDiscounts",
      -  "id",
      -  "period",
      -  "plan",
      -  "price",
      -  "selfSignup",
      -  "setupFee",
      -  "title"
      -]New value: +[
      +  "commitmentCycles",
      +  "credits",
      +  "crossSells",
      +  "entire",
      +  "grantedDiscounts",
      +  "id",
      +  "period",
      +  "plan",
      +  "price",
      +  "selfSignup",
      +  "setupFee",
      +  "title"
      +]
    • changedOutput schema / properties / resource / required
      Previous value: -[
      -  "addons",
      -  "assignments",
      -  "bookingPermission",
      -  "bookingUnit",
      -  "bookingWindow",
      -  "bufferTime",
      -  "children",
      -  "confirmationEmail",
      -  "createDate",
      -  "credits",
      -  "description",
      -  "duration",
      -  "dynamicPricing",
      -  "id",
      -  "locale",
      -  "locationRef",
      -  "media",
      -  "money",
      -  "networkRef",
      -  "pricingRules",
      -  "refundPolicy",
      -  "title",
      -  "type",
      -  "visibility"
      -]New value: +[
      +  "assignments",
      +  "bookingPermission",
      +  "bookingUnit",
      +  "bookingWindow",
      +  "bufferTime",
      +  "children",
      +  "confirmationEmail",
      +  "createDate",
      +  "credits",
      +  "crossSells",
      +  "description",
      +  "duration",
      +  "dynamicPricing",
      +  "id",
      +  "locale",
      +  "locationRef",
      +  "media",
      +  "money",
      +  "networkRef",
      +  "pricingRules",
      +  "refundPolicy",
      +  "title",
      +  "type",
      +  "visibility"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / resource / properties / dayPassesEnabled / description
      Previous value: -"Whether members can book this resource with day passes. Only hotDesk resources support day passes."New value: +"Whether members can book this resource with day passes. A booking takes one day pass per seat for each day it spans."
  4. Changed1 schema field changed
    • addedOutput schema / properties / resource / properties / plans / properties / tiers / items / properties / selfSignup / properties / contract
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Contract the customer signs to start a subscription from an immediate sign-up. Left out when none is required.",
      +  "properties": {
      +    "templateRef": {
      +      "description": "ID of the contract template.",
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "templateRef"
      +  ],
      +  "type": "object"
      +}
  5. Changed4 schema fields changed
    • addedOutput schema / properties / resource / properties / refundPolicy / properties / partialRefunds
      Added value: +{
      +  "description": "Shares refunded when a booking is canceled after the full refund period has ended. A cancellation gets the share of the longest threshold it still meets, and nothing once every threshold has passed. Each threshold is shorter than value, and a shorter threshold refunds a smaller share. Ordered from the longest threshold to the shortest.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "percent": {
      +        "description": "Share of what the booking was paid with that is refunded, from 1 to 99.",
      +        "maximum": 99,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "value": {
      +        "description": "How long before start the booking must be canceled to get this share back.",
      +        "enum": [
      +          "zeroMinutes",
      +          "fifteenMinutes",
      +          "thirtyMinutes",
      +          "oneHour",
      +          "twoHours",
      +          "fourHours",
      +          "sixHours",
      +          "twelveHours",
      +          "oneDay",
      +          "twoDays",
      +          "oneWeek",
      +          "twoWeeks",
      +          "fourWeeks"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "percent",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / resource / properties / refundPolicy / properties / public / properties / partialRefunds
      Added value: +{
      +  "description": "Partial refunds for bookings of nonmembers.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "percent": {
      +        "description": "Share of what the booking was paid with that is refunded, from 1 to 99.",
      +        "maximum": 99,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "value": {
      +        "description": "How long before start the booking must be canceled to get this share back.",
      +        "enum": [
      +          "zeroMinutes",
      +          "fifteenMinutes",
      +          "thirtyMinutes",
      +          "oneHour",
      +          "twoHours",
      +          "fourHours",
      +          "sixHours",
      +          "twelveHours",
      +          "oneDay",
      +          "twoDays",
      +          "oneWeek",
      +          "twoWeeks",
      +          "fourWeeks"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "percent",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / resource / properties / refundPolicy / properties / public / required
      Previous value: -[
      -  "enabled",
      -  "value"
      -]New value: +[
      +  "enabled",
      +  "partialRefunds",
      +  "value"
      +]
    • changedOutput schema / properties / resource / properties / refundPolicy / required
      Previous value: -[
      -  "public",
      -  "value"
      -]New value: +[
      +  "partialRefunds",
      +  "public",
      +  "value"
      +]
  6. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Although annotations already declare destructiveHint=true, the description goes well beyond them by enumerating the actual blast radius: cancelled bookings without refund, removed assignments, and unlinking from subscriptions. It also states the operation is permanent and irreversible and that the pre-delete resource is returned, which is exactly the context an agent needs before a destructive call.

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?

Three tight sentences, front-loaded with the irreversible consequence before the mechanical details and the parameter sourcing rule. No filler or redundant restatement of the schema.

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 one-parameter destructive tool with an output schema present, the definition covers consequences, reversibility, ID provenance, and return value behavior. Nothing an agent needs to invoke this safely is missing.

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 100% and the single parameter is documented as "The id of the resource." The description adds provenance guidance (obtain from getResources, never fabricate) that the raw schema format/pattern cannot convey, lifting it above the baseline for high-coverage schemas.

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 opening sentence pairs a specific verb ("Delete") with a specific resource ("a bookable resource"), which cleanly separates it from siblings like deleteAssignment, deleteProduct, or cancelBooking. An agent can identify the operation and its target 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 Guidelines4/5

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

The description gives an explicit prerequisite path: "Get resourceId from getResources" and an explicit prohibition: "Never invent UUIDs; only use values from prior tool responses." It does not name when-not-to-use alternatives (e.g., cancel vs. delete), but the sourcing guidance is concrete and actionable.

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