Skip to main content
Glama
smart-gym-mcp
by sla1k

smartgym_get_workout_history

Read-only

List past workouts newest first with duration, calories, heart rate, and pagination. Filter by 7/14/30 days, custom date range, or routine to review training history.

Instructions

List past workouts (newest first) with duration, calories and heart rate.

Defaults to the last 7 days (or 14/30 via `days`); explicit `date_from` / `date_to`
(inclusive, local time) override it. Optional `routine` filter (name or id).
Paginated: total, has_more, next_offset.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
limitNo
offsetNo
date_toNo
routineNo
date_fromNo

Output Schema

NameRequiredDescriptionDefault
countYes
totalYes
offsetYes
has_moreYes
sessionsYes
next_offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.0
    • changedInput schema / properties / date_from / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / date_to / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real behavioral detail beyond that — result ordering, the default lookback window and its precedence rules, inclusive local-time date semantics, and the pagination contract (total, has_more, next_offset). It does not state any cap on `limit` or rate/timeout behavior, which keeps it short of a 5.

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 tight lines, front-loaded with what the tool returns before the parameter behavior. Every sentence conveys a distinct constraint (default window, override rule, filter type, pagination fields) with no filler.

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?

An output schema exists, so return-value detail is not required, and the description covers filtering, windowing, and pagination for a moderately parameterized read tool. The only gap is that page-size and offset mechanics are left implicit.

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?

Schema description coverage is 0%, so the description must carry the load and largely does: it explains the `days` enum values, the override relationship between `date_from`/`date_to` and `days`, date inclusivity and timezone, and that `routine` accepts a name or an id. It never explicitly defines `limit` or `offset` (defaults, max), which are only implied by the pagination sentence.

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 ("List past workouts") plus the returned metrics (duration, calories, heart rate) and the sort order (newest first). No sibling tool covers workout history, so an agent can route here without ambiguity.

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 clear selection context: default 7-day window, 14/30 via `days`, and explicit `date_from`/`date_to` overriding the window. It does not name a when-not-to-use case, but there is no competing history tool among the siblings, so the guidance is sufficient.

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