Clearfund: follow a donation through every re-granting hop
Описание и применение
Clearfund – чат‑бот, который показывает путь пожертвования через промежуточные организации, используя данные IRS 990 и Sanity.
Задача
Users want to know how many intermediary hops a donation takes before reaching a program, but IRS Form 990 Schedule I tables are rarely read.
Результат
Clearfund delivers accurate, source‑linked donation paths without login, enabling transparency of grant flows.
Рабочий процесс
- 1. User asks a question in the chat UI.
- 2. The agent sends the question to Vercel AI SDK’s streamText, which selects tools.
- 3. Context MCP endpoint supplies background on organizations via a Knowledge Base.
- 4. Custom GROQ tools (traceChain, getGrantsByFunder, getGrantsByRecipient, findIntermediaries) query the Sanity dataset for exact grant data.
- 5. The agent assembles the chain diagram and grant table from tool outputs.
- 6. Each grant entry links to its IRS filing via sourceObjectId.
Доказательства
Clearfund is a chat agent that answers questions like "If I donate to Silicon Valley Community Foundation, how many hops before it reaches a program?"
Each answer comes with: a chain diagram showing each hop, sized by grant amount; a grant table with amounts, years and purposes; a link on every grant to the original IRS filing
The agent connects to the Knowledge Base through the Context MCP endpoint. It reads the entry outline with initial_context, then uses knowledge_base_search and knowledge_base_read to find and open the entries it needs.
For anything that must be exactly right, the agent also calls four custom tools that run GROQ queries against the dataset.
- Дата записи: 2026-10-04T07:41:01.745Z