Skip to main content
Glama

Update profile numbers

update_profile
DestructiveIdempotent

Save numbers the athlete gave you: max, resting or threshold heart rate (bpm), cycling FTP (W), running threshold pace (seconds per km, 5:00/km is 300) or swim threshold (seconds per 100 m). Pass only the fields they named, as whole numbers; a value outside the settings ranges is refused. Each is saved as the athlete's own value from today, exactly as typing it in Shape's settings does, and outranks what a device reports. Load follows the same rule as settings: a first value scores the sessions that had no load (load: "filled"); a changed value applies from today and older sessions keep their load (load: "from_today"). Also saves gender (male or female, an input to heart-rate load under the same rule), birth year, distance unit (km or mi), weight unit (kg or lb, how weights are shown; inputs stay kg), the first day of the week (monday or sunday) and pool length. Only save what the athlete actually stated or confirmed. Never guess a value, never estimate a heart rate from their age, and never save one they did not agree to. null hands a number back to the device's value, or clears gender or birth year.

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": "update_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
ftpNoCycling FTP, watts (50 to 1000 W). null hands it back to the athlete's device or automatic value.
maxHRNoMaximum heart rate, bpm (100 to 230 bpm). null hands it back to the athlete's device or automatic value.
genderNoGender, an input to heart-rate load. null clears it.
birthYearNoYear of birth, e.g. 1990 (age 13 to 100). null clears it.
restingHRNoResting heart rate, bpm (30 to 120 bpm). null hands it back to the athlete's device or automatic value.
poolLengthNoThe pool swims are written for: "25m", "50m", "33m", "20m", "25yd", or "any" for no pool size.
weightUnitNoThe unit Shape shows weights in (kg or lb). Display only: weights are always written in kg.
startOfWeekNoThe day the athlete's week starts on.
thresholdHRNoLactate threshold heart rate, bpm (80 to 220 bpm). null hands it back to the athlete's device or automatic value.
distanceUnitNoThe unit Shape shows distances and paces in.
thresholdPaceNoRunning threshold pace, seconds per km (5:00/km is 300) (120 to 900 s/km). null hands it back to the athlete's device or automatic value.
thresholdSwimPaceNoSwim threshold (CSS), seconds per 100 m (1:45 is 105) (45 to 300 s/100m). null hands it back to the athlete's device or automatic value.

Output Schema

NameRequiredDescriptionDefault
loadYes
genderYes
numbersYes
updatedYes
birthYearYes
poolLengthYes
weightUnitYes
startOfWeekYes
distanceUnitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing precedence over device-reported values, the load-recalculation rule ('filled' vs 'from_today'), rejection of out-of-range values, and the meaning of null (hands value back to the device or clears gender/birth year). The one gap is that destructiveHint=true is never explained as a risk — the agent must infer that clearing a value or overwriting an athlete's own number is the destructive act.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the payload fields, which is good, but the paragraph becomes a dense run-on mixing field enumeration, unit conversions, load rules, and safety policy. The closing triad ('Only save what the athlete actually stated... never guess... never save one they did not agree to') says the same thing three times and could be one sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, all-optional mutation tool with an output schema and annotations, this covers null semantics, range enforcement, load side effects, and unit-display caveats. It stops short of describing what the response confirms (handled by the output schema) and never explicitly flags that earlier load scores are preserved rather than recalculated — though that is implied by 'older sessions keep their load'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: whole-number requirement, the 'pass only named fields' partial-update contract, the effect of a changed HR on historical load, and the role of gender as a heart-rate load input. It largely restates the schema's unit and range text, which keeps it from a 5.

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+resource ('Save numbers the athlete gave you') and then enumerates every savable field, including heart-rate thresholds, FTP, paces, and settings like units and pool length. It is immediately distinguishable from the read-only get_profile sibling and from activity-mutation siblings.

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?

Explicitly states the precondition for calling ('Only save what the athlete actually stated or confirmed') and multiple prohibitions ('Never guess a value, never estimate a heart rate from their age, and never save one they did not agree to'). Also narrows scope with 'Pass only the fields they named', so the agent knows partial updates are expected rather than a full overwrite.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources