Skip to main content
Glama

Find a sleep session

find_sleep_sessions
Read-only

Use this when the user wants sleep audio or says they cannot switch off at night: a bedtime wind-down, a quiet evening session, or a short nap. Plays a guided sleep session. Not for medical questions, emergencies or a crisis. Not for general chat about meditation. Not for a daytime break, focus or breathing exercises: use find_focus or find_breathing for those.

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

Input Schema

NameRequiredDescriptionDefault
voiceNoVoice preference. Default any.any
languageNoAudio language as a BCP-47 code (en, es, pt-BR, fr, it, ja, hi, ko, hu, or any other such as pl). Always pass the language the user writes in. If the language is not available the answer says so and gives the closest live one. hi, ko and hu are beta.
length_minNoLength in minutes, 3 to 60. Default 10 when the user gives none.

Output Schema

NameRequiredDescriptionDefault
uiNo
jobNo
tapNo
urlNo
hostNo
langNo
viewNo
endedNo
beaconNo
reasonNo
statusNo
profileNo
ai_voiceNo
languageNo
manifestNo
sessionsNo
help_linesNo
queue_lineNo
session_idNo
ai_voice_labelNo
language_changed_fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds content scope (guided sleep audio) and a safety boundary around emergencies and crisis, which is useful beyond the annotations. However, it does not say what the tool returns or how playback is initiated, leaving the agent to rely on the output schema.

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 definition is short and front-loads the usage trigger before the exclusion list. Most sentences earn their place, though the separate 'not for general chat about meditation' and 'not for a daytime break' lines partially restate the same routing intent already implied by the named alternatives.

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?

With an output schema, full parameter documentation and read-only annotations, the description only needs to carry routing and scope, which it does. The one gap is that it never states what a returned result looks like or what happens when no session matches the requested language or length, though the output schema largely covers that.

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%, so voice, language and length_min are already fully documented in the schema. The description says nothing about these parameters, adding no meaning beyond what the structured fields provide. A baseline 3 is appropriate when the schema carries the full burden.

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 action and resource: 'Plays a guided sleep session' covering bedtime wind-down, quiet evening, or nap. It distinguishes itself from find_focus and find_breathing by name. The only friction is the mismatch between the 'find' name and the 'plays' verb, which sits ambiguously close to the play_session sibling.

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

Usage Guidelines5/5

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

It gives explicit when-to-use triggers ('user wants sleep audio or says they cannot switch off at night') and explicit when-not-to-use boundaries (medical questions, emergencies, crisis, general meditation chat, daytime break/focus/breathing). It names the alternative tools to use for those excluded cases, so the agent does not have to guess.

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