# risk.yo.xyz Pool Dependencies

> risk.yo.xyz Pool Dependencies is a paid API for AI agents from risk.yo.xyz, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Returns the direct (1-hop) dependencies of a DeFi pool node, including neighboring nodes and typed edges describing relationships like collateralization, allocation, and backing.

## Facts

- Endpoint: GET https://risk.yo.xyz/api/v1/agent/dependencies
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/risk-yo-xyz-839d1ea9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sTTmWgy1q3Q_Va2QmXlM1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability risk-yo-xyz-839d1ea9
```

Example prompt: Can you pull the direct dependencies for pool node 'compound-v3-usdc-mainnet' — I want to see what assets, protocols, and chains it's immediately connected to and what kind of relationships link them?

## When to prefer this

Use this endpoint when you need to understand the immediate structural dependencies of a specific DeFi pool — which assets back it, which protocols interact with it, and the typed relationships between them. Prefer this over a full node lookup when neighborhood context and edge semantics matter, and over recursive traversal when only 1-hop neighbors are needed for risk assessment or dependency mapping.

## Known failure modes

- Missing or invalid nodeId returns a 400 or empty result
- nodeId not found in the graph returns empty neighbors/edges arrays
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- Malformed query parameter causes schema validation error
- Node exists but has no dependencies returns empty arrays with valid 200

## How this service works

Direct (1-hop) dependencies of a pool — immediate neighbors + edge types

## Output

Returns a JSON object with two arrays: 'neighbors' (each with a stable node ID, PascalCase labels like Pool/Asset/Protocol/Chain, and a property bag including _riskTier rated A–F) and 'edges' (each with a type like ALLOCATES or IS_COLLATERALIZED_BY, sourceId, targetId, and additional properties). This gives a complete 1-hop neighborhood view of the pool's dependency structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "nodeId"
     ],
     "properties": {
      "nodeId": {
       "type": "string",
       "description": "Pool node id to fetch direct (1-hop) dependencies for."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "edges",
      "neighbors"
     ],
     "properties": {
      "edges": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "type",
         "sourceId",
         "targetId",
         "properties"
        ],
        "properties": {
         "type": {
          "type": "string",
          "description": "Edge label (e.g. \"ALLOCATES\", \"IS_COLLATERALIZED_BY\", \"BACKED_BY\")."
         },
         "sourceId": {
          "type": "string"
         },
         "targetId": {
          "type": "string"
         },
         "properties": {
          "type": "object",
          "additionalProperties": true
         }
        }
       }
      },
      "neighbors": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "labels",
         "properties"
        ],
        "properties": {
         "id": {
          "type": "string",
          "description": "Stable node identifier — `nodeId` everywhere else in the API."
         },
         "labels": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "PascalCase Neo4j labels (e.g. \"Pool\", \"Asset\", \"Protocol\", \"Chain\")."
         },
         "properties": {
          "type": "object",
          "description": "Per-label property bag — see /agent/schema for the canonical keys. Risk is exposed as `_riskTier` (A–F) only. May also carry `tvlUsd` (canonical $ size), `riskBreakdown` (on /node — an array of {question, answer} explaining the grade, no numbers), and `lastUpdatedAt` (on /dependencies — IS
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/risk-yo-xyz-839d1ea9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from risk.yo.xyz](https://www.zero.xyz/host/risk.yo.xyz/llms.txt)
