Skip to main content
Glama

Public classes

list_public_classes
Read-only

Show a club's public class schedule for one week, e.g. to find a free class's occurrence_key. Not for booking or paying for a paid class. Returns occurrence keys, dates, capacity and public actions.

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": {
      "branch_slug": "<branch_slug>",
      "week_start": "<week_start>"
    },
    "name": "list_public_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
week_startYesStart date for the requested calendar week in YYYY-MM-DD format, in the club's timezone.
branch_slugYesPublic club slug returned by search_clubs; this is not a branch UUID.

Output Schema

NameRequiredDescriptionDefault
classesYes
timezoneNo
week_startYes
branch_nameNo
branch_slugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / branch_slug / description
      Added value: +"Public club slug returned by search_clubs; this is not a branch UUID."
    • addedInput schema / properties / week_start / description
      Added value: +"Start date for the requested calendar week in YYYY-MM-DD format, in the club's timezone."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "PublicClass": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "date": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Date"
      +        },
      +        "duration_min": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Duration Min"
      +        },
      +        "is_kids_only": {
      +          "default": false,
      +          "title": "Is Kids Only",
      +          "type": "boolean"
      +        },
      +        "kind": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Kind"
      +        },
      +        "location_name": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Location Name"
      +        },
      +        "occurrence_key": {
      +          "title": "Occurrence Key",
      +          "type": "string"
      +        },
      +        "paid": {
      +          "default": false,
      +          "title": "Paid",
      +          "type": "boolean"
      +        },
      +        "public_action": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Public Action"
      +        },
      +        "remaining_capacity": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Remaining Capacity"
      +        },
      +        "start_time": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Start Time"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Title"
      +        }
      +      },
      +      "required": [
      +        "occurrence_key"
      +      ],
      +      "title": "PublicClass",
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": true,
      +  "properties": {
      +    "branch_name": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Branch Name"
      +    },
      +    "branch_slug": {
      +      "title": "Branch Slug",
      +      "type": "string"
      +    },
      +    "classes": {
      +      "items": {
      +        "$ref": "#/$defs/PublicClass"
      +      },
      +      "title": "Classes",
      +      "type": "array"
      +    },
      +    "timezone": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Timezone"
      +    },
      +    "week_start": {
      +      "title": "Week Start",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "branch_slug",
      +    "week_start",
      +    "classes"
      +  ],
      +  "title": "PublicClasses",
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: the result is bounded to a single calendar week, the key identifier is occurrence_key, and the call is scoped to public (not member) data. It says nothing about pagination or how recurring classes are represented.

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 with the purpose front-loaded, followed by the exclusion and the return contents. Every sentence carries information, and nothing is repeated from the schema.

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?

For a two-parameter read-only listing with full schema coverage, complete annotations and an output schema, the definition covers purpose, boundary and return shape adequately. Minor gaps remain around edge behavior (invalid or unknown slug, how empty weeks are returned), but these are small relative to the tool's simplicity.

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%, and both parameters (branch_slug, week_start) are fully documented in the schema, including the note that the slug is not a UUID and that week_start is in the club's timezone. The description only echoes that the window is one week and adds no new syntax or format detail, so the baseline of 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?

The description names a specific verb and resource with scope: 'Show a club's public class schedule for one week.' The words 'public' and 'a club's' implicitly separate it from the sibling list_my_classes, and the stated motive ('to find a free class's occurrence_key') tells an agent exactly what this tool produces.

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 both a positive use case (finding the occurrence_key of a free class) and an explicit exclusion ('Not for booking or paying for a paid class'), which correctly steers away from set_class_rsvp. It stops short of naming that alternative tool, so the agent must infer which sibling handles booking.

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