Skip to main content
Glama
Loopback Training Server

Loopback Training Server

add_shoe

Adds a pair of running shoes for an athlete, recording existing and target distance and optionally setting the pair as default; check existing shoes first to avoid duplicates.

Instructions

Add a pair of running shoes for the athlete.

Only on the athlete's say-so: they tell you about a new pair, you add it. Check get_shoes first so the same pair is not added twice.

Args: name: What to call the pair, in the athlete's words (e.g. "Pegasus 41"). start_distance_meters: Distance already on the pair, in METERS (250 km is 250000). Zero for a new pair. Runs from before the pair is added are never assigned to it, so this figure is where that earlier distance belongs. target_distance_meters: Where the athlete plans to replace the pair, in METERS. Leave out unless they named one — do not pick a figure for them. is_default: Put new runs on this pair automatically. Replaces the current default.

Returns: The new pair, in the shape get_shoes lists.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
is_defaultNo
start_distance_metersNo
target_distance_metersNo

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 well: it discloses that is_default replaces the current default, that pre-existing runs are never retroactively assigned to the new pair (explaining why start_distance_meters exists), and what the call returns. It stops short of covering collision behavior (what happens if the same name already exists) or any permission/error semantics, which keeps it from a 5.

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 description is front-loaded with purpose and gating rule, then uses labeled Args/Returns sections so each parameter note is scannable. The unit emphasis and the conversion example are load-bearing rather than 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?

For a four-parameter mutation with no annotations and no output schema, the description covers the creation trigger, the dedupe prerequisite, each parameter's units and semantics, the default-replacement side effect, and the return shape by reference to get_shoes. Nothing an agent needs to invoke it correctly 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 description coverage is 0%, so the description must compensate, and it does for all four parameters: name is in the athlete's own words with an example, start_distance_meters specifies METERS with a concrete conversion and its semantic purpose, target_distance_meters warns against inventing a value, and is_default explains the side effect. This adds meaning well beyond the raw schema types.

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 first sentence states a specific verb and resource: "Add a pair of running shoes for the athlete." It is distinguishable from sibling tools like get_shoes, assign_shoe, and update_shoe because it is explicitly about creating a new pair, and it names get_shoes as the pre-check.

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 gives an explicit trigger condition ("Only on the athlete's say-so: they tell you about a new pair, you add it") and a mandatory pre-step ("Check get_shoes first so the same pair is not added twice"). This is a clear when-to-use and when-not-to-guess rule rather than implied usage.

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