Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

night_summary

Retrieve one night's PAP therapy summary—sessions, mask-off gaps, events, device vs derived metrics, channel stats, settings, and oximetry—by date or for the last night.

Instructions

Detail of one night: sessions, mask-off gaps, events, device vs derived metrics, channel statistics, settings in effect and oximetry. date = YYYY-MM-DD or last.

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": {
      "date": "<date>"
    },
    "name": "night_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
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 provided, so the description carries the full burden, and it does disclose what content is included (gaps, events, settings, oximetry, derived vs device metrics). It says nothing about cost, response size, permissions, or whether the call is read-only, which the description should carry given the absence of 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 tight sentences, front-loaded with the content inventory and closing with the input-format constraint. The dense list of returned artifacts earns its place; nothing is filler, though it is terse enough that the cramped comma list is slightly hard to parse.

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 values need not be described, and the content inventory is adequate for a two-parameter read. Missing are the role of `device_id`, the distinction from the many overlapping summary siblings, and any indication of response size or cost.

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 0%, so the description must compensate, and it does partially: it spells out `date` as YYYY-MM-DD or the special value `last`, which the schema does not reveal. The second parameter, `device_id`, is never mentioned, and its null default and aggregation implications are left entirely unexplained.

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?

Names a specific resource (a single night) and enumerates concretely what it returns: sessions, mask-off gaps, events, device vs derived metrics, channel statistics, settings and oximetry. That clearly distinguishes it from generic list tools, though it does not differentiate itself from overlapping siblings such as oximetry_summary or disturbance_summary.

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?

There is no explicit when-to-use or when-not-to-use guidance. The only usage-adjacent information is the accepted `date` formats, which is parameter help rather than routing guidance, so an agent must infer that this is the full-detail night view purely from the enumeration.

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