{
  "x402Version": 2,
  "id": 37931,
  "slug": "37931",
  "resource": "https://api.teardrop.dev/tools/mcp#get_dex_quote",
  "description": "Teardrop get_dex_quote: Get the best Uniswap v3 swap quote on Ethereum (chain_id=1) or Base (chain_id=8453) via direct on-chain QuoterV2 calls. Queries all four fee tiers (100/500/3000/10000 bps) in parallel and returns the tier with the highest output amount, along with per-tier breakdown. Inputs are raw uint256 amounts and EIP-55 checksummed addresses; native ETH is not quoted directly - pass the WETH address. Returns no_liquidity=true when no pool exists for the pair. Point-in-time quote a...",
  "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": {
          "amount_in": {
            "type": "string"
          },
          "amount_in_decimals": {
            "type": "integer"
          },
          "amount_out": {
            "type": "string"
          },
          "amount_out_decimals": {
            "type": "integer"
          },
          "amount_out_human": {
            "type": "string"
          },
          "block_number": {
            "type": "integer"
          },
          "chain_id": {
            "type": "integer"
          },
          "effective_rate": {
            "type": "string"
          },
          "fee_tier_used": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "no_liquidity": {
            "type": "boolean"
          },
          "quotes_per_tier": {
            "items": {
              "properties": {
                "amount_out": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "error": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "fee_tier": {
                  "type": "integer"
                },
                "gas_estimate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "sqrt_price_x96_after": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "fee_tier",
                "success"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "token_in": {
            "type": "string"
          },
          "token_out": {
            "type": "string"
          }
        },
        "required": [
          "chain_id",
          "token_in",
          "token_out",
          "amount_in",
          "amount_in_decimals",
          "amount_out",
          "amount_out_decimals",
          "amount_out_human",
          "effective_rate",
          "fee_tier_used",
          "quotes_per_tier",
          "no_liquidity",
          "block_number"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "description": "Get the best Uniswap v3 swap quote on Ethereum (chain_id=1) or Base (chain_id=8453) via direct on-chain QuoterV2 calls. Queries all four fee tiers (100/500/3000/10000 bps) in parallel and returns the tier with the highest output amount, along with per-tier breakdown. Inputs are raw uint256 amounts and EIP-55 checksummed addresses; native ETH is not quoted directly — pass the WETH address. Returns no_liquidity=true when no pool exists for the pair. Point-in-time quote at the returned block_numbe…",
          "inputSchema": {
            "properties": {
              "amount_in": {
                "description": "Input amount in RAW uint256 units (e.g. '1000000' for 1 USDC, '1000000000000000000' for 1 WETH). Must be > 0 and < 2^128. Common token decimals: WETH/ETH/DAI/wstETH/cbETH/weETH 18, WBTC/cbBTC 8, USDC/USDT 6. Do not call read_contract to look up decimals — use these values directly.",
                "title": "Amount In",
                "type": "string"
              },
              "chain_id": {
                "default": 1,
                "description": "1 = Ethereum mainnet, 8453 = Base mainnet. Other chains unsupported.",
                "title": "Chain Id",
                "type": "integer"
              },
              "token_in": {
                "description": "EIP-55 checksummed address of the token being sold. For native ETH, pass the WETH address (Ethereum: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; Base: 0x4200000000000000000000000000000000000006).",
                "title": "Token In",
                "type": "string"
              },
              "token_out": {
                "description": "EIP-55 checksummed address of the token being bought.",
                "title": "Token Out",
                "type": "string"
              }
            },
            "required": [
              "token_in",
              "token_out",
              "amount_in"
            ],
            "title": "GetDexQuoteInput",
            "type": "object"
          },
          "toolName": "get_dex_quote",
          "transport": "streamable-http",
          "type": "mcp"
        },
        "output": {
          "example": {
            "amount_in": "",
            "amount_in_decimals": 0,
            "amount_out": "",
            "amount_out_decimals": 0,
            "amount_out_human": "",
            "block_number": 0,
            "chain_id": 0,
            "effective_rate": "",
            "fee_tier_used": 0,
            "no_liquidity": false,
            "quotes_per_tier": [],
            "token_in": "",
            "token_out": ""
          },
          "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": {
                  "amount_in": {
                    "type": "string"
                  },
                  "amount_in_decimals": {
                    "type": "integer"
                  },
                  "amount_out": {
                    "type": "string"
                  },
                  "amount_out_decimals": {
                    "type": "integer"
                  },
                  "amount_out_human": {
                    "type": "string"
                  },
                  "block_number": {
                    "type": "integer"
                  },
                  "chain_id": {
                    "type": "integer"
                  },
                  "effective_rate": {
                    "type": "string"
                  },
                  "fee_tier_used": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "no_liquidity": {
                    "type": "boolean"
                  },
                  "quotes_per_tier": {
                    "items": {
                      "properties": {
                        "amount_out": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "error": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "fee_tier": {
                          "type": "integer"
                        },
                        "gas_estimate": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "sqrt_price_x96_after": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "success": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "fee_tier",
                        "success"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "token_in": {
                    "type": "string"
                  },
                  "token_out": {
                    "type": "string"
                  }
                },
                "required": [
                  "chain_id",
                  "token_in",
                  "token_out",
                  "amount_in",
                  "amount_in_decimals",
                  "amount_out",
                  "amount_out_decimals",
                  "amount_out_human",
                  "effective_rate",
                  "fee_tier_used",
                  "quotes_per_tier",
                  "no_liquidity",
                  "block_number"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.teardrop.dev",
  "lastUpdated": "2026-10-08T00:42:39.673Z",
  "quality": {
    "calls30d": 0,
    "uniquePayers30d": 0,
    "lastCalledAt": "2026-10-05T01:30:56.486Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "description": "Get the best Uniswap v3 swap quote on Ethereum (chain_id=1) or Base (chain_id=8453) via direct on-chain QuoterV2 calls. Queries all four fee tiers (100/500/3000/10000 bps) in parallel and returns the tier with the highest output amount, along with per-tier breakdown. Inputs are raw uint256 amounts and EIP-55 checksummed addresses; native ETH is not quoted directly — pass the WETH address. Returns no_liquidity=true when no pool exists for the pair. Point-in-time quote at the returned block_numbe…",
            "inputSchema": {
              "properties": {
                "amount_in": {
                  "description": "Input amount in RAW uint256 units (e.g. '1000000' for 1 USDC, '1000000000000000000' for 1 WETH). Must be > 0 and < 2^128. Common token decimals: WETH/ETH/DAI/wstETH/cbETH/weETH 18, WBTC/cbBTC 8, USDC/USDT 6. Do not call read_contract to look up decimals — use these values directly.",
                  "title": "Amount In",
                  "type": "string"
                },
                "chain_id": {
                  "default": 1,
                  "description": "1 = Ethereum mainnet, 8453 = Base mainnet. Other chains unsupported.",
                  "title": "Chain Id",
                  "type": "integer"
                },
                "token_in": {
                  "description": "EIP-55 checksummed address of the token being sold. For native ETH, pass the WETH address (Ethereum: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; Base: 0x4200000000000000000000000000000000000006).",
                  "title": "Token In",
                  "type": "string"
                },
                "token_out": {
                  "description": "EIP-55 checksummed address of the token being bought.",
                  "title": "Token Out",
                  "type": "string"
                }
              },
              "required": [
                "token_in",
                "token_out",
                "amount_in"
              ],
              "title": "GetDexQuoteInput",
              "type": "object"
            },
            "toolName": "get_dex_quote",
            "transport": "streamable-http",
            "type": "mcp"
          },
          "output": {
            "example": {
              "amount_in": "",
              "amount_in_decimals": 0,
              "amount_out": "",
              "amount_out_decimals": 0,
              "amount_out_human": "",
              "block_number": 0,
              "chain_id": 0,
              "effective_rate": "",
              "fee_tier_used": 0,
              "no_liquidity": false,
              "quotes_per_tier": [],
              "token_in": "",
              "token_out": ""
            },
            "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": {
                    "amount_in": {
                      "type": "string"
                    },
                    "amount_in_decimals": {
                      "type": "integer"
                    },
                    "amount_out": {
                      "type": "string"
                    },
                    "amount_out_decimals": {
                      "type": "integer"
                    },
                    "amount_out_human": {
                      "type": "string"
                    },
                    "block_number": {
                      "type": "integer"
                    },
                    "chain_id": {
                      "type": "integer"
                    },
                    "effective_rate": {
                      "type": "string"
                    },
                    "fee_tier_used": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "no_liquidity": {
                      "type": "boolean"
                    },
                    "quotes_per_tier": {
                      "items": {
                        "properties": {
                          "amount_out": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "error": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "fee_tier": {
                            "type": "integer"
                          },
                          "gas_estimate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "sqrt_price_x96_after": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "success": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "fee_tier",
                          "success"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "token_in": {
                      "type": "string"
                    },
                    "token_out": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "chain_id",
                    "token_in",
                    "token_out",
                    "amount_in",
                    "amount_in_decimals",
                    "amount_out",
                    "amount_out_decimals",
                    "amount_out_human",
                    "effective_rate",
                    "fee_tier_used",
                    "quotes_per_tier",
                    "no_liquidity",
                    "block_number"
                  ],
                  "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": {
      "amount_in": "string",
      "amount_in_decimals": 0,
      "amount_out": "string",
      "amount_out_decimals": 0,
      "amount_out_human": "string",
      "block_number": 0,
      "chain_id": 0,
      "effective_rate": "string",
      "fee_tier_used": null,
      "no_liquidity": true,
      "quotes_per_tier": [
        {
          "amount_out": null,
          "error": null,
          "fee_tier": 0,
          "gas_estimate": null,
          "sqrt_price_x96_after": null,
          "success": true
        }
      ],
      "token_in": "string",
      "token_out": "string"
    },
    "type": "string"
  }
}