Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

get_signals

Retrieve raw synchronized samples from multiple channels on a single time grid for short-window inspection; use aggregated queries for longer windows beyond the row limit.

Instructions

Raw samples of several channels (e.g. flow, pressure_hr, mask_pressure, pressure, spo2) on ONE time grid, no aggregation and no interpolation. The grid step is that of the finest channel (25 Hz -> 0.04 s); a slower channel has its real sample on matching rows and null elsewhere. Row i is at start + i * step_s (no time list). Limit: 2000 rows (80 s with a 25 Hz channel; slow channels alone can span much longer). For longer windows use get_signal (aggregated).

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>",
      "start": "<start>",
      "end": "<end>",
      "channels": "<channels>"
    },
    "name": "get_signals"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
dateYes
startYes
channelsYes
device_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the no-aggregation/no-interpolation contract, null-padding of slower channels, the row-to-time formula, and a hard 2000-row limit. What it omits is the behavior at the boundary — whether exceeding the limit errors, truncates, or silently drops channels — which is the one operational fact an agent could get burned by.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Six tight sentences, front-loaded with what the tool returns, then the grid semantics, then the limit, then the escape hatch to the alternative. No filler; the parenthetical examples and the price of the limit each earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 shape need not be explained, and the description instead supplies the interpretive context an output schema cannot: how rows map to time, why some cells are null, and the ceiling on rows. The only residual gap, the exact failure mode past 2000 rows, is secondary for a read-only data fetch.

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% across 5 parameters, so the description must compensate and only partly does. It clarifies `channels` (with plausible values) and ties `start`/`step_s` to the row-index formula, but `date` and `device_id` receive no explanation, and 'no time list' is a useful note about the response rather than about the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource ('Raw samples of several channels ... on ONE time grid') and enumerates example channels (flow, pressure_hr, mask_pressure, pressure, spo2). It explicitly separates itself from the aggregated sibling by contrasting 'no aggregation and no interpolation' with 'For longer windows use `get_signal` (aggregated)'.

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 an explicit condition for use (raw multi-channel window on a shared time grid) and an explicit condition against it (windows exceeding the 2000-row cap), naming the alternative tool to use instead. The 25 Hz -> 80 s example converts the limit into a concrete user-facing threshold an agent can reason about.

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