Skip to main content
Glama
Loopback Training Server

Loopback Training Server

assign_shoe

Attach or remove a shoe pair on a recorded workout and mark the pair as confirmed when the athlete reports which shoes they wore.

Instructions

Put a pair of shoes on a workout, or take the pair off.

Use it when the athlete says which pair they wore. It also marks the workout's pair as checked (shoe_confirmed: true), so call it even when the athlete confirms the pair already on the run. Never guess a pair from the kind of session: ask.

Args: workout_id: UUID of the recorded workout (from get_recent_runs). shoe_id: The pair's id from get_shoes. A retired pair is fine, for correcting an older run. Leave out to take the pair off the workout, for a run done in shoes the athlete does not track.

Returns: The workout as get_recent_runs lists it, with the new shoe_id.

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": {
      "workout_id": "<workout_id>"
    },
    "name": "assign_shoe"
  }
}

Input Schema

NameRequiredDescriptionDefault
shoe_idNo
workout_idYes

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 hidden side effect of setting shoe_confirmed to true, the removal semantics of omitting shoe_id, and that retired pairs are accepted for correcting older runs. It stops short of stating failure behavior for an unknown workout_id or whether repeated calls are idempotent.

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?

The behavioral rule is front-loaded in the first two sentences, then Args and Returns are cleanly separated. Every sentence contributes a distinct rule or parameter fact; there is no 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?

There is no output schema, but the description states the return value ('the workout as get_recent_runs lists it, with the new shoe_id'), which closes that gap. For a two-parameter mutation tool, the trigger, side effect, removal case, and id sources are all covered.

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 supply all meaning, and it does: workout_id is a UUID obtainable from get_recent_runs, shoe_id comes from get_shoes, a retired pair is acceptable, and omitting shoe_id means detach the pair. That fully explains the anyOf/null default in the schema.

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?

The description opens with a precise verb+resource pair — 'Put a pair of shoes on a workout, or take the pair off' — covering both directions of the operation. This is clearly distinguishable from catalog-level siblings like add_shoe or update_shoe, since the resource being modified is the workout's shoe assignment.

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?

It states the trigger ('when the athlete says which pair they wore'), an important non-obvious case (call it even when confirming the pair already on the run, because it sets shoe_confirmed), and an explicit prohibition ('Never guess a pair from the kind of session: ask'). It also points to the sibling sources for each id (get_recent_runs, get_shoes).

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