Skip to main content
Glama

Get WHOOP OAuth URL

whoop_get_auth_url
Read-onlyIdempotent

Generates a WHOOP OAuth authorization URL for initial authentication when no local token exists. Use before requesting read-only health, sleep, recovery, or performance data.

Instructions

Generate a WHOOP OAuth authorization URL. This does not read or modify WHOOP data. Use this first when no local token exists.

Input Schema

NameRequiredDescriptionDefault
stateNoOptional OAuth state value generated by the caller.
scopesNoOptional scope override. Defaults to all read-only WHOOP scopes used by this server.
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
scopesYes
auth_urlYes
next_stepYes
redirect_uriYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.6
    • 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. Addedv0.6.1
  3. Removedv0.5.4
  4. First observedv0.5.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so safety is covered. The description adds context the annotations cannot: that the call has no data side effects and that its trigger condition is the absence of a local token. It doesn't mention whether scopes changes affect downstream grants, but the added behavioral signal is real.

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?

Three short sentences, front-loaded with the action, each carrying distinct information (what it does, what it doesn't do, when to call it). No filler.

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?

With an output schema present, return values need no explanation, and the description covers purpose, side-effect profile, and sequencing for a zero-required-param tool. The one gap is the missing pointer to the exchange step that consumes this URL.

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

Parameters3/5

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

Schema coverage is 67% with state and scopes well documented (scopes even explains the default). The description contributes nothing about parameters, so it neither compensates for the undocumented response_format nor adds syntax beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb+resource ('Generate a WHOOP OAuth authorization URL') and immediately scopes it negatively ('does not read or modify WHOOP data'), which separates it from the data-fetching siblings. An agent can tell this is a URL builder, not a data tool, without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this first when no local token exists' gives an explicit precondition for choosing this tool over the auth-adjacent siblings. It stops short of naming whoop_exchange_code as the follow-on step, so the agent must infer the pairing rather than being routed to it.

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