Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

disturbance_trend

Nightly disturbance metrics (PRR, pulse-rise index, hypoxic burden, flow limitation, calm-breathing share, flow shape: NED and Glasgow Index, inferred arousal, NED RERA and RERA-candidate indices) one row per night, with units/methods and…

Instructions

Nightly disturbance metrics (PRR, pulse-rise index, hypoxic burden, flow limitation, calm-breathing share, flow shape: NED and Glasgow Index, inferred arousal, NED RERA and RERA-candidate indices) one row per night, with units/methods and the mean per metric. Default: the last 14 days of data. Null = signal missing that night.

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

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.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the row granularity, that units/methods and a per-metric mean accompany the data, the default 14-day window, and critically that a null value means the signal was missing that night rather than a zero. It omits any mention of permissions, rate limits, or result size/pagination.

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?

Efficiently packed: the metric enumeration, row shape, and default all land up front in a compact block with no filler sentences. The long parenthetical metric list makes one sentence dense, but every element is informative.

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, yet the description usefully explains the row shape and null semantics anyway. The remaining gap is on the input side: for a query tool with three untyped, undefaulted-looking parameters at 0% schema coverage, an agent still lacks the date format and device-filter semantics needed to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the three parameters (date_from, date_to, device_id) are undocumented anywhere. The description only gestures at the date range via the 14-day default; it never gives date format, whether the range is inclusive, or what device_id selects (single device vs. all).

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 (nightly disturbance metrics) and enumerates the exact metrics returned (PRR, pulse-rise index, hypoxic burden, flow limitation, NED/Glasgow Index, arousal/RERA indices), plus the row granularity (one row per night). It does not state how it differs from the sibling disturbance_summary, so it stops short of 5.

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?

The default window ("Default: the last 14 days of data") implies a time-series/trend use case, but there is no explicit when-to-use guidance and no naming of alternatives such as disturbance_summary or night_summary for single-night or aggregate needs. Usage must be inferred from the name and metric list.

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