Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_training_calendar

Retrieves a unified training calendar that merges scheduled runs with recurring strength sessions and flags same-day conflicts, helping you choose strength days that avoid existing runs.

Instructions

Get the unified training calendar: scheduled runs (Apple Watch queue) merged with recurring strength sessions (from active plan schedules), with same-day conflicts flagged.

Call this before scheduling strength days so you can place them on days that don't already have a run.

Args: date_from: Window start (YYYY-MM-DD). Defaults to today. date_to: Window end (YYYY-MM-DD). Defaults to today + 28 days.

Returns: {from, to, entries[]} where each entry has: date, kind ("run" or "strength"), title, activityType, status, planId, planName, routineId, completed, conflict. conflict marks same-day double-bookings only; adjacent-day concerns (hard run right after a strength day) surface through validate_plan instead.

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

Input Schema

NameRequiredDescriptionDefault
date_toNo
date_fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.8/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 most of it: it discloses the merge sources, that only active plan schedules are included, and critically narrows what `conflict` means (same-day double-bookings only) rather than letting the agent over-read the flag. It stops short of explicitly stating the read-only nature and any pagination or window-size limits, so it is strong but not exhaustive.

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 with the purpose, then the usage trigger, then Args and Returns; nothing is redundant and the Returns block earns its space because there is no output schema to describe the entry fields.

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?

For a two-optional-parameter read tool with no output schema and no annotations, the definition supplies the default window, the full return envelope, per-entry field list, and the precise semantics of the one derived field. An agent can call it and interpret the result without opening anything else.

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 coverage is 0%, so the description must compensate and it does completely: both parameters get a format (YYYY-MM-DD) and an explicit default (today, and today + 28 days), which is information absent from the raw schema's null defaults.

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?

"Get the unified training calendar" names a specific verb and resource, and the clause "scheduled runs (Apple Watch queue) merged with recurring strength sessions ... with same-day conflicts flagged" states exactly what the payload is composed of, which distinguishes it from adjacent read tools like get_plan_schedule or get_device_workouts.

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?

"Call this before scheduling strength days so you can place them on days that don't already have a run" gives a concrete trigger condition, and the closing sentence routes the adjacent-day case to validate_plan instead, so the agent knows both when to call this and where the complementary check lives.

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