Skip to main content
Glama

updateResource

Destructive

Change fields of a bookable resource; omitted fields keep their current values. Returns the updated resource. A nested object such as money, credits, plans, duration, or schedule must be passed complete, and a list inside it, such as tiers, replaces the current one: read the resource with getResource first and send the whole object with the change. Get resourceId from getResources. Leave out media: files cannot be uploaded here, and the list replaces the current images, so images are changed in the Spacebring admin app. 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>",
      "resource": "<resource>"
    },
    "name": "updateResource"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceYesResource fields to update.
resourceIdYesThe id of the resource.

Output Schema

NameRequiredDescriptionDefault
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / resource / properties / doorflowGroupRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "DoorFlow access group reference.",
      +  "x-visibility": "internal"
      +}
    • addedOutput schema / properties / resource / properties / doorflowGroupRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "DoorFlow access group reference."
      +}
  2. Changed10 schema fields changed
    • removedInput schema / properties / resource / properties / addons
      Removed value: -{
      -  "description": "Shop products members can order together with a booking of this resource.",
      -  "properties": {
      -    "products": {
      -      "description": "Products from the resource's location, in the order they are offered.",
      -      "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"
      -      },
      -      "maxItems": 25,
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "products"
      -  ],
      -  "type": "object",
      -  "x-visibility": "internal"
      -}
    • addedInput schema / properties / resource / properties / crossSells
      Added value: +{
      +  "description": "Shop products members can order together with a booking of this resource.",
      +  "properties": {
      +    "products": {
      +      "description": "Products from the resource's location, in the order they are offered.",
      +      "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"
      +      },
      +      "maxItems": 25,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "products"
      +  ],
      +  "type": "object",
      +  "x-visibility": "internal"
      +}
    • removedInput schema / properties / resource / properties / plans / properties / tiers / items / properties / addons
      Removed value: -{
      -  "default": [],
      -  "description": "Addons included in the tier.",
      -  "items": {
      -    "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"
      -}
    • addedInput schema / properties / resource / properties / plans / properties / tiers / items / properties / crossSells
      Added value: +{
      +  "description": "Plans members can buy together with this tier. Kept as stored when omitted.",
      +  "properties": {
      +    "plans": {
      +      "description": "Plans of the same location and cycle, in the order they are offered.",
      +      "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"
      +}
    • 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. Changed2 schema fields changed
    • changedInput schema / properties / resource / properties / dayPassesEnabled / description
      Previous value: -"Whether members can book this resource with day passes. Only hotDesk resources support day passes; enabling it for any other type is rejected."New value: +"Whether members can book this resource with day passes. A booking takes one day pass per seat for each day it spans."
    • 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. Changed2 schema fields changed
    • addedInput schema / properties / resource / properties / plans / properties / tiers / items / properties / selfSignup / properties / contract
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Contract the customer signs to start a subscription from an immediate sign-up. Leave it out when none is required.",
      +  "properties": {
      +    "templateRef": {
      +      "description": "ID of a contract template of the resource's location.",
      +      "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"
      +}
    • 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. Changed6 schema fields changed
    • addedInput 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. On update, leave it out to keep the current partial refunds, or send an empty list to remove them.",
      +  "items": {
      +    "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"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • addedInput schema / properties / resource / properties / refundPolicy / properties / public / properties / partialRefunds
      Added value: +{
      +  "description": "Partial refunds for bookings of nonmembers. On update, leave it out to keep the current partial refunds, or send an empty list to remove them.",
      +  "items": {
      +    "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"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • 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.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description explains the actual hazard: nested objects must be sent complete and any list inside them replaces the stored list, so an incomplete send silently drops data. It also discloses the return value and the media exclusion, which the annotations cannot express.

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?

One dense paragraph, front-loaded with the partial-update rule and the destructive replacement rule, then the read-first workflow and the media exclusion. 'Returns the updated resource' is slightly redundant given an output schema exists, but the rest earns its place.

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

Completeness4/5

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

For a two-parameter tool with a very deep nested schema and an output schema, the description covers the failure modes that matter: partial updates, object replacement, media exclusion, and id provenance. It does not mention permission or validation requirements, but nothing an agent needs to call it correctly 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%, so the baseline is 3, but the description adds cross-cutting rules the schema does not state as a whole: whole-object replacement for money/credits/plans/duration/schedule, list replacement, and UUID provenance. Only resourceId and the top-level shape are left to the schema.

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?

States a specific verb and resource ('Change fields of a bookable resource') and immediately scopes the semantics to a partial update ('omitted fields keep their current values'). That is enough for an agent to distinguish it from createResource/deleteResource 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?

Gives an explicit workflow: read with getResource first, take resourceId from getResources, and never invent UUIDs. It also names one hard exclusion (leave out media, do it in the admin app). It stops short of saying when to use this versus createResource/deleteResource, but the surrounding guidance is concrete rather than implied.

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