Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

get_signal

Retrieves and downsamples a PAP signal channel into min/mean/max buckets for time-range analysis, capped at 2,000 points; flow and pressure_hr are limited to 30-minute windows.

Instructions

A channel downsampled to at most max_points (hard cap 2000) buckets of min/mean/max. flow and pressure_hr only for windows up to 30 min.

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>",
      "channel": "<channel>"
    },
    "name": "get_signal"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
dateYes
startYes
channelYes
device_idNo
max_pointsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

C2.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: aggregation to min/mean/max buckets, a hard cap of 2000 points, and channel-specific window restrictions. It omits what happens when a request exceeds the cap or the 30-minute window (error vs. truncation) and says nothing about authentication or data availability, so real behavioral gaps remain.

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

Conciseness3/5

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

Two terse sentences with no filler, and the bucket/cap information is front-loaded. However, the fragmentary structure drops the subject and purpose, making the definition read like a note about output format rather than a self-contained tool description.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, time-windowed signal query with no annotations, the definition is too thin: it never explains channel naming, time/date semantics, device_id fallback, or out-of-range behavior. The output schema covers return values, but parameter and constraint coverage are insufficient for correct invocation.

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% for six parameters, so the description must compensate and largely does not. It clarifies max_points (cap 2000) and implicitly hints at channel values via 'flow'/'pressure_hr', but leaves date, start, end, channel enumerations/formats, and device_id (including null default behavior) entirely unexplained.

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

Purpose3/5

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

The description is a noun phrase describing the return shape ('a channel downsampled to at most max_points buckets of min/mean/max') rather than a verb+resource statement. An agent can infer it returns a downsampled series for one channel, but it never distinguishes this from the plural sibling get_signals or from plot_segment/segment_stats, so selection relies on the name alone.

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?

The only usage rule given is a constraint ('flow' and 'pressure_hr' only for windows up to 30 min), which is useful but is a limit rather than when-to-use guidance. There is no statement of when to pick this over get_signals, plot_segment, or segment_stats, and no prerequisite or exclusion guidance.

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