Skip to main content
Glama

get_sessions

Read-only

Retrieve an athlete's completed and planned training sessions for a date range of 1–90 days or a single date, so agents can review past and upcoming workouts.

Instructions

The athlete's training sessions — completed and planned — over the last days days (1-90), or for one date (YYYY-MM-DD).

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

Input Schema

NameRequiredDescriptionDefault
dateNo
daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so safety is covered. The description adds genuine behavioral context by stating that planned sessions are returned alongside completed ones, which an agent could not infer otherwise, plus the validated 1-90 range. It says nothing about result volume, pagination, or ordering, which matters for a wide date window.

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?

A single sentence with no filler, and the two operating modes are front-loaded. It is a noun-phrase fragment rather than a full statement of action, which is slightly terse but not wasteful.

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-optional-parameter read tool with an output schema, the description covers both operating modes and both parameter formats, so an agent can call it correctly in the common case. The remaining gap is the date-vs-days precedence and the unstated 14-day default, which is a minor omission given the tool's low complexity.

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 0%, so the description must carry parameter meaning, and it partially does: it bounds `days` to 1-90 and gives the `date` format as YYYY-MM-DD. It omits the default of 14 days and never explains what happens if both parameters are supplied, leaving the precedence rule undocumented in both schema and description.

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?

The description names the resource precisely (the athlete's training sessions) and, importantly, its scope — both completed and planned sessions — so an agent knows exactly what data comes back. It does not explicitly differentiate itself from siblings such as log_workout or plan_workout, but the read-oriented framing makes the distinction inferable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the two modes offered: a rolling window over the last `days` days, or one specific `date`. That gives the agent enough to pick a call shape, but there is no explicit statement of when this tool is preferred over siblings like log_workout or plan_workout, and no exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.