{
  "name": "Privos",
  "description": "Agent-first self-custody DeFi lending wallet on Aave V3. Provides supply, borrow, repay, withdraw, rebalance, and yield optimization tools with on-chain ERC-4337 execution and HTTP 402 (x402) machine-to-machine payments.",
  "url": "https://api.privos.app",
  "documentationUrl": "https://privos.app/developers",
  "version": "1.0.0",
  "protocolVersion": "0.2.0",
  "provider": {
    "organization": "Privos",
    "url": "https://privos.app"
  },
  "preferredTransport": "JSONRPC",
  "supportedInterfaces": [
    {
      "url": "https://api.privos.app/agent",
      "transport": "JSONRPC",
      "description": "JSON-RPC 2.0 endpoint for A2A agent invocations."
    },
    {
      "url": "https://api.privos.app",
      "transport": "HTTP+JSON",
      "description": "REST API for direct agent calls (X-Agent-Key auth)."
    },
    {
      "url": "https://privos.app/.well-known/mcp.json",
      "transport": "MCP",
      "description": "Model Context Protocol server card (stdio transport)."
    }
  ],
  "additionalInterfaces": [
    {
      "url": "https://api.privos.app/agent/x402/pay",
      "transport": "x402",
      "description": "HTTP 402 USDC machine-to-machine payments on Arbitrum."
    }
  ],
  "defaultInputModes": ["application/json", "text/plain"],
  "defaultOutputModes": ["application/json", "text/plain"],
  "securitySchemes": {
    "agentKey": {
      "type": "apiKey",
      "in": "header",
      "name": "X-Agent-Key",
      "description": "Privos agent delegation key (prv_agent_<40 hex>). Created via POST /agent/keys with Privy auth."
    },
    "bearer": {
      "type": "http",
      "scheme": "bearer",
      "bearerFormat": "JWT",
      "description": "Privy-issued JWT for human user sessions."
    }
  },
  "security": [{ "agentKey": ["read", "trade"] }],
  "skills": [
    {
      "id": "aave-supply",
      "name": "Supply to Aave V3",
      "description": "Supply ERC-20 tokens to Aave V3 lending pool on Arbitrum and earn yield.",
      "tags": ["defi", "lending", "aave", "arbitrum"],
      "examples": ["Supply 100 USDC to Aave", "Lend 0.5 ETH on Aave V3"]
    },
    {
      "id": "aave-borrow",
      "name": "Borrow from Aave V3",
      "description": "Borrow against supplied collateral on Aave V3 with health factor enforcement.",
      "tags": ["defi", "borrowing", "aave"],
      "examples": ["Borrow 500 USDC against my ETH collateral"]
    },
    {
      "id": "aave-repay",
      "name": "Repay Aave V3 debt",
      "description": "Repay outstanding debt to improve health factor.",
      "tags": ["defi", "aave"],
      "examples": ["Repay 200 USDC of my Aave debt"]
    },
    {
      "id": "aave-withdraw",
      "name": "Withdraw from Aave V3",
      "description": "Withdraw supplied tokens from Aave V3.",
      "tags": ["defi", "aave"],
      "examples": ["Withdraw all my supplied USDC"]
    },
    {
      "id": "yield-optimization",
      "name": "Yield Optimization",
      "description": "Identify higher-yielding opportunities across Aave V3 reserves and rebalance.",
      "tags": ["defi", "optimization", "yield"],
      "examples": ["Find better yield for my USDC", "Rebalance my stablecoin portfolio"]
    },
    {
      "id": "health-monitoring",
      "name": "Health Factor Monitoring",
      "description": "Monitor liquidation risk and trigger alerts or auto-repay when thresholds are breached.",
      "tags": ["defi", "risk", "monitoring"],
      "examples": ["What is my Aave health factor?", "Alert me if HF drops below 1.5"]
    },
    {
      "id": "swap",
      "name": "Token Swap",
      "description": "DEX aggregation via 1inch with optional convert-and-supply to Aave in one batched user op.",
      "tags": ["defi", "swap", "1inch"],
      "examples": ["Swap 1 ETH to USDC and supply it to Aave"]
    },
    {
      "id": "cross-chain-deposit",
      "name": "Cross-Chain Deposit (Base ↔ Arbitrum)",
      "description": "Bridge funds from Base L2 to Arbitrum via Stargate V2.",
      "tags": ["defi", "bridge", "stargate"],
      "examples": ["Bridge 200 USDC from Base to Arbitrum"]
    },
    {
      "id": "x402-payment",
      "name": "x402 Machine-to-Machine Payments",
      "description": "Accept HTTP 402 payments in USDC on Arbitrum for paid agent endpoints (analysis, optimization, strategy generation).",
      "tags": ["payments", "x402", "agent-commerce"],
      "examples": ["Pay $0.01 to analyze this position", "Generate a custom yield strategy ($0.05)"]
    }
  ]
}
