Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

list_nights

Retrieve one row per night of PAP therapy data—usage, AHI, events, leak/pressure p95 and oximetry flag—for a chosen date range and device; defaults to the last 14 days.

Instructions

One row per night (usage, AHI device+derived, events, leak/pressure p95, oximetry flag). Default: the last 14 days of data. Dates: YYYY-MM-DD, last, yesterday.

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

Input Schema

NameRequiredDescriptionDefault
date_toNo
date_fromNo
device_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose two valuable behavioral facts: the default date window and the accepted date token formats. However, it is silent on read-only/scope guarantees, ordering, result size limits/pagination, and what happens when device_id is omitted, which matters for a listing tool without annotations.

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?

Two dense sentences, front-loaded with the output shape and followed by defaults and formats; almost no wasted words. The parenthetical column list is slightly telegraphic but earns its space by describing the payload.

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?

An output schema exists, so return-value explanation is unnecessary, and the default window plus date formats cover the highest-risk ambiguity. Gaps remain for a 3-parameter tool: device_id is undocumented, and there is no routing guidance among the many per-night/summary siblings.

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 0%, so the description must compensate. It does add real meaning for the date parameters by listing accepted values ('YYYY-MM-DD', `last`, `yesterday`) that the bare anyOf-string schema lacks. But device_id gets no explanation at all — its meaning and default behavior are left entirely to inference.

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 the resource and result shape precisely: 'One row per night' enumerating the returned columns (usage, AHI device+derived, events, leak/pressure p95, oximetry flag). This is clear enough to distinguish a per-night tabular listing from sibling aggregations like night_summary or compare_periods, though the verb is only implied by the tool name 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 Guidelines2/5

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

It states a default window ('the last 14 days of data') but gives no when-to-use guidance, no exclusions, and names no alternative. An agent cannot tell from the description whether to reach for this versus night_summary or compare_periods for a given question.

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