Skip to main content
Glama

getResourceAvailability

Read-only

Check whether a resource can be booked for a slot before creating a booking. Requires resourceId, startDate and endDate; seat-based resources such as hot desks also need quantity, and an office can be checked as a whole with entire. Pass recurrence as RRULE lines to check a repeating slot; it is unavailable as soon as any occurrence is. Returns available, and when false the reason with the code the booking would fail with. 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>",
      "endDate": "<endDate>",
      "startDate": "<startDate>"
    },
    "name": "getResourceAvailability"
  }
}

Input Schema

NameRequiredDescriptionDefault
entireNoSet to true to check the entire resource instead of individual seats. Supported for office resources.
endDateYesThe end of the slot to check, in ISO 8601.
quantityNoThe number of seats to check. Required for seat-based resources such as hot desks, unless entire is true.
startDateYesThe start of the slot to check, in ISO 8601.
recurrenceNoRRULE lines describing a repeating slot, e.g. `RRULE:FREQ=WEEKLY;COUNT=10`. The DTSTART line is derived from startDate. The slot is unavailable as soon as any occurrence is.
resourceIdYesThe id of the resource.

Output Schema

NameRequiredDescriptionDefault
reasonNoThe first rule the slot breaks. Present only when available is false.
availableYesWhether the resource can be booked for the requested slot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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 the safety profile is covered; the description contributes the non-obvious semantics instead – recurrence is all-or-nothing ("unavailable as soon as any occurrence is") and a false result carries the failure code the booking would hit. It stops short of saying whether the check throws on bad input or is advisory only, which keeps it off 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?

Front-loaded with the purpose, then prerequisites, then parameter rules, then return shape – a sensible order with no filler. The recurrence sentence repeats some of what the recurrence parameter description already says, which is the only wasted phrasing.

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?

Covers purpose, prerequisites, conditional parameter rules, and the shape of the result including the failure reason and code, so an agent can call it and interpret both outcomes. With an output schema present, no further return-value detail is owed.

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?

With 100% schema coverage the baseline is 3, and the description adds cross-parameter logic the per-field schema text only partly captures: quantity is conditional on seat-based resources unless entire is true, and entire applies specifically to offices checked as a whole. The RRULE/DTSTART derivation from startDate is also clarified beyond the parameter description.

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 and resource: "Check whether a resource can be booked for a slot before creating a booking." That phrasing distinguishes it from the booking-creation siblings and from getResources, so an agent knows this is a pre-flight availability probe, not a mutation.

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?

States the exact moment to call it (before creating a booking) and the prerequisite chain ("Get resourceId from getResources. Never invent UUIDs; only use values from prior tool responses"). This is a real ordering constraint that prevents a common failure mode, not just context.

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