Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_training_summary

Aggregates workout data by week, month, or year, returning counts, total and average distance/duration, and energy burned, with optional activity-type and date-range filters.

Instructions

Get aggregated training summary grouped by time period, newest first.

Args: activity_type: Filter by activity type (e.g. "running"). Omit for all types. period: Grouping period - one of "week", "month", or "year" (default "month"). start_after: Only aggregate workouts starting after this datetime (ISO 8601). start_before: Only aggregate workouts starting before this datetime (ISO 8601). limit: Max rows returned (default 52, max 500). One row per period × activity_type, newest first — without activity_type a period spans multiple rows. History past the limit stays reachable by paging back with start_before.

Returns: List of summary objects, each with: period, activity_type, count, total_distance, total_duration, avg_distance, avg_duration, total_energy_burned.

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_training_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
periodNomonth
start_afterNo
start_beforeNo
activity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does notable work: it discloses aggregation semantics, newest-first ordering, row granularity ('one row per period × activity_type'), the limit default of 52 and max of 500, and how history past the limit remains reachable via start_before paging. It does not mention auth requirements or rate limits, but for a read aggregation endpoint those are minor omissions.

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?

The description is front-loaded with the core purpose, then organized into Args and Returns blocks where each line earns its place. The Returns block is required since no output schema exists, though the prose is slightly verbose in the limit explanation.

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 five-parameter aggregation tool with zero annotation and zero output-schema support, the definition supplies the grouping, filter, ordering, pagination, and return-field information an agent needs to call it correctly. Only the absence of sibling routing guidance keeps it from being fully complete.

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

Parameters5/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 compensate entirely, and it does: all five parameters are explained with meaning, defaults, the week/month/year enum, ISO 8601 format for both datetime bounds, and the important semantic that without activity_type a period spans multiple rows. This adds genuine meaning the bare schema cannot convey.

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 opens with a specific verb+resource ('Get aggregated training summary') plus the grouping dimension and ordering ('grouped by time period, newest first'), which clearly separates it from sibling summary tools like get_nutrition_summary. It stops short of explicitly naming a competing tool, so it is clear but not fully sibling-differentiated.

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 through the filters ('Omit for all types') and the operational note on paging back with start_before to reach older history. There is no explicit statement of when to prefer this over raw-workout siblings such as get_workout_activities or get_recent_runs, so the agent must infer the aggregate-vs-detail split.

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