Skip to content

get_metrics

Snapshot Prometheus-style metrics as structured JSON: per-(vault,tool,status) invocation counters and rate-limit-hit counters aggregated from the local event_log + live limiter, plus uptime/registered-vault/registered-tool gauges. Optionally filter to one vault. Domain: admin.

Domain admin
Scopes admin:metrics
Access write
Tags read-only, admin, domain:admin
Profile core, full
Annotation Value
Read-only yes
Destructive no
Idempotent no
Accepts an idempotency key no

Idempotent is the advisory MCP idempotentHint. Destructive is also yes for a tool that asks for confirmation only on some calls.

No human confirmation is required to call this tool.

Parameter Type Required Default Description
vault string — length 1–64; pattern ^[a-z0-9_-]+$
Field Type Always present Description
metrics object[] yes —
metrics[].name string yes —
metrics[].type enum yes One of: "counter", "gauge"
metrics[].value number yes —
metrics[].labels Record<string, string> yes —

Other tools in the admin domain: cancel_task, get_index_status, get_server_config, get_task_status, inspect_acl, inspect_visibility, server_health, session_rerun.

Back to the tool catalog.