get_access_point_metrics
Retrieve WiFi access point signal-quality metrics over time to correlate signal quality with test performance and troubleshoot WiFi-related monitoring issues.
Instructions
Get WiFi access point metrics over time (Legacy API: GET /access_point_metrics.json, or GET /access_point_metrics/sample.json when 'cardinality' is set). Returns per-sample WiFi signal quality data: bit_rate (Mbps), channel, link_quality (0.0–1.0), signal_level (dBm), rx_rate / tx_rate (Mbps), and the associated network_interface_id.
Use this for WiFi troubleshooting — correlate signal quality with test performance to determine whether WiFi conditions are causing monitoring issues. Pairs well with agent logs (wpa_supplicant events) and the agent's access_point_connections endpoint.
Endpoint variant:
Without 'cardinality': returns every sample in the range (can be large for long windows).
With 'cardinality': switches to the downsampled /sample endpoint, which returns at most that many points — use this for long time ranges to keep the payload manageable.
Response: { metrics: [{ access_point_id, bit_rate, channel, id, link_quality, network_interface_id, rx_rate, signal_level, timestamp, tx_rate }] }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_access_point_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the time range. Accepts Unix epoch ms, Unix epoch seconds, or ISO 8601; the client normalizes to ms. Use together with 'from'. | |
| from | No | Start of the time range. Accepts Unix epoch ms, Unix epoch seconds, or ISO 8601; the client normalizes to ms. Use together with 'to'. | |
| agent_id | No | Filter to samples produced by this agent. Combinable with access_point_id. | |
| cardinality | No | Target number of points to return. When set, the tool calls the downsampled /access_point_metrics/sample.json endpoint and the response is reduced to ~this many evenly-spaced samples. Recommended for long time ranges. | |
| access_point_id | No | Filter to samples for this access point (BSSID-keyed AP). Combinable with agent_id. |