Skip to main content
Glama

createResource

Create a bookable resource, such as a room, desk, office, or parking lot, in a location. Returns the created resource. Call getLocations to list locations, or getLocation to fetch one by locationId. Omit duration, bookingStepMinutes, and schedule unless the user asks for booking limits or opening hours: the resource type defaults apply. Money and credits tier unitAmount is the hourly price; price a monthly resource such as an office with plans tiers instead. Leave out media: files cannot be uploaded here, so images are added 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": {
      "resource": "<resource>"
    },
    "name": "createResource"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceYesResource fields to create.

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
Behavior4/5

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

Annotations declare a non-read-only, non-destructive write, and the description adds real context beyond them: that media files cannot be uploaded through this tool, that defaults apply when optional blocks are omitted, and that returned IDs must come from prior tool responses rather than being invented. It does not cover permission requirements or what happens on duplicate/conflicting resources, so it stops short of a 5.

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?

Six short sentences, each handling a distinct concern (identity, prerequisites, optional omissions, pricing model, media exclusion, ID provenance), with the core purpose front-loaded. The only near-waste is "Returns the created resource", which is redundant given an output schema exists.

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 create call with a very large nested schema, an output schema, and annotations, the description covers the highest-risk pitfalls (fake UUIDs, mis-set hourly pricing, uploading media here, over-specifying schedule blocks). It does not restate the required resource fields (locationRef, title, type) or parentRef chaining, but those are adequately encoded in the schema.

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 description coverage is 100%, so the baseline is 3, and the description earns above that by warning that money/credits tier unitAmount is an hourly price and that monthly offerings should use plans tiers. That is decision-relevant semantics the schema alone describes only field-by-field, without saying which pricing model to pick.

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?

Opens with a specific verb+resource pair ("Create a bookable resource") and immediately bounds the scope with concrete examples (room, desk, office, parking lot) plus the parent location. The verb "Create" cleanly separates it from the sibling updateResource/getResource tools without needing to name them.

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?

Explicitly routes the agent to getLocations/getLocation for the locationId prerequisite, and gives conditional guidance for optional blocks: omit duration, bookingStepMinutes and schedule unless booking limits or opening hours are requested, and leave out media entirely. It also steers agents wanting monthly pricing toward plans tiers instead of money/credits, which is a genuine when-to-use-which decision.

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