Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Clearfund: follow a donation through every re-granting hop

Description and use

Clearfund is a chat agent that visualizes the path of a donation through intermediary organizations using IRS 990 data and Sanity.

Problem

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.

Outcome

Clearfund delivers accurate, source‑linked donation paths without login, enabling transparency of grant flows.

Workflow

  • 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.

Evidence

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?"

Source

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

Source

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.

Source

For anything that must be exactly right, the agent also calls four custom tools that run GROQ queries against the dataset.

Source

  • Record date: 2026-10-04T07:41:01.745Z