Skip to main content
Glama

Check open time slots

get_availability
Read-onlyIdempotent

List open time slots (Asia/Taipei) for one service in the next 1–14 days, with remaining capacity. Use this when the user asks when they can go or wants a particular day or time (e.g. 「週日早上有空嗎」), and pick the slots on that day and time. Use the returned slot value as-is in request_booking. Read-only.

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": {
      "business_id": "<business_id>",
      "service_id": "<service_id>"
    },
    "name": "get_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days ahead, default 14
teacherNoOnly slots taught by this teacher or trainer
service_idYesservice_id from get_business
business_idYesbusiness_id from search_businesses

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint, so safety is covered; the description adds real context beyond that — timezone normalization, the 1–14 day lookahead window, capacity in the payload, and the important warning that the slot value must be passed through unchanged. It does not describe slot granularity or how many results come back.

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?

Three front-loaded sentences that each carry information: what it returns, when to use it, and how to chain it. The trailing 'Read-only.' restates readOnlyHint and is the only wasted token.

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?

With no output schema, the description carries the return-value burden and does so adequately by mentioning slot values plus remaining capacity. It leaves the exact response shape (grouping by day, slot fields) implicit, which is a minor gap for a read tool with full annotation coverage.

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?

Schema description coverage is 100%, so the schema already explains business_id, service_id, teacher, and days. The description echoes the days window and adds timezone/capacity framing but supplies no extra semantics for teacher filtering or defaults beyond what the schema states.

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 first sentence names a specific verb and resource (list open time slots), the scope (one service, next 1–14 days), the timezone (Asia/Taipei), and the payload (remaining capacity). This clearly separates it from siblings like get_business (metadata lookup) and request_booking (mutation).

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?

It gives an explicit trigger with a concrete example query (「週日早上有空嗎」) and tells the agent how to consume results (pick slots on the requested day/time, pass the slot value as-is into request_booking). It stops short of stating when NOT to use it, e.g. that business_id must first come from search_businesses.

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.