Skip to main content
Glama

Session capacity

session_capacity
Read-only

Seats per class session: capacity, booked (bookings with status booked or attended), free, waitlist capacity and waitlisted count. Give class_session_id for one session, or a date range (default: the next 7 days) optionally filtered by offering.

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": "session_capacity"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date/time, default from + 7 days.
fromNoISO date/time, default now.
limitNoMax sessions (default 50, max 200).
offering_idNo
class_session_idNo

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=true and destructiveHint=false, so the lower bar applies; the description still adds real semantics by defining 'booked' as bookings with status booked or attended and by disclosing the default time window. It leaves ordering and behavior when both selectors are passed unstated.

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?

Two sentences: the first front-loads the returned measures, the second covers invocation modes. Nothing is redundant with the annotations or title, and every clause carries information.

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 usefully enumerates the returned fields and defines the ambiguous one (booked). Remaining gaps — result ordering, conflict between class_session_id and date range — are minor for a read-only capacity query.

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

Parameters4/5

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

Compensates for the 60% schema coverage: offering_id and class_session_id are undocumented in the schema but explained here as the per-session selector and the offering filter. It also restates the 7-day default window, clarifying how from/to behave together.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the resource (seats per class session) and enumerates the exact metrics returned: capacity, booked, free, waitlist capacity, waitlisted count. The resource is clearly distinct from the session-mutating siblings, though it never explicitly routes away from any named alternative.

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?

Gives two concrete invocation modes: pass class_session_id for a single session, or a date range (defaulting to the next 7 days) optionally filtered by offering. It does not say what happens if both are supplied or when to prefer one mode, but the context for each is clear.

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