Skip to main content
Glama

Mille-Feuille Bakery — Baking Classes

check_availability

Check whether one class session can take a group of a given size, right now. An "opening" is a scheduled class session on a specific date and time. Use get_classes_and_availability first to find opening IDs. Returns "available" (true or false) and "availableSpots". When false, "reason" says why — "not_enough_spots" (fewer seats left than asked; availableSpots gives how many), "sold_out", "closed" (the bakery is not taking bookings for this session), "cancelled", "private" (reserved for a private group), "past" — and "message" puts it in a sentence. An openingId that names no session is an error: get current IDs from get_classes_and_availability.

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": {
      "openingId": "<openingId>",
      "ticketCount": "<ticketCount>"
    },
    "name": "check_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
openingIdYesThe opening ID (from get_classes_and_availability results)
ticketCountYesNumber of spots needed (group size), 1 or more

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / ticketCount / description
      Previous value: -"Number of spots needed (group size)"New value: +"Number of spots needed (group size), 1 or more"
    • addedInput schema / properties / ticketCount / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / ticketCount / minimum
      Added value: +1
    • changedInput schema / properties / ticketCount / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the exact return shape ("available" and "availableSpots"), enumerates every failure reason code with its meaning, and specifies that an unknown openingId is an error rather than a false result. The notable omission is whether checking reserves or holds a seat — a meaningful distinction in a booking domain — and there is no statement of permissions or rate behavior.

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 core question, then the dependency, then the return contract, then the error case — a sensible order with no filler sentences. The reason-code enumeration is dense but each code earns its place by telling the agent how to react to a false result.

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?

There is no output schema, so the description rightly spends most of its length defining the response, including the boolean, the numeric detail, and the enumerated reasons — enough for an agent to branch on the result without guessing. It falls short of fully complete only on the side-effect question (does a check consume or hold capacity) and on any indication of freshness or rate limits for a live-capacity call.

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 both parameters are already documented in the schema, including that openingId comes from get_classes_and_availability and that ticketCount is the group size with a minimum of 1. The description restates those semantics rather than adding new ones (e.g. no note on what happens at very large ticketCount or whether ticketCount interacts with availableSpots). Baseline 3 applies.

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?

"Check whether one class session can take a group of a given size, right now" names a specific verb (check), a specific resource (a scheduled class session / opening), and a scope constraint (right now, i.e. live capacity). It also defines the domain term "opening" inline so the agent does not have to infer it, and it is clearly distinct from get_classes_and_availability, which only supplies IDs.

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?

Explicitly states the prerequisite ordering: "Use get_classes_and_availability first to find opening IDs," and repeats the recovery path for a bad ID ("get current IDs from get_classes_and_availability"). It does not state any when-not-to-use condition, but with only one sibling this is a minor gap rather than a missing guideline.

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