Query video analytics incidents, alerts, sensor data, and metrics from Elasticsearch via the VA-MCP server (port 9901). Use for any question about what happened in video — PPE violations, alerts, incidents, object counts, speeds, occupancy, or anything that requires looking up recorded events. This is the primary way to answer "what happened", "show me alerts", "any violations", "how many people", etc.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
The command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
File Explorer
2 files
Showing SKILL.md
SKILL.md
Source instructions · Read-only preview
name
vss-query-analytics
description
Query video analytics incidents, alerts, sensor data, and metrics from Elasticsearch via the VA-MCP server (port 9901). Use for any question about what happened in video — PPE violations, alerts, incidents, object counts, speeds, occupancy, or anything that requires looking up recorded events. This is the primary way to answer "what happened", "show me alerts", "any violations", "how many people", etc.
Queries incidents, alerts, and metrics stored in Elasticsearch via MCP JSON-RPC at port 9901.
Overview
Use this skill to fetch real-time or historical telemetry and compliance records stored in Elasticsearch. Always run queries programmatically via the VA-MCP server.
Key capabilities:
Getting incident details by unique identifier.
Aggregating statistical trends (e.g. average people count over a time window).
Searching for safety/PPE alerts across active video streams.
Prerequisites
VA-MCP Running: Ensure the vss-va-mcp service is running on port 9901.
Session Identification: All JSON-RPC queries require an active mcp-session-id fetched from an initialization header.
Instructions
1. Two-Step JSON-RPC Pattern
To make queries, execute two consecutive shell/curl commands:
Initialize Session: Perform a POST call to http://localhost:9901/mcp with an initialize JSON payload, and grep for the mcp-session-id header.
Execute Tool Call: Send a POST call to http://localhost:9901/mcp with the tools/call method, passing the session header and the desired parameters.
2. Available Tool Options
Replace the parameters under Step 2 to target specific services:
video_analytics__get_incidents — list recent incidents.