AI agent that checks a US nonprofit before you donate
The job
Donors and grant committees ask the same first questions: is this organisation still tax exempt, can a gift be deducted, and what did its latest return report? This agent answers them from IRS files, with the source and date next to each answer, and says plainly what it did not check.
Run it before a first gift and once a year for organisations you keep supporting.
Tool calls, in order
1. POST /v1/nonprofit_vet
An EIN is the safe way in. Two charities can have nearly the same name, and the number tells them apart.
What to read in the answer. First confirm the name and city belong to the organisation you mean. Then look at the revocation list result, the exemption code and the year of the latest return. A revenue figure from an old return should be quoted with its period.
curl -X POST https://api.foxapis.com/v1/nonprofit_vet \
-H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
-d '{"ein":"26-3618722","mode":"snapshot"}'
A real answer (saved 2026-11-25)
The sample below was captured from the full mode; the snapshot returns fewer parts.
{
"organization": {
"name": "PENCILS OF PROMISE INCORPORATED",
"ein": "26-3618722",
"city": "NEW YORK",
"state": "NY",
"page": "https://www.irs.gov/charities-non-profits/exempt-organizations-business-master-file-extract-eo-bmf"
},
"match": {
"how": "ein"
},
"irs_status.revocation_list": {
"checked": true,
"listed": false,
"entries": []
},
"latest_filing": {
"period": "2025-12",
"form": "990",
"revenue": 6551697,
"expenses": 3880982,
"assets": 3401456,
"liabilities": 82573,
"net_assets": 3318883,
"program_pct": 82.3,
"read_from": "IRS Form 990 e-file",
"page": "https://apps.irs.gov/pub/epostcard/990/xml/2026/2026_TEOS_XML_09A.zip"
},
"not_checked": [
{
"what": "State charity registration",
"reason": "No open, machine-readable state register is read yet; check the state attorney general's charity register for the state it solicits in."
},
{
"what": "News",
"reason": "No cited news check is run for organizations."
}
],
"verdict": {
"label": "exempt_no_flags_found",
"sentence": "PENCILS OF PROMISE INCORPORATED is listed by the IRS with unconditional tax exemption and absent from the automatic-revocation list, with revenue $..."
}
}Instruction to paste into your agent
You check US nonprofits for a giving committee. Take an EIN or a name with state. Report exemption status, whether the organisation is on the revocation list, whether gifts are deductible according to the IRS code returned, and the latest return period with revenue and expenses. Close with everything listed as not checked. Give no recommendation about giving.
Rules the agent should follow
- Ask for the EIN when a name search returns more than one organisation.
- Repeat the list of things not checked in every summary.
- Never call a charity good or bad; report what the files show.
What the agent hands back
A dated summary a committee member can read in a minute: legal name and EIN, exemption status, revocation list result, deductibility as coded by the IRS, the latest return with its period, and the list of items nobody checked.
What a person still does
The giver reads the latest return itself for anything large, looks at the state charity register where one exists, asks the organisation about programme results and recent changes, and weighs all of that. The agent's summary is the start of due diligence.
Limits
- IRS files say nothing about how well a programme works.
- Returns arrive long after the year they cover, so the latest one may be more than a year old.
- State charity registration and complaints may not be covered. Read the not checked list on each answer.
Cost of one run
- The snapshot mode of step 1: 200 credits
Total for one pass, taking one record or lookup from each call above, in credits: 200. Repeating a call costs it again. What a credit costs · Get a free key
MCP setup
The live MCP server offers nonprofit_vet. Add this to your MCP client's settings (Cursor reads .cursor/mcp.json; other clients use slightly different files), with your own key in place of YOUR_KEY.
{
"mcpServers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
Function definitions (plain JSON)
Each entry names the function, its arguments and the HTTP request it stands for. Your code sends the request with the header Authorization: Bearer YOUR_KEY and returns the JSON to the agent.
[
{
"name": "nonprofit_vet",
"description": "An EIN is the safe way in. Two charities can have nearly the same name, and the number tells them apart.",
"parameters": {
"type": "object",
"properties": {
"ein": {
"type": "string"
},
"mode": {
"type": "string"
}
},
"required": [
"ein"
]
},
"http": {
"method": "POST",
"url": "https://api.foxapis.com/v1/nonprofit_vet"
}
}
]
Pages for these calls
More blueprints
Executive moves agent · Layoff notice agent · Ownership map agent · Research award agent · all of them