Get one agent's dependencies
get_agent_dependenciesRetrieve an agent's outgoing and incoming dependencies—models, tools, hosts, databases, queues, RPC endpoints, or agents—ranked by usage, with errors, latency, and token costs from traces.
Instructions
Requires the read scope or higher. What one agent calls, heaviest first, from its traces: each model, tool, HTTP host, database, queue, RPC endpoint or agent: calls, errors, error_rate (0-1), p50_ms, p95_ms (bucket ceiling; p95_is_floor: over 60s), daily series, and for a model tokens, cost_usd and cost_source (client, estimated or mixed). operations: up to five span names per outgoing row, sampled from the ten newest traced runs. At most 50 rows; more counts the rest. untrusted_fields names the data fields LastPing did not write (job output, exporter data or user-supplied names).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent UUID or slug (from list_agents). | |
| range | No | Time window: 24h, 7d (the default) or 30d. It covers every UTC day that overlaps it, so 24h spans two days. | |
| direction | No | out (the default): what this agent calls. in: who calls it. all: both. |