Skip to main content
Glama

Log Sleep

create_sleep

Log a sleep session for a baby. Accepts flexible time formats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesSleep end: Date/time — accepts ISO 8601 ("2026-05-07T20:00:00Z"), relative ("2 hours ago", "now"), day+time ("today 3pm", "yesterday 8:30pm"), time-only ("3pm"), or date+time ("2026-05-07 8pm")
notesNoOptional notes (max 10,000 chars)
startYesSleep start: Date/time — accepts ISO 8601 ("2026-05-07T20:00:00Z"), relative ("2 hours ago", "now"), day+time ("today 3pm", "yesterday 8:30pm"), time-only ("3pm"), or date+time ("2026-05-07 8pm")
babyIdYesThe baby's UUID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
totalResultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / notes / description
      Previous value: -"Optional notes"New value: +"Optional notes (max 10,000 chars)"
    • addedInput schema / properties / notes / maxLength
      Added value: +10000
  2. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already cover readOnly and idempotent hints (both false). The description adds 'Accepts flexible time formats,' but that is parameter-related, not behavioral. It does not disclose side effects, validation rules, or requirements like an existing baby.

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 no wasted words. The purpose is front-loaded, and the second sentence is a brief but acceptable note on flexibility. Efficient and clear.

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?

The tool has annotations, an output schema, and fully documented parameters, so the description can be minimal. However, it lacks usage alternatives and any caveats, making it adequate but not thorough for a complete picture.

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 100% with detailed format lists for start and end. The description's mention of 'flexible time formats' is redundant with the schema, so it adds no new meaning. Baseline 3 applies.

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 states a specific verb ('Log') and resource ('sleep session for a baby'), clearly distinguishing it from sibling create_* tools for diary, feed, and nappy. This is immediately actionable.

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 guidance is provided on when to use this tool versus sibling create_* tools, nor are prerequisites or exclusions mentioned. The purpose is self-evident but no explicit usage direction is given.

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