Skip to main content
Glama

Get a night

get_night
Read-onlyIdempotent

One night in full, including the stage-by-stage hypnogram.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wake_date": "<wake_date>"
    },
    "name": "get_night"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientNoFor a coach: a client id from list_clients, to read that client. Omitted: your own account.
wake_dateYesThe morning the night ended, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description contributes real content-level behavior (the return includes a stage-by-stage hypnogram) but says nothing about empty/ambiguous dates, how the night window is bounded, or what happens when a client is specified but has no such night.

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?

A single short sentence with the scope (one night, full detail) front-loaded and no filler. It is efficient but on the terse side; the hypnogram detail earns its place, nothing else is offered.

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?

For a simple two-parameter read tool with full schema coverage, no output schema and complete annotations, the description is minimally sufficient — the agent knows it returns a single night with stage data. It is still thin on edge cases (missing night for a date) and on why this exists alongside list_nights.

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 schema already explains the client-vs-own-account semantics and the "morning the night ended" convention for wake_date. The description adds nothing about parameters, so the baseline 3 applies — the schema does all the work here.

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?

"One night in full, including the stage-by-stage hypnogram" gives a specific resource and a clear content promise (single-night detail with stage breakdown), which implicitly separates it from list_nights. It never mentions the keying parameter (wake_date) or names a sibling, so the differentiation is inferential rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied: "in full" suggests this is the detail view rather than the list view, and the schema's client parameter hints at a coach-reading-client mode. There is no explicit when-to-use, no when-not-to-use, and no mention of list_nights as the alternative for browsing multiple nights.

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