Skip to main content
Glama
PAP Analytics MCP

PAP Analytics MCP

by drew2323

plot_segment

Generate a PNG plot of a night segment with pressure, leak, minute ventilation, SpO2, and event bands to visually inspect a window identified by find_anomalies.

Instructions

PNG plot of a night segment (pressure, leak, minute ventilation, SpO2 by default) with events as shaded bands. Use for a visual check of a window found by find_anomalies.

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

Input Schema

NameRequiredDescriptionDefault
endYes
dateYes
startYes
channelsNo
device_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the output medium (PNG), the default channel set, and that events appear as shaded bands, which is real context beyond the name. It does not say how the image is returned (inline, path, or URL), whether rendering is expensive, or whether a device must be specified, leaving key behavior undisclosed.

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?

Two sentences, no filler, with the output description front-loaded and the usage hint immediately after. Every clause carries information about what is produced or when to call it.

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?

For a five-parameter tool with no annotations and no output schema, the description covers purpose and use case but leaves invocation details thin. An agent still cannot tell how to format start/end/date, what channel names are valid beyond the defaults, or how the PNG is delivered, so it is only adequately complete.

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% across five parameters, so the description must compensate and largely does not. The mention of default channels gives partial meaning to the `channels` argument, but `date`, `start`, `end`, and `device_id` receive no explanation of format, timezone, expected values, or whether device scoping is required.

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 gives a specific verb and resource: it produces a PNG plot of a night segment and enumerates the default channels (pressure, leak, minute ventilation, SpO2) plus shaded event bands. That is more concrete than a generic 'plot' name, but it never explicitly contrasts itself with numeric siblings such as segment_stats, so an agent must infer that distinction from the use-case sentence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It states a clear when-to-use condition: a visual check of a window previously found by `find_anomalies`. That ties the tool to an upstream workflow and implies it is the visual counterpart to numeric summaries. It offers no when-not-to-use guidance and names no alternative plotting or stats tool for other cases.

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