Skip to main content
Glama

get_exercise_history

Read-onlyIdempotent

Everything the user has done for ONE exercise across sessions: all-time PR plus recent performance.

USE FOR:

  • PR lookups ("what's my bench PR?", "have I ever squatted 315?"): the est. 1RM PR and the exact set behind it (date, weight, reps, RPE, banded vs unbanded, superset siblings, notes), plus rep-range bests (1RM/3RM/5RM/10RM). Banded and unbanded PRs side by side when both exist.

  • recent activity ("how has my squat been lately?", "when did I last deadlift?"): the most recent N sessions containing the exercise, formatted like get_workout.

  • trend ("am I getting stronger on incline DB press?"): a one-line delta of current best vs ~30-90 days ago.

NOT for: a full session (get_workout) or a date-window list regardless of exercise (list_workouts). INFER, do not ask: exercise_name from the user's words (it resolves to canonical, or says the exercise was never logged); recent_limit and since_date from their defaults.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "exercise_name": "<exercise_name>"
    },
    "name": "get_exercise_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
since_dateNoYYYY-MM-DD lower bound for the Recent block only; the PR is always all-time.
recent_limitNoRecent sessions to return; default 10, max 50.
exercise_nameYesFree text; resolved to canonical (e.g. "bench" -> "Bench Press").

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / exercise_name / description
      Previous value: -"Exercise to look up. Required. Free-text — the tool resolves to canonical (e.g. \"bench\" → \"Bench Press\")."New value: +"Free text; resolved to canonical (e.g. \"bench\" -> \"Bench Press\")."
    • changedInput schema / properties / recent_limit / description
      Previous value: -"How many recent sessions containing this exercise to surface. Optional — default 10, capped at 50."New value: +"Recent sessions to return; default 10, max 50."
    • changedInput schema / properties / since_date / description
      Previous value: -"Optional YYYY-MM-DD lower bound for the Recent block. Does not affect the PR section, which is always all-time."New value: +"YYYY-MM-DD lower bound for the Recent block only; the PR is always all-time."
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description adds genuine behavior beyond them: exercise_name resolves to a canonical name or reports that the exercise was never logged, since_date bounds only the Recent block while the PR is always all-time, and banded/unbanded PRs are returned side by side. It stops short of describing limits such as how the ~30-90 day trend baseline is chosen or result truncation.

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?

Front-loaded summary sentence, then clearly labeled USE FOR / NOT for / INFER blocks with parenthetical user examples instead of prose padding. Every line either assigns a mode, routes to an alternative, or prevents a bad parameter question; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and rich annotations, the description need not explain return structures, and it correctly spends its budget on mode selection, PR composition, and name resolution. All three parameters are accounted for and an agent has everything needed to call this correctly in a single turn.

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 coverage is 100%, so the baseline is 3 and the schema already explains each parameter. The description adds useful semantics on top: the scoping rule that since_date affects only the Recent block, resolution behavior for free-text exercise_name including the never-logged case, and the instruction to infer values from user defaults instead of prompting. This is meaningful added meaning rather than restatement.

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 with precise scope ('everything the user has done for ONE exercise across sessions'), and immediately enumerates the three answer shapes it covers: PR lookup, recent activity, and trend. It explicitly names the sibling resources it is not (get_workout, list_workouts), so an agent can distinguish it without opening a schema.

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

Usage Guidelines5/5

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

Provides an explicit USE FOR block with quoted user phrasings mapped to each mode, plus a NOT for block naming the alternatives (get_workout for a full session, list_workouts for a date-window list regardless of exercise). It even instructs the agent to infer parameters rather than ask, removing the main remaining decision point.

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.