mcp-agentnex

v0.1.13
mcp-agentnex Checked 21 hours ago Published 2 months ago

MCP 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.

ParameterTypeDescription
organization_idstringOptional. 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.

ParameterTypeDescription
device_id *stringThe 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.

ParameterTypeDescription
device_id *stringThe 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).

ParameterTypeDescription
device_id *stringUUID of the device
include_hardware_databooleanIf 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.

ParameterTypeDescription
device_id *stringUUID of the device
limitintegerMaximum 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.

ParameterTypeDescription
device_id *stringUUID 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).

ParameterTypeDescription
device_id *stringDevice 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).

ParameterTypeDescription
device_id *stringDevice 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.

ParameterTypeDescription
device_id *stringDevice UUID
daysintegerLookback 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).

ParameterTypeDescription
device_id *stringDevice UUID
event_categorystringOptional: all, security, or usb
from_tsstringOptional ISO 8601 lower bound
include_usbbooleanInclude USB events when category is all. Default true.
limitintegerMax entries after merge (1-200). Default 50.
security_event_typestringOptional filter on security events, e.g. login_failed
to_tsstringOptional 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.

ParameterTypeDescription
device_id *stringDevice UUID
limitintegerMax alerts (1-100). Default 25.
status_filterstringactive | 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.

ParameterTypeDescription
device_id *stringDevice UUID
limitintegerMax 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).

ParameterTypeDescription
organization_idstringRequired for super admin. Optional for org admin / asset manager (must match their org if set).
top_nintegerMax 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.

ParameterTypeDescription
device_id *stringThe UUID of the device
process_name *stringName 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.

ParameterTypeDescription
device_id *stringThe UUID of the device
identifier *stringProcess 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.

ParameterTypeDescription
application *stringApplication to clear cache for
device_id *stringThe 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.

ParameterTypeDescription
device_id *stringThe 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.

ParameterTypeDescription
device_id *stringThe UUID of the device
service_name *stringName of the Windows service to restart (e.g., 'Spooler', 'wuauserv')