# RPC Diagnostic Agent

> Diagnose RPC connectivity, method support, and response health for any chain.

- canonical: <https://ai.tatum.io/workflows/rpc-diagnostic-agent>

## MCP tools

- `gateway_get_supported_chains`
- `gateway_get_supported_methods`
- `gateway_execute_rpc`

## Steps

1. Confirm the chain is supported via `gateway_get_supported_chains`.
2. Confirm the method exists via `gateway_get_supported_methods`.
3. Call `gateway_execute_rpc` and report timing, response code, and any error envelope.

## Possible failures

- Method not supported on the chain
- Rate-limit / quota exhaustion
- Network partition / endpoint downtime

## Recovery guidance

- Confirm the method against `gateway_get_supported_methods` before calling
- Backoff with jitter on 429; never spin
- Re-route via `gateway_execute_rpc` (managed gateway handles failover)
