mcp-agentnex
v0.1.13MCP Server for AgentNEX - Bridge between NEXA AI and AgentNEX Backend
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_devices
List all devices from the backend. Does not require devices to have an agent connected. Use this to see the full device inventory, online/offline status, and basic info. Optionally filter by organization_id.
| Parameter | Type | Description |
|---|---|---|
organization_id | string | Optional. Filter devices by organization ID. |
get_device_telemetry
Get current CPU, memory, disk usage and process count for a device. Use this first when user mentions slowness, high resource usage, or performance issues. Returns real-time system metrics.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device to get telemetry for |
get_device_processes
Get list of running processes with CPU and memory usage for a device. Use this to identify which applications are consuming resources (e.g., Chrome, Outlook). Returns process name, PID, CPU%, and memory usage.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device to get processes for |
get_hardware_inventory
Get stored hardware inventory for a device from the AgentNEX database (CPU, RAM, storage, etc.). Use when the user asks about specs, upgrades, or asset details. Does not require the device to be online. Optional include_hardware_data=true returns the full JSON blob (can be large).
| Parameter | Type | Description |
|---|---|---|
device_id * | string | UUID of the device |
include_hardware_data | boolean | If true, include full hardware_data JSON (may be large). Default false. |
get_hardware_change_history
List hardware changes detected for a device (RAM/CPU/storage changes, etc.) from the database. Newest first. Use when explaining upgrades, replacements, or audit questions.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | UUID of the device |
limit | integer | Maximum records (1–100). Default 50. |
get_device_assignment_history
Get assignment history for a device: who it was assigned to, when, and reasons. Uses stored records only. Use for ownership, handoff, and audit questions.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | UUID of the device |
get_device_security_summary
Get aggregated security status for a device: compliance score, alert counts, failed logins, USB summary, overall status. Uses stored DB data (device may be offline). Access follows the API token user's role (assigned device, org, or super admin).
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
get_device_compliance_snapshot
Get the latest compliance snapshot for a device: overall score, checks list, failed checks. Distinct from get_device_compliance_trend (which returns historical points).
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
get_device_compliance_trend
Get compliance history points over a time window (default 30 days, max 90) for charts or trends. Points are ordered oldest-first.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
days | integer | Lookback days (1-90). Default 30. |
get_security_events_timeline
Merged timeline of security log events and USB connect/disconnect events for a device, newest first. Optional filters: event_category (all|security|usb), security_event_type, time range (from_ts, to_ts ISO 8601), include_usb, limit (1-200).
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
event_category | string | Optional: all, security, or usb |
from_ts | string | Optional ISO 8601 lower bound |
include_usb | boolean | Include USB events when category is all. Default true. |
limit | integer | Max entries after merge (1-200). Default 50. |
security_event_type | string | Optional filter on security events, e.g. login_failed |
to_ts | string | Optional ISO 8601 upper bound |
list_device_security_alerts
List security alerts for a device. status_filter: active (default), acknowledged, resolved, dismissed, or all. limit 1-100 (default 25). Newest first.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
limit | integer | Max alerts (1-100). Default 25. |
status_filter | string | active | acknowledged | resolved | dismissed | all |
get_device_software_summary
List installed software for one device from the database (name, version, publisher, etc.). Optional limit 1-300 rows (default 150). Response includes total_count and truncated flag. Requires access to the device per the API token.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device UUID |
limit | integer | Max rows (1-300). Default 150. |
get_organization_software_summary
Organization-wide software rollup: top packages by how many devices report each name+version. RBAC: super admin must pass organization_id; org admin and asset manager are scoped to their org (optional organization_id must match). Regular users get access denied. top_n 1-150 (default 75).
| Parameter | Type | Description |
|---|---|---|
organization_id | string | Required for super admin. Optional for org admin / asset manager (must match their org if set). |
top_n | integer | Max distinct package rows (1-150). Default 75. |
restart_process
Restart a specific application process on a device. Safe for browsers and office applications. Use when diagnosis shows high memory/CPU usage from one application. Blocks system processes for safety.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device |
process_name * | string | Name of the process to restart (e.g., 'chrome.exe', 'outlook.exe') |
kill_process
Force-close a process on a device. Use only for completely frozen applications when restart is not possible. Can use process name or PID. Blocks critical system processes for safety.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device |
identifier * | string | Process name (e.g., 'chrome.exe') or PID number to kill |
clear_cache
Clear cache files for popular applications. Use when diagnosis points to corrupted cache causing slow startup or sync issues. Supported applications: outlook, chrome, teams, edge. Reports bytes freed and files deleted.
| Parameter | Type | Description |
|---|---|---|
application * | string | Application to clear cache for |
device_id * | string | The UUID of the device |
flush_dns
Flush the DNS resolver cache on a device. Use when user reports 'websites not loading' or connectivity problems. Completely safe operation that clears DNS cache.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device |
restart_service
Restart a Windows service on a device. Use when a specific service is hung (e.g., Print Spooler, Windows Update). Blocks critical system services for safety.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | The UUID of the device |
service_name * | string | Name of the Windows service to restart (e.g., 'Spooler', 'wuauserv') |