SprutMonitor MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SPRUT_EMAIL | Yes | Логин аккаунта СпрутМонитор. | |
| SPRUT_API_BASE | Yes | Адрес Web-api сервера СпрутМонитор, включая облако, со схемой и префиксом. | |
| SPRUT_PASSWORD | Yes | Пароль аккаунта СпрутМонитор. | |
| SPRUT_TOOLSETS | No | Набор инструментов: all, core или console (console включает core). | all |
| SPRUT_DEFAULT_DAYS | No | Глубина по умолчанию, если не заданы даты и period. | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only SprutMonitor DLP Cloud. Prefer period=today|yesterday|last_7_days|last_30_days or date_from/date_to (date-only = full day, date_to ends 23:59:59). Filters: group_id = TreeviewUsers NodeType=14; user_id = NodeType=1. list_users_groups is a flat Items list: user_id is Items.ID where Type=2 (reports call that AliasID). Tree Type is not NodeType. GetUsersGroups2 Type 1=group/2=user is NOT POST NodeType. WHEN WHICH TOOL (do not confuse):
Idle / inactive time / 'who was idle' -> get_idle_summary (InactiveTime). NOT list_anomalies.
Formal deviations (lateness, overtime, timetable alerts) -> list_anomalies (Alerts/Overall2). Empty is normal on 24h schedules.
DLP/rule hits (keywords, USB, policy) -> list_risks mode=summary (by_user from Analytics; details from Risks/Overall2).
Top apps/sites by time -> get_activity_summary; drill-down -> get_activity_detail.
Productivity % / productive vs unproductive -> get_productivity_summary.
Attendance / worked hours vs timetable -> get_timesheet.
Chronometry timeline -> get_chrono.
Day segments structure -> get_day_structure.
Keyword find across sites/apps/keys/mail/files (Tools Search) -> search_monitoring(filter_key=...). Do NOT loop list_monitoring for search.
One Monitoring table only -> list_monitoring(kind=Sites|Apps|Keystrokes|...).
Dashboard tiles -> get_dashboard(widget=...). Analytics charts -> get_analytics(view=...).
Online presence -> list_online. Video metadata -> list_stream_meta (no screenshot/video binary downloads).
Users/groups tree -> list_users_groups or list_directory; person card -> get_user_info.
Profiles/settings (Get*) -> get_account_readonly. Reports queue -> list_reports.
Coverage gaps -> list_api_coverage. Account/host -> sprutmonitor_whoami. No writes. Demo credentials may be active - never assume production data.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sprutmonitor_whoamiA | Show which SprutMonitor API host and account the MCP server is using (password never returned). |
| list_users_groupsA | List users and groups (GetUsersGroups2). Flat Items list. Type 0=root, 1=group, 2=user. Name is NameInner. There is no AliasID field. For a user, pass Items.ID (Type=2) as user_id. Reports call that same number AliasID. POST filters use NodeType 14=group and NodeType 1=user. Tree Type is not NodeType. Cached ~5 min per MCP session; pass refresh=true to force reload. |
| list_risksA | List or summarize DLP/rule Risks for a period. Use for: policy/keyword/USB/AI rule hits. Default mode=summary (by_user from Analytics/Overall; by_rule/by_day/sample from Risks/Overall2). Not for idle time (get_idle_summary) or timetable deviations (list_anomalies). |
| list_anomaliesA | List formal Alerts / deviations (POST /api/Alerts/Overall2). Use for: lateness, overtime, unusual app-share, timetable-fired alerts. Do NOT use for idle/inactive duration — that is get_idle_summary (InactiveTime). Do NOT use for DLP keyword/USB policy hits — that is list_risks. |
| get_idle_summaryA | Rank users by inactive (idle) time from Productivity/Overall3. Use for: 'who was idle longest?', 'idle > N hours', InactiveTime totals. Do NOT use list_anomalies for idle — Alerts are formal deviations only. |
| get_activity_summaryC | Top apps and sites by ActiveTime (POST /api/Activity/Overall2). |
| get_timesheetC | Timesheet / attendance summary (POST /api/TimeSheet/Overall2). |
| get_productivity_summaryC | Per-user productivity rollup (Overall3 + stats + Analytics metrics). |
| list_reportsA | List scheduled report mailing settings and background processing tasks. |
| get_analyticsC | Analytics rollups: view=overall|disciplina|activity|productivity. |
| get_dashboardC | Dashboard widgets (metadata only; screenshot blobs stripped when compact). |
| get_chronoC | Chronometry timeline (POST /api/Chrono/Overall2). |
| get_day_structureB | Day structure: mode=list (DayStructureList) or detail (GetDayStructure). detail requires user_id. Filters match console: ProductivityFilter 0–4, ActivityTypeFilter 0–2 (defaults 0). |
| list_monitoringA | Single Monitoring list (Sites, Apps, Screens, Keystrokes, Mail, …). For keyword search across many Monitoring kinds (console Tools → Search), use search_monitoring(filter_key=…) instead of calling this 13–19 times. Sensitive kinds return text truncated when compact=true. No binary media. |
| search_monitoringA | Console Tools → Search: parallel Monitoring fan-out with FilterKey. Use for: 'find keyword X across activity' (sites/apps/keys/mail/files/…). Prefer this over calling list_monitoring many times. Not for Risks (list_risks), idle (get_idle_summary), or formal Alerts (list_anomalies). Does not search SearchQueries. kinds: optional comma-separated subset (e.g. "Sites,Apps,Mail" or "sites,mail"). Default = all Tools Search sources. |
| get_activity_detailB | Activity drill-down: ActivityWindow (needs activity_name) or CategoryWindow (needs category_guid). |
| list_onlineC | Online presence (POST /api/Live/Overall2). No webcam or live stream frames. |
| list_stream_metaA | Desktop video metadata (SPA GET contracts; no DownloadVideo). which_content: needs user_id; uses DateTo (or period end) as DateTime. videos: needs user_id + DateFrom/DateTo (UserID header). downloads: Bearer only (exported file list). |
| list_directoryA | Directory reads: users/groups tree, users, groups, computers, additional operators. users_groups is session-cached (~5 min); pass refresh=true to force reload. |
| get_user_infoB | User/computer detail reads (SPA GET headers). user_data / tooltip / group: need user_id (AliasID). group = group path for that user (not load-by-GroupID). computer / users_from_computer: need computer_guid (ComputerGuid). |
| get_account_readonlyA | Read-only account/profile Gets (SPA header contracts). License routes are not on this cloud (HTTP 404) and are not called. profiles: GetProfiles2 — ProfilesType 0|1|2; optional user_id + alias_type (1=user, 14=group); defaults AliasID/AliasType=-1. timetable/rules/profile_settings/computer_settings: require profile_id. computer_profiles: optional computer_guid (Guid header). |
| list_api_coverageA | Static gap matrix: which console APIs are covered vs intentional out-of-scope. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| daily_risks_brief | Summarize DLP risks for a period using the recommended tool sequence. |
| idle_review | Find who was idle longest using get_idle_summary (not list_anomalies). |
| user_activity_drilldown | Drill into one user's apps/sites and optional activity window. |
| monitoring_keyword_hunt | Search Monitoring via Tools Search (search_monitoring), not repeated list_monitoring. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| resource_coverage | Static gap matrix of console API coverage (same data as list_api_coverage). |
| resource_tool_routing | When-which-tool routing text for SecOps queries. |
| resource_whoami | Current API host and account (password never included). Live call. |
TDQS
Scored across 22 tools
Descriptions go to great lengths to cross-reference (list_risks vs list_anomalies vs get_idle_summary; list_monitoring vs search_monitoring) and that helps a lot. However, real overlap persists: get_analytics with view=activity|productivity competes with get_activity_summary and get_productivity_summary, and list_directory (users/groups tree, users, groups) overlaps list_users_groups and get_user_info. More than one or two pairs could be misselected without reading the full text.
Strong, predictable list_/get_/search_ + noun pattern across nearly all 22 tools (list_risks, get_idle_summary, search_monitoring). Minor deviations: sprutmonitor_whoami breaks the verb_noun form with a server prefix, and mode-switching tools like get_day_structure and get_account_readonly pack multiple operations under one name.
22 tools is on the heavy side and several could be consolidated (list_users_groups/list_directory/get_user_info all read the same user-group domain; get_analytics overlaps the activity/productivity summaries). Each tool does map to a distinct backend endpoint, so it is defensible, but the surface is at the upper edge for a monitoring dashboard.
Read coverage is broad and explicit: activity, productivity, idle, timesheets, chrono, risks, alerts, monitoring search, streams, directory, and account data, with list_api_coverage documenting intentional out-of-scope gaps. Gaps exist around write/lifecycle operations (no create/edit of reports or rules, no video download or binary media), which appear deliberate for an agent-facing read server rather than accidental.