Skip to main content
Glama

Get Business Availability

get_availability
Read-onlyIdempotent

Return available windows from the business's active configured calendar, using its selected timezone, duration, operating hours, and current local or connected-calendar occupancy. Use a returned window to start a booking. Availability can change before confirmation, including when the calendar provider is unavailable. If this business uses an unsupported calendar or booking provider, call get_booking_destination to find its published public booking route.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesBusiness slug identifier
window_endNoUnix seconds (absolute instant; default now + 7 days). See window_start on reading the response's `timezone`.
window_startNoUnix seconds (absolute instant; default now). The business's own timezone is not an input — it is returned as `timezone` in the response. To target a local phrase like "Tuesday afternoon", request a generously wide window and filter the returned slots using that `timezone`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotsYes
sourceYes
timezoneYes
generated_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / window_end / description
      Previous value: -"Unix seconds; default now + 7 days"New value: +"Unix seconds (absolute instant; default now + 7 days). See window_start on reading the response's `timezone`."
    • changedInput schema / properties / window_start / description
      Previous value: -"Unix seconds; default now"New value: +"Unix seconds (absolute instant; default now). The business's own timezone is not an input — it is returned as `timezone` in the response. To target a local phrase like \"Tuesday afternoon\", request a generously wide window and filter the returned slots using that `timezone`."
  2. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • addedInput schema / properties / window_end / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / window_start / maximum
      Added value: +9007199254740991
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "generated_at": {
      +      "type": "number"
      +    },
      +    "slots": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "capacity": {
      +            "type": "number"
      +          },
      +          "end": {
      +            "type": "number"
      +          },
      +          "start": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "start",
      +          "end",
      +          "capacity"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "timezone": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "slots",
      +    "source",
      +    "timezone",
      +    "generated_at"
      +  ],
      +  "type": "object"
      +}
  3. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / slug / description
      Previous value: -"Business slug identifier"New value: +"business slug"
    • removedInput schema / properties / window_end / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / window_start / maximum
      Removed value: -9007199254740991
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "generated_at": {
      -      "type": "number"
      -    },
      -    "slots": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "capacity": {
      -            "type": "number"
      -          },
      -          "end": {
      -            "type": "number"
      -          },
      -          "start": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "start",
      -          "end",
      -          "capacity"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "source": {
      -      "type": "string"
      -    },
      -    "timezone": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "slots",
      -    "source",
      -    "timezone",
      -    "generated_at"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • addedInput schema / properties / window_end / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / window_start / maximum
      Added value: +9007199254740991
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "generated_at": {
      +      "type": "number"
      +    },
      +    "slots": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "capacity": {
      +            "type": "number"
      +          },
      +          "end": {
      +            "type": "number"
      +          },
      +          "start": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "start",
      +          "end",
      +          "capacity"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "timezone": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "slots",
      +    "source",
      +    "timezone",
      +    "generated_at"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds valuable behavioral context beyond these: it explains that availability is computed using the business's timezone, duration, operating hours, and occupancy, and it discloses that results can change before confirmation, including when the calendar provider is unavailable. This reinforces the openWorldHint and provides operational insight without contradicting annotations.

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?

The description is three sentences with no filler. The first sentence delivers the core functionality, the second gives a direct usage instruction, and the third adds a critical caveat and an alternative route. It is front-loaded and every sentence earns its place.

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 read-only tool with a full output schema, the description covers the key context: what it does, how results are computed, that they can change, and what to do for unsupported providers. Nothing essential for an agent to correctly invoke this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema descriptions cover all three parameters with 100% coverage, explaining window_start and window_end defaults and the timezone handling. The description does not add any additional parameter-specific meaning beyond what the schema provides, so it stays at the baseline for full schema coverage.

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 description states the exact purpose: 'Return available windows from the business's active configured calendar' – a specific verb, resource, and scope. It clearly differentiates from siblings by mentioning get_booking_destination as an alternative for unsupported providers, and it implies that this tool is for retrieving availability, not for booking directly.

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?

It explicitly states when to use this tool ('Use a returned window to start a booking') and provides an alternative condition: 'If this business uses an unsupported calendar or booking provider, call get_booking_destination'. This gives clear routing guidance and covers the primary use case and exclusion.

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.