Skip to main content
Glama
Loopback Training Server

Loopback Training Server

update_shoe

Rename a shoe, correct its starting or replacement distance, set or clear the default pair, or retire and restore it. Only the fields you pass change.

Instructions

Change a pair of shoes: rename it, correct its distances, make it the default, retire it or bring it back. Only what you pass changes.

There is no tool to delete a pair; that stays in the app. Retire a pair the athlete has stopped using — its runs and distance are kept.

Args: shoe_id: The pair's id from get_shoes. name: New name. start_distance_meters: Distance the pair had before it was added, in METERS. This is not the pair's total: the total is this plus its assigned runs, so to correct a total, work out the difference. target_distance_meters: New replacement distance, in METERS. clear_target: True removes the replacement distance. Do not combine with target_distance_meters. is_default: True makes this the pair new runs land on (replacing the current default); false leaves the athlete with no default. A retired pair cannot be the default. retired: True puts the pair away (it also stops being the default); false brings it back into rotation.

Returns: The updated 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": {
      "shoe_id": "<shoe_id>"
    },
    "name": "update_shoe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
retiredNo
shoe_idYes
is_defaultNo
clear_targetNo
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 supplied, the description carries the full burden and does substantial work: it discloses partial-update semantics ("Only what you pass changes"), the non-destructive nature of retiring (runs and distance kept), the side effect that retiring clears the default flag, and that is_default=true replaces the current default. Gaps remain around failure behavior (invalid shoe_id, conflicting flags) and whether the operation requires elevated auth, which keeps it short of 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?

Front-loaded with the capability summary before the constraints and the per-argument notes, so the agent gets the gist in the first sentence. Every sentence carries information that is not recoverable from the schema, and the Args/Returns layout is scannable rather than padded.

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 seven-parameter mutation tool with no annotations and no output schema, the description covers what is needed: what changes, what is preserved, what the flags interact with, and that the return value is the updated pair in get_shoes' shape. No structural field carries behavior that the description leaves unstated.

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: every one of the seven parameters is explained, units are given in caps (METERS), the mutual exclusion between clear_target and target_distance_meters is spelled out, and start_distance_meters is disambiguated from the total with a concrete correction recipe ("work out the difference"). It also clarifies the surprising is_default=false consequence (no default at all).

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?

Opens with a specific verb and resource ("Change a pair of shoes") and enumerates the exact mutations supported: rename, correct distances, set default, retire, unretire. It also explicitly bounds scope by pointing at get_shoes as the source of shoe_id and by stating that deletion is out of scope, so the agent can distinguish it from siblings like add_shoe or get_shoes.

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 beyond stating purpose to route behavior: "There is no tool to delete a pair" plus "Retire a pair the athlete has stopped using — its runs and distance are kept" tells the agent exactly what to do instead of a delete, and the parameter notes encode the conditional exclusions ("Do not combine with target_distance_meters", "A retired pair cannot be the default"). Guidance is present for the non-obvious decisions, not just happy-path invocation.

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