Skip to main content
Glama
Pupillary Light Reflex MCP Server

Pupillary Light Reflex MCP Server

Quantitative Pupillary Light Reflex (PLR) Skill

License: Apache-2.0 Python 3.10+ Zero Dependencies MCP Protocol Ready OpenClaw Certified

Zero-dependency sovereign personal agent skill for non-invasive calculation of Pupillary Light Reflex (PLR) dynamics, autonomic tone, and central nervous system alertness.

flowchart TD
    PupilCam["Infrared Pupillometry / Optical Sensor"] --> Dynamics["Pupil Diameter Tracking Over Time"]
    Dynamics --> Extraction["Kinetic Metric Extraction (Latency, MCV, %CA, RDV)"]
    Extraction --> ScoreEngine["Autonomic Pupillary Resilience Engine"]
    ScoreEngine --> Agent["OpenClaw / Hermes Personal Agent Actions"]

Features

  • Deterministic Math: Pure Python standard library implementation with zero external dependencies.

  • Pupillometric Standard Metrics: Implements validated equations for constriction velocity, amplitude percentage, and redilation rate.

  • Autonomic Tone Assessment: Quantifies balance between cholinergic parasympathetic and adrenergic sympathetic branches.

  • Model Context Protocol (MCP): Native JSON-RPC tool integration for LLMs and autonomous agents.

Related MCP server: Acoustic Startle Prepulse Inhibition (PPI) MCP Server

Quickstart

from client import PupilLightReflexClient

client = PupilLightReflexClient()
result = client.evaluate_pupillary_dynamics(
    baseline_diameter_mm=4.3,
    minimum_diameter_mm=2.6,
    constriction_latency_ms=225.0,
    constriction_velocity_mm_s=4.9,
    redilation_velocity_mm_s=1.85
)
print("Constriction Amplitude:", result["constriction_amplitude_mm"], "mm")
print("Classification:", result["classification"])

License

Apache-2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables deterministic, non-invasive calculation of pre-ejection period and left ventricular ejection time, with rate-corrected indices and inotropic performance classification exposed as JSON-RPC tools for LLM and agent workflows.
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables deterministic calculation and classification of prepulse inhibition (%PPI) from startle reflex amplitudes and lead intervals, supporting sensorimotor gating and sensory overload vulnerability assessment through JSON-RPC tools.
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables LLMs and autonomous agents to compute validated pupillometric metrics—constriction velocity, amplitude percentage, and redilation rate—and assess autonomic balance and central nervous system alertness through deterministic JSON-RPC tools.
      MIT