Skip to main content
Glama

Find BJJ classes and open mats

find_classes
Read-onlyIdempotent

Find classes on gyms' weekly timetables near a place: open mats, no-gi, kids, fundamentals, competition training, by day (a weekday, today, tonight, tomorrow or a date), time window, gi/no-gi and level. Times are the gym's local wall clock, labelled with its timezone. Timetables are what gyms publish weekly: for one-off cancellations this week check get_gym with sections [changes].

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
giNogi or nogi. Classes with no stated kit are kept.
dayNomonday..sunday, today, tonight (today from 17:00), tomorrow, or YYYY-MM-DD.
daysNoSeveral weekdays at once, e.g. ["tuesday", "wednesday", "thursday"] for a trip. Use instead of `day`.
fromNoEarliest start, local HH:MM.
nearNoA place the user named ("Lisbon", "Austin, TX", "Kraków, Poland") or "lat,lng". A country or US state searches the whole area. Ask the user rather than guessing their location.
levelNo
limitNoResults per page (default 10, max 25).
typesNoClass types. Default: adult BJJ (bjj, nogi, fundamentals, advanced, open_mat, competition_training). Kids: kids_bjj.
untilNoLatest start, local HH:MM.
cursorNonext_cursor from the previous page; repeat the same arguments with it.
detailNobrief (default) or full: more facts per result, fewer results per page.brief
countryNoLimit to a country by name, e.g. "Portugal".
radius_kmNoSearch radius around `near` in km. Defaults to the city's own size (10-40 km).

Output Schema

NameRequiredDescriptionDefault
notesYesCaveats to pass on to the user.
totalYes
offsetNo
resultsYes
coverageNoFor thin facts: how many records in the area state the fact at all. Records without it are unknown, not 'no'.
has_moreYes
returnedYes
candidatesNoSet when the input matched several things: ask the user which one, then call again.
next_cursorNo
resolved_placeNoWhere `near` resolved to. Echo it so the user can correct a wrong guess.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful context beyond that: times are the gym's local wall clock labelled with its timezone, and the data is weekly-published so cancellations fall outside its scope. Pagination and return shape are left to the output schema.

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?

Two front-loaded sentences with the core purpose first and the caveat last. The enumeration of class types partly duplicates the `types` enum, but it earns its place as a quick capability summary and nothing is padded.

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 13-parameter, all-optional search tool with annotations and an output schema, the description covers the essential framing: what is searched, where, in which time basis, and what it excludes. Minor gaps around result ordering or how multiple filters combine are acceptable given the schema 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 92%, so the schema already documents nearly every parameter including enum meanings and defaults. The description's recap of day, time window, gi/no-gi and level largely restates those fields rather than adding format or precedence rules.

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?

States a specific verb and resource ('Find classes on gyms' weekly timetables') plus the locational scope ('near a place'), then enumerates the filterable dimensions. An agent can immediately tell this is a timetable search, not an event or camp lookup.

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 routes the agent to get_gym with sections [changes] for one-off cancellations, and defines the tool's domain as weekly published timetables. It does not distinguish against find_camps or find_events, so the alternative-selection guidance is incomplete rather than exhaustive.

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