get_ai_runtime_metrics
Retrieve read-only AI runtime health metrics over a selected time window to monitor agent executions, p95 latencies, token use, tool failures, MCP errors, and Now Assist usage.
Instructions
AI runtime health over a time window: AI agent executions by agent and state with average duration, LLM tokens and p95 latencies (sn_aia_execution_plan), agent tool calls and failures (sn_aia_tools_execution), slowest agents from the p95 report metrics (sn_aia_report_metric), MCP server calls and errors (sn_mcp_execution_logs, sn_mcp_usage_job_history), Now Assist usage and assists (sys_gen_ai_usage_log, sys_gen_ai_log_detail), agent performance events (sn_aia_perf_event) and A2A traffic (sn_aia_external_agent_exec_history). Read-only.
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_ai_runtime_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back this many days (default 30, max 365) | |
| agent | No | Only executions of agents whose name contains this text | |
| limit | No | Max rows per list (default 15) |