Skip to content

get_my_passes

List what the viewer holds and can spend.

Anonymous, or a Bearer token for viewer tools

Endpoint

endpoint
https://go.sessions.website/api/mcp

When to use it

  • When the person asks how many classes they have left, or whether their membership is live.

  • Before booking, to tell the person whether a pass or membership covers the session.

Parameters

includeInactivebooleanoptional

Also include spent, expired and cancelled ones (default false).

Returns

Passes with credits left, live memberships and gift-card balances, each with its business, status and expiry or renewal date. Gift-card codes are never returned. Pass includeInactive to include spent, expired and cancelled ones. Requires the auth cookie or a Bearer token.

Example

POST this to the endpoint above.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_my_passes",
    "arguments": {}
  }
}
content
2 held:
- Pass: 10-class pass (Riverside Yoga, @riverside)
  · active · 4 credit(s) left · expires 2027-01-31
- Gift card: Gift card · active · $25.00 left

What the agent is told

The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.

get_my_passes
List what the signed-in person holds and can spend: class passes with credits left, live memberships, and gift-card balances, each with its business and expiry. Use it before booking to say whether a pass covers a session. Requires a linked Sessions account.

See also