Skip to main content
Glama

Get Polar OAuth URL

polar_get_auth_url
Read-onlyIdempotent

Generate a Polar OAuth authorization URL to use first when no local token exists, enabling AI agents to authenticate and access training, sleep, and recovery data.

Instructions

Generate a Polar OAuth authorization URL. Use this first when no local token exists.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopesYes
auth_urlYes
next_stepYes
redirect_uriYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.4
    • 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 observedv0.3.6

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the token-absence precondition, which is real behavioral context, but it omits the OAuth flow relationship (that the returned URL leads to a code exchanged via polar_exchange_code) and any auth/permission notes.

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?

Two short sentences with the action stated first and the usage condition second. Every sentence earns its place with zero filler or redundancy.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and annotations carry the safety profile. However, as the entry point of a multi-step OAuth flow, the description should mention the follow-up step (exchange code) so the agent understands the sequence; that linkage is missing.

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 description coverage is 67% — state and scopes are documented in the schema while response_format is not. The description adds no parameter meaning at all, leaving the partial coverage gap unaddressed, so it sits at the adequate baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: "Generate a Polar OAuth authorization URL." This clearly identifies the action and object, so an agent can tell it apart from data-fetching siblings like polar_list_sleeps. It does not, however, name or differentiate itself from the closely related sibling polar_exchange_code.

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 trigger condition and ordering ('first'), which is genuinely useful routing guidance. It stops short of naming the alternative (polar_exchange_code) or stating when not to use it, so it is clear but not exhaustive.

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