Skip to content

API Reference parrot_tools.system_health.tool

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.system_health.tool

View source

Read-only system health monitoring tool.

Exposes host-level metrics (CPU, RAM, disk, network, processes, Docker containers) to the LLM without any write or exec capabilities.

Security guarantees:

  • Uses psutil Python API, never shell commands (except read-only docker ps).
  • Reports process counts and top consumers by name only — no PIDs exposed.
  • Reports open file descriptor count, never file paths or contents.
  • Does not expose environment variables or secrets.
  • Docker: only docker ps (list running containers), no exec/run/stop.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Alias AbstractToolArgsSchema

Re-exported from parrot_tools.abstract.AbstractToolArgsSchema.

Class HealthCategory

Available health-check categories.

Class SystemHealthArgs

Arguments for the system health tool.

Attributes:

Attribute Type Description
category HealthCategory

Class SystemHealthTool

Read-only system health monitor.

Returns a structured snapshot of host metrics so the agent can reason about resource usage, capacity, and running services without any ability to modify the system.

Categories:

  • cpu: core count, per-core and average usage, load averages.
  • memory: total / available / used RAM and swap.
  • disk: per-partition usage (mount, total, used, free, percent).
  • network: per-interface bytes sent/received, packets, errors.
  • processes: total count, top 10 by CPU and top 10 by memory (name only).
  • system: hostname, platform, uptime, open-fd count, thread count.
  • docker: list of running containers (name, image, status, ports).
  • gpu: per-GPU utilization, temperature, VRAM usage (NVIDIA via pynvml, PyTorch fallback).

Attributes:

Attribute Type Description
name str
description str
args_schema type[AbstractToolArgsSchema]

Alias ToolResult

Re-exported from parrot_tools.abstract.ToolResult.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally