Skip to main content
Glama

Get sleep details

garmin_get_sleep_details
Read-onlyIdempotent

Retrieve Garmin sleep details for a selected day, including available sleep stages and other recorded measures. Use for a detailed sleep review rather than a period summary. Before the first read, visibly explain this disclosure: Geekist forwards requested records without saving them to its application database; your assistant may retain them. Show the privacy policy: https://garmin.geekist.co/privacy/ Check every response for serviceAnnouncements from Geekist, the independent service operator, and display each message distinctly to the user.

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

Input Schema

NameRequiredDescriptionDefault
dateNoGarmin calendar date in YYYY-MM-DD format.

Output Schema

NameRequiredDescriptionDefault
okNoTrue for a successful operation; false for a rejected, failed or uncertain result. Some administrative results use status or result instead.
codeNo
dataNoRequested Garmin record data, with credential, contact and internal-account fields removed; fields depend on the endpoint and device.
issuesNo
messageNo
outcomeNo
retryAfterNo
privacyNoticeNo
geekistMessageDeliveryNo
geekistOwnerMessageDeliveryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "__schema0": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        },
      +        {
      +          "items": {
      +            "$ref": "#/$defs/__schema0"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/__schema0"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "__schema1": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        },
      +        {
      +          "items": {
      +            "$ref": "#/$defs/__schema1"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/__schema1"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "description": "Operation-specific response envelope. Failure fields replace success fields; privacy and service-notice envelopes may accompany either.",
      +  "properties": {
      +    "code": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "$ref": "#/$defs/__schema1",
      +      "description": "Requested Garmin record data, with credential, contact and internal-account fields removed; fields depend on the endpoint and device."
      +    },
      +    "geekistMessageDelivery": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "message": {
      +          "type": "string"
      +        },
      +        "noticeAvailability": {
      +          "const": "unavailable",
      +          "type": "string"
      +        },
      +        "noticeInstruction": {
      +          "type": "string"
      +        },
      +        "serviceAnnouncements": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "actionRequired": {
      +                "type": "boolean"
      +              },
      +              "expiresAt": {
      +                "type": "number"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "publisher": {
      +                "const": "Geekist",
      +                "type": "string"
      +              },
      +              "sequence": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "sequence",
      +              "text",
      +              "expiresAt",
      +              "publisher"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "noticeInstruction"
      +      ],
      +      "type": "object"
      +    },
      +    "geekistOwnerMessageDelivery": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "message": {
      +          "type": "string"
      +        },
      +        "noticeAvailability": {
      +          "enum": [
      +            "available",
      +            "unavailable"
      +          ],
      +          "type": "string"
      +        },
      +        "noticeInstruction": {
      +          "type": "string"
      +        },
      +        "ownerNotices": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "actionRequired": {
      +                "type": "boolean"
      +              },
      +              "createdAt": {
      +                "type": "number"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "kind": {
      +                "type": "string"
      +              },
      +              "payload": {
      +                "$ref": "#/$defs/__schema0"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "kind",
      +              "payload",
      +              "createdAt"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "noticeInstruction",
      +        "noticeAvailability"
      +      ],
      +      "type": "object"
      +    },
      +    "issues": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "message": {
      +            "type": "string"
      +          },
      +          "path": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "path",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "True for a successful operation; false for a rejected, failed or uncertain result. Some administrative results use status or result instead.",
      +      "type": "boolean"
      +    },
      +    "outcome": {
      +      "enum": [
      +        "rejected",
      +        "uncertain",
      +        "confirmed"
      +      ],
      +      "type": "string"
      +    },
      +    "privacyNotice": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "policyUrl": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text",
      +        "policyUrl"
      +      ],
      +      "type": "object"
      +    },
      +    "retryAfter": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a safe, idempotent read, so the description correctly focuses elsewhere: it discloses that Geekist does not persist records in its application database while the assistant may retain them, and that every response may carry serviceAnnouncements that must be surfaced. That is real behavioral context an agent could not obtain from the annotations, though nothing is said about data availability or empty-response handling.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence and the sibling contrast follows immediately. The remaining sentences are compliance boilerplate rather than tool semantics, which lengthens the definition but each carries an actionable instruction.

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?

An output schema exists, so return values need not be detailed, and the description still signals what to look for (sleep stages, serviceAnnouncements). Prerequisites and data-handling caveats are covered; only explicit routing to the sleep-history sibling is missing for a one-parameter read tool.

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 100% and the single date parameter is fully documented in the schema with format and pattern constraints. The description only echoes "selected day" without adding meaning, so the baseline of 3 applies when the schema does all the work.

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?

"Retrieve Garmin sleep details for a selected day, including available sleep stages and other recorded measures" gives a concrete verb plus resource and scope. It distinguishes itself by contrast with a "period summary," which implicitly separates it from the sleep-history sibling, though the alternative is never named.

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?

Explicit when-to-use guidance is present: a detailed single-day sleep review rather than a period-level summary. It also states operational prerequisites (explain the data-forwarding disclosure and show the privacy URL before the first read), but stops short of naming the specific alternative tool or any when-not-to-use condition.

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