Skip to main content
Glama

get_sleep

Read-onlyIdempotent

Retrieve a pet's night sleep and daytime nap minutes from a Fi smart collar, organized as daily, weekly, or monthly buckets newest first.

Instructions

Night sleep and daytime nap minutes, newest first. The first entry is the current, unfinished period.

"daily" gives minutes per day; a day with no rest recorded (collar off all day) shows null. "weekly" (Monday to Sunday) and "monthly" give totals over the days with data, how many days that is, and the average rest per day.

Fi files a night's sleep under the date the night started, so today's night sleep reads 0 until tonight. Fi's split between night sleep and naps swings a lot from day to day; their total is the steadier number.

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

Input Schema

NameRequiredDescriptionDefault
petNoPet name or Fi pet id. Leave empty if there is only one dog on the account.
countNoHow many buckets, newest first. Max 90 daily, 26 weekly, 12 monthly.
periodNoSize of each bucket.daily

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world, so the bar is lower — yet the description still adds real behavior: newest-first ordering, the first entry being the current unfinished period, nulls on days with no rest recorded, and totals/averages computed only over days with data. The note that Fi files a night under the date it started, so today's night reads 0 until tonight, is exactly the kind of non-obvious quirk an agent would otherwise misread as missing data.

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?

Front-loads the resource and ordering in one sentence, then paragraphs on period semantics, null handling, and date attribution. Roughly ninety words with no filler — each sentence, including the night/nap volatility note, contributes information an agent would otherwise have to guess.

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 three-optional-parameter read tool with a full output schema and annotations covering safety, the description supplies everything else needed: ordering, the unfinished-current-period caveat, null semantics, bucket definitions, and date attribution. Nothing an agent needs to call or interpret this tool correctly is 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%, so the baseline would be 3, but the description adds genuine meaning to the period enum by describing what each bucket yields (per-day minutes vs. totals, day count, and average per day). It does not expand on 'count' limits or 'pet' resolution beyond what the schema already documents.

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 concrete resource and unit — night sleep and daytime nap minutes — plus ordering (newest first). That resource is clearly distinct from the sibling tools get_activity, get_behavior, and get_current_status, so an agent can pick it without inspecting schemas.

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?

Gives strong interpretive guidance for choosing a period: 'daily' gives minutes per day, 'weekly' is Monday to Sunday, 'monthly' gives totals over days with data. It also warns that night/nap splits swing day to day and the total is steadier, which steers how to read results. It never names an alternative tool or states when not to use this one, so it stops short of a 5.

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