{
  "name": "ReferAgent",
  "description": "Referral attribution and USDC settlement agent.",
  "version": "1.0.0",
  "tools": [
    {
      "name": "compute_attribution",
      "description": "Compute split chain for a transaction.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "transaction_id": {
            "type": "string"
          }
        },
        "required": [
          "transaction_id"
        ]
      }
    },
    {
      "name": "settle_payout",
      "description": "Settle a computed payout.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "transaction_id": {
            "type": "string"
          },
          "dry_run": {
            "type": "boolean"
          }
        },
        "required": [
          "transaction_id"
        ]
      }
    },
    {
      "name": "list_payouts",
      "description": "Recent payouts for a handle.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "handle": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          }
        },
        "required": [
          "handle"
        ]
      }
    },
    {
      "name": "verify_referrer",
      "description": "Confirm referrer status.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "handle": {
            "type": "string"
          }
        },
        "required": [
          "handle"
        ]
      }
    },
    {
      "name": "route_referral",
      "description": "Find best verified referrer path.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "buyer": {
            "type": "string"
          },
          "want": {
            "type": "string"
          }
        },
        "required": [
          "buyer",
          "want"
        ]
      }
    }
  ]
}