Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_shoes

List running shoe pairs with total distance, target, default pair and retirement status so an AI coach can track wear and assign the right pair to each run.

Instructions

List the athlete's pairs of running shoes and the distance on each.

CHECKING THE PAIR ON RECENT RUNS. A new run is put on the default pair automatically, and the athlete often forgets to correct it when they wore something else. Workouts carry shoe_confirmed: false means the pair was never checked. When the athlete has MORE THAN ONE pair in rotation and a run from the last two weeks has shoe_confirmed: false, ask which pair they wore — once per conversation, all such runs in one question, naming each run's day, distance and current pair. Then call assign_shoe for every run they answer, including the ones where the current pair was right: that is what marks it checked and stops the question coming back. Skip the question when only one pair is in rotation, for older runs, and for anything that is not a run.

Args: include_retired: Include pairs the athlete has put away (default true). Pass false for only the pairs in rotation.

Returns: List of pairs, in use first (newest first), then retired. Keys are camelCase and every distance is in METERS:

- id: matches `shoe_id` on a workout (get_recent_runs,
  get_workout_detail). Pass it to get_recent_runs as `shoe_id` to list
  the runs done in this pair.
- name: what the athlete called the pair.
- distance: total on the pair — `startDistance` plus every workout
  assigned to it.
- startDistance: what the pair had on it when it was added. That part
  is the athlete's own figure, not recorded runs.
- targetDistance: where the athlete plans to replace the pair, or null
  when they set none. Their choice, not a wear measurement.
- workoutCount / lastUsedAt: assigned workouts and the latest one's
  start. Zero and null for a pair with no runs on it yet.
- isDefault: new runs land on this pair automatically. At most one.
- retiredAt: when the pair was put away, null while in rotation.
- createdAt: when the pair was added to the app, not when it was bought.

A run with `shoe_id: null` has no pair recorded, which is common: runs
from before the athlete added a pair are never assigned, and walks,
rides and strength sessions never get one automatically. Null does not
mean barefoot, and a pair's `distance` only counts what was assigned.

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

Input Schema

NameRequiredDescriptionDefault
include_retiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it explains that new runs land on the default pair automatically, that shoe_confirmed: false means never checked, that isDefault has at most one, that startDistance is the athlete's own figure rather than recorded runs, and that targetDistance is a user choice rather than a wear measurement. It also pre-empts a common misreading by stating that shoe_id: null does not mean barefoot and that a pair's distance only counts assigned workouts.

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?

Well front-loaded (purpose, then the confirmation protocol, then args and returns) and every section carries behavior an agent needs. It is nonetheless long, and the returns section enumerates fields at a length that could be tightened without losing meaning.

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?

No output schema exists, so return semantics must live in the description — and they do, covering ordering (in use newest first, then retired), units (distances in METERS), and each key's meaning plus the cross-reference to shoe_id on workouts. Combined with the confirmation protocol, nothing an agent needs to call this correctly and act on the result is missing.

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% and the single parameter is the sole input, so the description must define it — which it does, explaining that include_retired defaults to true and that passing false restricts results to pairs in rotation. It adds meaning the bare boolean does not convey: what 'retired' means (the athlete put the pair away) and how it affects the returned list.

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 the athlete's pairs of running shoes and the distance on each.' The scope (running shoes, with per-pair distance) is precise enough to distinguish it from add_shoe and the run-oriented siblings listed.

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?

Goes well beyond baseline: it names the workflow trigger (more than one pair in rotation plus a run from the last two weeks with shoe_confirmed: false), the exact action to take (ask once per conversation, naming day, distance and current pair), the follow-up tool (assign_shoe for every answered run), and explicit skip conditions (single pair, older runs, non-run activities). Both when-to-use and when-not are stated.

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