{
  "x402Version": 2,
  "id": 37924,
  "slug": "37924",
  "resource": "https://api.teardrop.dev/tools/mcp#get_token_approvals",
  "description": "Teardrop get_token_approvals: Block-accurate audit of ERC-20 allowances for a wallet across curated DeFi spenders (Uniswap, Aave, Compound, 1inch, 0x, OpenSea) on Ethereum or Base. Flags unlimited approvals by risk level (high=unknown spender, medium=trusted protocol, low=bounded). Use before swaps or after security incidents to detect active exploit vectors.",
  "type": "http",
  "resourceType": "MCP Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF2Eec9De86274913F85A8aA6427Ad65a9B0bC90a",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "approvals": {
            "items": {
              "properties": {
                "allowance_formatted": {
                  "type": "string"
                },
                "allowance_raw": {
                  "type": "string"
                },
                "is_permit2": {
                  "type": "boolean"
                },
                "is_unlimited": {
                  "type": "boolean"
                },
                "risk_level": {
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ],
                  "type": "string"
                },
                "spender_address": {
                  "type": "string"
                },
                "spender_name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "token_address": {
                  "type": "string"
                },
                "token_symbol": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "token_symbol",
                "token_address",
                "spender_name",
                "spender_address",
                "allowance_raw",
                "allowance_formatted",
                "is_unlimited",
                "is_permit2",
                "risk_level"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "chain_id": {
            "type": "integer"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "note": {
            "type": "string"
          },
          "risk_summary": {
            "properties": {
              "high_risk_approvals": {
                "type": "integer"
              },
              "total_approvals": {
                "type": "integer"
              },
              "unknown_spenders": {
                "type": "integer"
              },
              "unlimited_approvals": {
                "type": "integer"
              }
            },
            "required": [
              "total_approvals",
              "unlimited_approvals",
              "high_risk_approvals",
              "unknown_spenders"
            ],
            "type": "object"
          },
          "wallet_address": {
            "type": "string"
          }
        },
        "required": [
          "wallet_address",
          "chain_id",
          "approvals",
          "risk_summary",
          "note"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "description": "Block-accurate audit of ERC-20 allowances for a wallet across curated DeFi spenders (Uniswap, Aave, Compound, 1inch, 0x, OpenSea) on Ethereum or Base. Flags unlimited approvals by risk level (high=unknown spender, medium=trusted protocol, low=bounded). Use before swaps or after security incidents to detect active exploit vectors.",
          "inputSchema": {
            "properties": {
              "chain_id": {
                "default": 1,
                "description": "Chain ID (1=Ethereum, 8453=Base)",
                "title": "Chain Id",
                "type": "integer"
              },
              "spenders": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Spender contract addresses to check (max 20). Defaults to the curated DeFi protocol list.",
                "title": "Spenders"
              },
              "tokens": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Token contract addresses to check (max 50). Defaults to the platform tracked token list.",
                "title": "Tokens"
              },
              "wallet_address": {
                "description": "Wallet address (0x…)",
                "title": "Wallet Address",
                "type": "string"
              }
            },
            "required": [
              "wallet_address"
            ],
            "title": "GetTokenApprovalsInput",
            "type": "object"
          },
          "toolName": "get_token_approvals",
          "transport": "streamable-http",
          "type": "mcp"
        },
        "output": {
          "example": {
            "approvals": [],
            "chain_id": 0,
            "note": "",
            "risk_summary": {
              "high_risk_approvals": 0,
              "total_approvals": 0,
              "unknown_spenders": 0,
              "unlimited_approvals": 0
            },
            "wallet_address": ""
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "description": {
                "type": "string"
              },
              "inputSchema": {
                "type": "object"
              },
              "toolName": {
                "type": "string"
              },
              "transport": {
                "enum": [
                  "streamable-http",
                  "sse"
                ],
                "type": "string"
              },
              "type": {
                "const": "mcp",
                "type": "string"
              }
            },
            "required": [
              "type",
              "toolName",
              "inputSchema"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "approvals": {
                    "items": {
                      "properties": {
                        "allowance_formatted": {
                          "type": "string"
                        },
                        "allowance_raw": {
                          "type": "string"
                        },
                        "is_permit2": {
                          "type": "boolean"
                        },
                        "is_unlimited": {
                          "type": "boolean"
                        },
                        "risk_level": {
                          "enum": [
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "spender_address": {
                          "type": "string"
                        },
                        "spender_name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "token_address": {
                          "type": "string"
                        },
                        "token_symbol": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "token_symbol",
                        "token_address",
                        "spender_name",
                        "spender_address",
                        "allowance_raw",
                        "allowance_formatted",
                        "is_unlimited",
                        "is_permit2",
                        "risk_level"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "chain_id": {
                    "type": "integer"
                  },
                  "error": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "note": {
                    "type": "string"
                  },
                  "risk_summary": {
                    "properties": {
                      "high_risk_approvals": {
                        "type": "integer"
                      },
                      "total_approvals": {
                        "type": "integer"
                      },
                      "unknown_spenders": {
                        "type": "integer"
                      },
                      "unlimited_approvals": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "total_approvals",
                      "unlimited_approvals",
                      "high_risk_approvals",
                      "unknown_spenders"
                    ],
                    "type": "object"
                  },
                  "wallet_address": {
                    "type": "string"
                  }
                },
                "required": [
                  "wallet_address",
                  "chain_id",
                  "approvals",
                  "risk_summary",
                  "note"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.teardrop.dev",
  "lastUpdated": "2026-10-08T00:43:16.537Z",
  "quality": {
    "calls30d": 0,
    "uniquePayers30d": 0,
    "lastCalledAt": "2026-10-05T01:31:33.616Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "description": "Block-accurate audit of ERC-20 allowances for a wallet across curated DeFi spenders (Uniswap, Aave, Compound, 1inch, 0x, OpenSea) on Ethereum or Base. Flags unlimited approvals by risk level (high=unknown spender, medium=trusted protocol, low=bounded). Use before swaps or after security incidents to detect active exploit vectors.",
            "inputSchema": {
              "properties": {
                "chain_id": {
                  "default": 1,
                  "description": "Chain ID (1=Ethereum, 8453=Base)",
                  "title": "Chain Id",
                  "type": "integer"
                },
                "spenders": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null,
                  "description": "Spender contract addresses to check (max 20). Defaults to the curated DeFi protocol list.",
                  "title": "Spenders"
                },
                "tokens": {
                  "anyOf": [
                    {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null,
                  "description": "Token contract addresses to check (max 50). Defaults to the platform tracked token list.",
                  "title": "Tokens"
                },
                "wallet_address": {
                  "description": "Wallet address (0x…)",
                  "title": "Wallet Address",
                  "type": "string"
                }
              },
              "required": [
                "wallet_address"
              ],
              "title": "GetTokenApprovalsInput",
              "type": "object"
            },
            "toolName": "get_token_approvals",
            "transport": "streamable-http",
            "type": "mcp"
          },
          "output": {
            "example": {
              "approvals": [],
              "chain_id": 0,
              "note": "",
              "risk_summary": {
                "high_risk_approvals": 0,
                "total_approvals": 0,
                "unknown_spenders": 0,
                "unlimited_approvals": 0
              },
              "wallet_address": ""
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "type": "string"
                },
                "inputSchema": {
                  "type": "object"
                },
                "toolName": {
                  "type": "string"
                },
                "transport": {
                  "enum": [
                    "streamable-http",
                    "sse"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "mcp",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "toolName",
                "inputSchema"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "approvals": {
                      "items": {
                        "properties": {
                          "allowance_formatted": {
                            "type": "string"
                          },
                          "allowance_raw": {
                            "type": "string"
                          },
                          "is_permit2": {
                            "type": "boolean"
                          },
                          "is_unlimited": {
                            "type": "boolean"
                          },
                          "risk_level": {
                            "enum": [
                              "low",
                              "medium",
                              "high"
                            ],
                            "type": "string"
                          },
                          "spender_address": {
                            "type": "string"
                          },
                          "spender_name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "token_address": {
                            "type": "string"
                          },
                          "token_symbol": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "token_symbol",
                          "token_address",
                          "spender_name",
                          "spender_address",
                          "allowance_raw",
                          "allowance_formatted",
                          "is_unlimited",
                          "is_permit2",
                          "risk_level"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "chain_id": {
                      "type": "integer"
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null
                    },
                    "note": {
                      "type": "string"
                    },
                    "risk_summary": {
                      "properties": {
                        "high_risk_approvals": {
                          "type": "integer"
                        },
                        "total_approvals": {
                          "type": "integer"
                        },
                        "unknown_spenders": {
                          "type": "integer"
                        },
                        "unlimited_approvals": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "total_approvals",
                        "unlimited_approvals",
                        "high_risk_approvals",
                        "unknown_spenders"
                      ],
                      "type": "object"
                    },
                    "wallet_address": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "wallet_address",
                    "chain_id",
                    "approvals",
                    "risk_summary",
                    "note"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.teardrop.dev",
    "manifest_name": "api.teardrop.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "approvals": [
        {
          "allowance_formatted": "string",
          "allowance_raw": "string",
          "is_permit2": true,
          "is_unlimited": true,
          "risk_level": "low",
          "spender_address": "string",
          "spender_name": null,
          "token_address": "string",
          "token_symbol": null
        }
      ],
      "chain_id": 0,
      "error": null,
      "note": "string",
      "risk_summary": {
        "high_risk_approvals": 0,
        "total_approvals": 0,
        "unknown_spenders": 0,
        "unlimited_approvals": 0
      },
      "wallet_address": "string"
    },
    "type": "string"
  }
}