Query PCP historical metrics
pcp_query_metricsFetch historical PCP metric samples as JSON from local or remote Linux hosts, with configurable time ranges and intervals for performance diagnostics.
Instructions
Retrieves historical metric data from PCP archives as JSON samples. When start_time, end_time, or interval is omitted, reasonable defaults are chosen, targeting one hour or about 20 samples. Call pcp_guide first for the metric catalog and how to read the values; do not guess metric names. Use only if get_system_information() indicates PCP is available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | System to run on: 'localhost' for the system the MCP server runs on, or a remote host to connect to via SSH | |
| metrics | Yes | List of PCP metric names to query | |
| end_time | No | End time as a full date and time (e.g., '2026-08-14 16:00:00'), or 'now'. Timestamps without a UTC offset are read in the target system's timezone. | |
| interval | No | Sampling interval (e.g., '1minute', '10seconds', '5minutes'). | |
| start_time | No | Start time as a full date and time (e.g., '2026-08-14 14:00:00'), or 'now'. Timestamps without a UTC offset are read in the target system's timezone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |