Skip to main content
Glama

getResource

Read-only

Get one resource by resourceId. 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": "getResource"
  }
}

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

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered; the description adds a non-obvious operational constraint (ids must originate from prior tool responses, never invented) that goes beyond the annotations. It does not describe behavior on a missing/unknown id, which keeps it 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.

Conciseness5/5

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

Three short sentences, zero filler, with the core action front-loaded and the id-provenance guard placed immediately after. Every sentence carries distinct information.

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 read tool with full schema coverage, complete annotations, and an output schema covering return values, the description supplies everything an agent needs to call it correctly: the action, the id source, and the anti-hallucination rule.

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 schema already gives the UUID format and pattern, so the baseline is 3. The description earns an extra point by adding provenance semantics — where the value must come from and the prohibition on fabricated UUIDs — which the schema does not state.

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 ('Get one resource by resourceId') and makes the singular-vs-list distinction explicit by pointing at getResources as the source of ids, so an agent can separate it from the sibling list tool without opening either 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 a concrete prerequisite workflow: obtain resourceId from getResources first, and never fabricate UUIDs. There is no explicit 'do not use this when...' exclusion, but for a single-record fetch the ordering guidance is the guidance that matters.

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