Build an air‑quality agent that picks the right HDB purifier using MCP
说明与用途
使用 BuyWhere MCP 的实时价格构建 AI 代理,为 HDB 房间推荐最佳 CADR‑per‑dollar 空气净化器。
问题
Singapore residents often buy air purifiers that are too small or too expensive for their HDB rooms, leading to ineffective air cleaning during haze.
结果
The 70‑line Python script automatically recommends the most cost‑effective air purifier for a given HDB room, improving purchasing decisions and ensuring adequate air quality during haze.
工作流
- 1. Input room size (m²) and budget (SGD).
- 2. Compute required CADR = room size × 8.
- 3. Call BuyWhere MCP
search_productswith query "air purifier HEPA" and price bounds. - 4. Filter results for CADR ≥ required and price ≤ budget.
- 5. Score each product by CADR‑per‑dollar.
- 6. Sort scores descending and return top 5 with title, merchant, price, CADR, CADR‑per‑dollar, and purchase link.
证据
The agent does three things: Reads your room size (in square meters) and budget (in SGD), Searches the BuyWhere MCP catalog for air purifiers that match, Ranks them by CADR-per-dollar and includes live merchant links
CADR needed = room area (m²) × 8
- 记录日期: 2026-09-08T11:45:29.904Z