Skip to main content
Glama

Connect a device

connect_device

Connect a device to this Shape account from the chat. Returns, per device, whether it is already connected and otherwise a link the athlete opens: for Garmin, Wahoo, Polar, Hammerhead, Intervals.icu, Hevy, Concept2 and Oura a one-time sign-in link that works in any browser for 15 minutes and starts the import as soon as they allow Shape (Polar's first shows what Shape keeps from Polar, which its terms ask for); for Apple Health the iPhone app, since Health only connects from the phone. Hevy (strength workouts with their sets) has a limited number of places and Concept2 (rowing, SkiErg and BikeErg results) is not open on every account yet: when one cannot be connected it comes back with no link and a note saying why, which you pass on. A source that is not offered here at all (WHOOP) connects in Shape under Settings, Connections: say that, and never suggest another way round to bring its data in. Pass provider when the athlete named their device. Leave it out to get every option with its link, and let them pick. Call it when a tool answered that nothing is synced yet or no device is connected, when the athlete asks to connect, add or check a watch, and when they say data from a connected device is missing. Already-connected devices come back with connected: true, plus off: Garmin sharing switches left off (Historical Data, Health, Activities), each with what turning it on would bring, which may be the athlete's choice; and lapsed: true when the connection stopped working. When either applies the device carries a link to sign in again, which restores the connection or lets them turn a switch on; otherwise there is no link and the call changes nothing. Raise a switch that's off only when it explains what they asked about. Give the athlete the link itself (it is personal and expires), then ask them to come back and ask again once they have allowed Shape.

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

Input Schema

NameRequiredDescriptionDefault
providerNoWhich device or service to connect: `garmin`, `wahoo`, `polar`, `hammerhead`, `intervals` (Intervals.icu), `hevy`, `concept2` or `oura` (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option.

Output Schema

NameRequiredDescriptionDefault
devicesYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / provider / description
      Previous value: -"Which device or service to connect: `garmin`, `wahoo`, `polar`, `hammerhead`, `intervals` (Intervals.icu), `hevy` or `concept2` (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option."New value: +"Which device or service to connect: `garmin`, `wahoo`, `polar`, `hammerhead`, `intervals` (Intervals.icu), `hevy`, `concept2` or `oura` (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option."
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "hammerhead",
      -  "intervals",
      -  "hevy",
      -  "concept2"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals",
      +  "hevy",
      +  "concept2",
      +  "oura"
      +]
    • changedOutput schema / properties / devices / items / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "hammerhead",
      -  "intervals",
      -  "hevy",
      -  "concept2"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals",
      +  "hevy",
      +  "concept2",
      +  "oura"
      +]
  2. Changed5 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"
    • changedInput schema / properties / provider / description
      Previous value: -"Which device to connect: `garmin`, `wahoo`, `polar` or `intervals` (Intervals.icu) (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option."New value: +"Which device or service to connect: `garmin`, `wahoo`, `polar`, `hammerhead`, `intervals` (Intervals.icu), `hevy` or `concept2` (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option."
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "hammerhead",
      -  "intervals"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals",
      +  "hevy",
      +  "concept2"
      +]
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / devices / items / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "hammerhead",
      -  "intervals"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals",
      +  "hevy",
      +  "concept2"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "intervals"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals"
      +]
    • changedOutput schema / properties / devices / items / properties / provider / enum
      Previous value: -[
      -  "garmin",
      -  "wahoo",
      -  "apple_health",
      -  "polar",
      -  "intervals"
      -]New value: +[
      +  "garmin",
      +  "wahoo",
      +  "apple_health",
      +  "polar",
      +  "hammerhead",
      +  "intervals"
      +]
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: the link is one-time, works in any browser, expires in 15 minutes, and starts the import on approval; Apple Health must connect from the phone; Hevy has limited places and Concept2 is not open on every account, returning no link plus a reason note. It also discloses the already-connected return shape (`connected: true`, `off`, `lapsed`) and states that when neither applies 'the call changes nothing'.

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?

The purpose is front-loaded and nearly every sentence carries information, but the whole definition is one dense paragraph with semicolons, nested parentheses and long clauses (e.g. the Garmin/Polar parenthetical) that make it hard to scan. The length is justified by the complexity, but the structure could be broken into clearer units.

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 tool with a single optional parameter, the definition covers when to call it, what each provider returns, failure modes, and the instruction to hand over the personal expiring link and have the athlete return. An output schema exists, yet the description still tells the agent how to act on the results, leaving nothing material missing.

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% and the enum already documents each provider, so the schema does most of the work. The description adds actionable selection guidance beyond the schema — 'Pass `provider` when the athlete named their device. Leave it out to get every option with its link, and let them pick' — which shapes when to supply versus omit the parameter.

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 ('Connect a device to this Shape account from the chat') and immediately enumerates the providers it covers. No sibling tool in the list handles device connection, so the agent can tell this apart from the activity/profile tools without opening a schema.

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 enumerates triggering conditions ('when a tool answered that nothing is synced yet', 'when the athlete asks to connect, add or check a watch', 'when they say data from a connected device is missing'). It also gives the negative case and the correct alternative path: WHOOP 'connects in Shape under Settings, Connections: say that, and never suggest another way round'.

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