Skip to main content
Glama
GetSensr-io

Sensor Bio MCP Server

Official
by GetSensr-io

get_sleep

Retrieve sleep data for a user by date, date range, or number of past days. Returns summary and optional detailed time-series.

Instructions

Get sleep for a user.

Accepted date inputs (mutually exclusive):

  • date (YYYY-MM-DD, optional; default: today in SENSR_TZ or America/Chicago)

  • OR start_date/end_date (YYYY-MM-DD, inclusive)

  • OR days (int >=1): last N days ending today

Other params:

  • summary_only (bool, default true): if true, strips verbose time-series

Returns: {range, results:[{date,data}], summary}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNo
daysNo
user_idYes
end_dateNo
start_dateNo
summary_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description must fully disclose behavior. It explains date parameter mutual exclusivity, default timezone, the effect of summary_only, and the return structure. This provides good insight into tool behavior, though it doesn't explicitly state side-effect safety (e.g., read-only nature).

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?

The description is well-structured, starting with a clear purpose then listing parameter groups. It is detailed but not verbose. A slight improvement could be more bullet-like with less prose, but it remains concise enough for efficient reading.

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?

Given no annotations and a moderate-complexity tool, the description covers input semantics, default behavior, and output format. It mentions timezone handling and parameter mutual exclusivity. It does not cover error conditions or rate limits, but for a read-like tool this is sufficient.

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 0%, so the description must compensate. It does so by detailing each date input variant, defaults, and constraints. The summary_only parameter is explained. User_id is not explicitly described but is required and self-evident. Overall, it adds significant value beyond the bare schema.

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?

The description clearly states 'Get sleep for a user' and elaborates on multiple input methods (date, range, days). This verb+resource combination is unambiguous and distinct from sibling tools like get_biometrics or get_activities, which cover different health metrics.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. While the description explains the date input options, it does not mention prerequisites, exclusion of other tools, or scenarios where get_sleep is preferable over get_biometrics or similar siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GetSensr-io/sensorbio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server