@cyanheads/nonprofit-explorer-mcp-server 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/AGENTS.md +34 -18
  2. package/CLAUDE.md +34 -18
  3. package/Dockerfile +17 -8
  4. package/LICENSE +1 -1
  5. package/README.md +15 -12
  6. package/changelog/0.1.x/0.1.5.md +40 -0
  7. package/changelog/0.1.x/0.1.6.md +25 -0
  8. package/changelog/template.md +60 -19
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/mcp-server/tools/definitions/nonprofit-get-filings.tool.d.ts +4 -7
  12. package/dist/mcp-server/tools/definitions/nonprofit-get-filings.tool.d.ts.map +1 -1
  13. package/dist/mcp-server/tools/definitions/nonprofit-get-filings.tool.js +86 -114
  14. package/dist/mcp-server/tools/definitions/nonprofit-get-filings.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/nonprofit-get-organization.tool.d.ts +4 -0
  16. package/dist/mcp-server/tools/definitions/nonprofit-get-organization.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/nonprofit-get-organization.tool.js +110 -44
  18. package/dist/mcp-server/tools/definitions/nonprofit-get-organization.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/nonprofit-search.tool.d.ts +24 -14
  20. package/dist/mcp-server/tools/definitions/nonprofit-search.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/nonprofit-search.tool.js +114 -37
  22. package/dist/mcp-server/tools/definitions/nonprofit-search.tool.js.map +1 -1
  23. package/dist/services/nonprofit-explorer/nonprofit-explorer-service.d.ts +12 -0
  24. package/dist/services/nonprofit-explorer/nonprofit-explorer-service.d.ts.map +1 -1
  25. package/dist/services/nonprofit-explorer/nonprofit-explorer-service.js +83 -32
  26. package/dist/services/nonprofit-explorer/nonprofit-explorer-service.js.map +1 -1
  27. package/dist/services/nonprofit-explorer/types.d.ts +29 -2
  28. package/dist/services/nonprofit-explorer/types.d.ts.map +1 -1
  29. package/package.json +12 -11
  30. package/server.json +3 -3
@@ -4,10 +4,11 @@
4
4
  # to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
5
5
  # with a concrete date.
6
6
 
7
- # Required. One-line GitHub Release-style headline. 350 character cap.
8
- # Default short and scannable. Don't pad, don't stitch unrelated changes with
9
- # semicolons — pick the headline. Quotes required: unquoted YAML treats `: `
10
- # inside the value as a key separator and fails GitHub's strict parser.
7
+ # Required. One-line GitHub Release-style headline. 350 character cap — a
8
+ # ceiling, not a target. Default short and scannable. Don't pad, don't stitch
9
+ # unrelated changes with commas/semicolons into an inventory — pick the
10
+ # headline, like a tag's theme line. Quotes required: unquoted YAML treats
11
+ # `: ` inside the value as a key separator and fails GitHub's strict parser.
11
12
  summary: ""
12
13
 
13
14
  # Set `true` when consumers must change code to upgrade: API removals,
@@ -15,16 +16,19 @@ summary: ""
15
16
  # usage. Flagged as `Breaking` in the rollup.
16
17
  breaking: false
17
18
 
18
- # Set `true` if this release contains any security fix. Pairs with the
19
- # `## Security` section below. Flagged as `Security` in the rollup so
20
- # users can triage upgrade urgency at a glance.
19
+ # Set `true` ONLY for a security fix in THIS project's own source code — a
20
+ # vulnerability or hardening in code you ship. A dependency or transitive CVE
21
+ # bump is routine maintenance, NOT a security release: record it under
22
+ # `## Dependencies` (with the advisory ID) and leave this `false`. When true,
23
+ # pairs with the `## Security` section below and flags `Security` in the rollup.
21
24
  security: false
22
25
 
23
26
  # Optional free-form notes for maintenance agents processing this release.
24
27
  # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
25
- # downstream servers. Use for adoption instructions that don't fit the
26
- # human-facing sections: new files to create, fields to populate, one-time
27
- # migration steps. Omit the field entirely when there's nothing to say.
28
+ # downstream servers. ADOPTION STEPS ONLY — new files to create, fields to
29
+ # populate, one-time migration steps. Never a second rendering of the body:
30
+ # if a body bullet already says it, name the bullet's symbol instead of
31
+ # re-explaining. Omit the field entirely when there's nothing to say.
28
32
  # agent-notes: |
29
33
  # <instructions for downstream maintenance agents>
30
34
  ---
@@ -39,17 +43,54 @@ security: false
39
43
  each bullet with the symbol or concept name in **bold** so they can skip
40
44
  what's irrelevant and zoom in on what's not.
41
45
 
42
- Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
43
- name the symbol, state what changed, stop. Use a second sentence only when
44
- it carries weight. If a bullet feels long, it is.
45
-
46
- Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
47
- relevant skill), ceremonial framings ("This release introduces…",
48
- backwards-compat paragraphs), file-by-file test enumerations, internal
49
- implementation notes. Prefer code/symbol names over English re-explanations.
46
+ Tone: terse, fact-dense, not verbose. Bullet shape: **symbol** + what
47
+ changed + at most one consumer-facing caveat. One sentence by default, two
48
+ when the second carries weight — a bullet past ~40 words or three sentences
49
+ is wrong. The depth lives one hop away: the linked issue carries the why,
50
+ the commit diff carries the how. The changelog names what changed and what
51
+ a consumer does about it; a reader who wants mechanism opens the link.
52
+
53
+ Model length on THIS guide, never on the previous entry — entries modeled
54
+ on entries compound.
55
+
56
+ Cut (each has shipped as a wall of text; these are the cruft):
57
+ - History/justification narration — how the bug worked, why the old
58
+ behavior was wrong. One short clause at most; the issue carries the story.
59
+ - Design-rationale defense — "chosen over Y because…", "guarding the
60
+ getter is not enough…". That is the author arguing with a reviewer;
61
+ reviewers read the PR, not the changelog.
62
+ - Defensive unchanged-clauses — "X is unchanged", "byte-identical to
63
+ <prev>". Keep one only where its absence would cause a real misread,
64
+ as a short parenthetical.
65
+ - Edge-case inventories — marker lists, not-flagged lists, escape tables.
66
+ Tests and the issue carry those.
67
+ - Mechanism walkthroughs (JSDoc, CLAUDE.md/AGENTS.md, or the relevant
68
+ skill own those), ceremonial framings ("This release introduces…"),
69
+ backwards-compat paragraphs, file-by-file test enumerations. Prefer
70
+ code/symbol names over English re-explanations.
71
+
72
+ Verified ≠ included: the every-claim-verified-from-the-diff rule bounds
73
+ the TRUTH of what you write, never the AMOUNT.
74
+
75
+ Example — same fact, right size:
76
+
77
+ TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
78
+ (#341). `fetch` resolves once headers arrive and the deadline was
79
+ cleared as the helper returned, so a peer that answered promptly and
80
+ then stalled the stream held the request open indefinitely. A 2xx
81
+ carrying a body now comes back as a passthrough wrapper that disarms
82
+ the deadline when the body closes, errors, or is cancelled; …
83
+ [+90 more words of mechanism and edge cases]
84
+
85
+ RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
86
+ exchange, not just the headers** (#341). A stalled body aborts with
87
+ the same `Timeout` error; the returned `Response` is a wrapper, so
88
+ identity assertions (`toBe(response)`) no longer hold.
50
89
 
51
90
  Narrative intro: skip by default. Add one short sentence only when the
52
- release theme genuinely needs framing the bullets can't carry.
91
+ release theme genuinely needs framing the bullets can't carry. When many
92
+ bullets share one upgrade consequence, state it ONCE — intro line or
93
+ agent-notes — never per bullet.
53
94
 
54
95
  Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
55
96
  Fixed, Security. Include only sections with entries; delete the rest
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ await createApp({
20
20
  instructions: 'ProPublica Nonprofit Explorer — keyless read-only access to IRS Form 990 data on 1.8M+ tax-exempt organizations.\n' +
21
21
  '- Start with nonprofit_search to find an org by name and get its EIN\n' +
22
22
  '- Use nonprofit_get_organization for the full profile and latest financial snapshot\n' +
23
- '- Use nonprofit_get_filings for year-by-year 990 data, program expense ratios, executive comp, and PDF links\n' +
23
+ '- Use nonprofit_get_filings for year-by-year 990 data, executive comp, and source PDF links\n' +
24
24
  '- Data lags 1–2 years; always cite the fiscal year (tax_prd_yr) when presenting financial figures',
25
25
  });
26
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,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AAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;IACD,YAAY,EACV,oHAAoH;QACpH,wEAAwE;QACxE,uFAAuF;QACvF,+FAA+F;QAC/F,mGAAmG;CACtG,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview All Form 990 filings for an org with financials, program-expense ratio, and PDF links.
2
+ * @fileoverview All Form 990 filings for an org with financials, executive compensation, and PDF links.
3
3
  * @module mcp-server/tools/definitions/nonprofit-get-filings.tool
4
4
  */
5
5
  import { z } from '@cyanheads/mcp-ts-core';
@@ -57,16 +57,13 @@ export declare const nonprofitGetFilings: import("@cyanheads/mcp-ts-core").ToolD
57
57
  readonly code: JsonRpcErrorCode.NotFound;
58
58
  readonly when: "The EIN does not correspond to a known organization in the Nonprofit Explorer database";
59
59
  readonly recovery: "Verify the EIN with nonprofit_search. Use the integer EIN value (leading zeros stripped).";
60
- }, {
61
- readonly reason: "no_filings";
62
- readonly code: JsonRpcErrorCode.NotFound;
63
- readonly when: "Org is known but has no Form 990 data in Nonprofit Explorer — typically a small org filing Form 990N (e-Postcard)";
64
- readonly recovery: string;
65
60
  }, {
66
61
  readonly reason: "upstream_error";
67
62
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
68
63
  readonly when: "ProPublica API returns a non-JSON body or network error";
69
64
  readonly retryable: true;
70
65
  readonly recovery: "Wait a moment and retry.";
71
- }], undefined>;
66
+ }], {
67
+ readonly notice: z.ZodOptional<z.ZodString>;
68
+ }>;
72
69
  //# sourceMappingURL=nonprofit-get-filings.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nonprofit-get-filings.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-filings.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkGjE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiY9B,CAAC"}
1
+ {"version":3,"file":"nonprofit-get-filings.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-filings.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA6DjE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Y9B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview All Form 990 filings for an org with financials, program-expense ratio, and PDF links.
2
+ * @fileoverview All Form 990 filings for an org with financials, executive compensation, and PDF links.
3
3
  * @module mcp-server/tools/definitions/nonprofit-get-filings.tool
4
4
  */
5
5
  import { tool, z } from '@cyanheads/mcp-ts-core';
@@ -7,6 +7,16 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
7
7
  import { getNonprofitExplorerService, normalizeEin, } from '../../../services/nonprofit-explorer/nonprofit-explorer-service.js';
8
8
  const USD = (n) => `$${n.toLocaleString()}`;
9
9
  const PCT = (n) => `${(n * 100).toFixed(1)}%`;
10
+ /** A figure ProPublica did not extract from this filing. */
11
+ const NOT_EXTRACTED = 'Not extracted';
12
+ /** A figure the organization left blank on the filing. */
13
+ const NOT_REPORTED = 'Not reported';
14
+ /** A figure no field in the response can produce. */
15
+ const NOT_DERIVABLE = 'Not derivable from this data source';
16
+ /** A line item that does not exist on the given form type at all. */
17
+ const notApplicableFor = (formType) => `Not applicable for ${formType}`;
18
+ /** Render a nullable USD amount, naming why it is absent rather than omitting the line. */
19
+ const money = (n, absent = NOT_EXTRACTED) => (n == null ? absent : USD(n));
10
20
  /** Map formtype integer to form label. */
11
21
  function formTypeLabel(ft) {
12
22
  if (ft === 1)
@@ -15,45 +25,10 @@ function formTypeLabel(ft) {
15
25
  return '990-PF';
16
26
  return '990';
17
27
  }
18
- /** Compute program-expense ratio for 990/990-EZ (formtype 0 or 1). Returns null for 990-PF. */
19
- function computeProgramExpenseRatio(filing) {
20
- if (filing.formtype === 2) {
21
- // 990-PF: fields not available
22
- return null;
23
- }
24
- const total = filing.totfuncexpns ?? null;
25
- const officerComp = filing.compnsatncurrofcr ?? null;
26
- const otherSalaries = filing.othrsalwages ?? null;
27
- const fundraising = filing.profndraising ?? null;
28
- // Only compute ratio when we have enough inputs
29
- let ratio = null;
30
- let programExpenses = null;
31
- if (total != null &&
32
- officerComp != null &&
33
- otherSalaries != null &&
34
- fundraising != null &&
35
- total > 0) {
36
- programExpenses = total - officerComp - otherSalaries - fundraising;
37
- ratio = programExpenses / total;
38
- }
39
- else if (total != null && total > 0) {
40
- // Partial: compute what we can
41
- const deductions = (officerComp ?? 0) + (otherSalaries ?? 0) + (fundraising ?? 0);
42
- programExpenses = total - deductions;
43
- ratio = programExpenses / total;
44
- }
45
- return {
46
- ratio,
47
- program_expenses: programExpenses,
48
- total_expenses: total,
49
- management_compensation: officerComp,
50
- other_salaries: otherSalaries,
51
- fundraising_expenses: fundraising,
52
- note: 'Program expenses = total − officer/director comp − other salaries/wages − professional fundraising. ' +
53
- 'Approximation — consult the source PDF Part IX for the full expense schedule.',
54
- };
55
- }
56
- /** Build executive compensation object. Returns null if no compensation field available. */
28
+ /**
29
+ * Build the executive-compensation summary. The form type picks the source field;
30
+ * `amount` is null when the extract omits it.
31
+ */
57
32
  function buildExecComp(filing) {
58
33
  if (filing.formtype === 2) {
59
34
  // 990-PF: compofficers (may be null/absent in the extract)
@@ -76,11 +51,10 @@ function buildExecComp(filing) {
76
51
  export const nonprofitGetFilings = tool('nonprofit_get_filings', {
77
52
  title: 'Get Nonprofit Filings',
78
53
  description: 'All Form 990 filings for a tax-exempt org by EIN: year-by-year revenue, expenses, assets, ' +
79
- 'program-expense ratio (with inputs shown), executive compensation, and source PDF/XML links. ' +
54
+ 'liabilities, net assets, revenue breakdown, executive compensation, and source PDF links. ' +
80
55
  'Use for trend analysis, due diligence, and accessing primary 990 documents. ' +
81
56
  'The filing year (tax_prd_yr) is the fiscal year of the return — data lags 1–2 years; always cite the year. ' +
82
- 'Program expense ratio is computed as (total_expenses − officer comp − other wages − fundraising) / total_expenses ' +
83
- 'for 990/990-EZ; not available for 990-PF. ' +
57
+ 'An organization that resolves but has filed no 990 returns an empty filings array with a notice, not an error. ' +
84
58
  'Also returns filings_pdf_only — older filings with a PDF but no extracted financial data. ' +
85
59
  'Data from ProPublica Nonprofit Explorer, sourced from IRS Form 990 filings.',
86
60
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -157,15 +131,15 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
157
131
  ratio: z
158
132
  .number()
159
133
  .nullable()
160
- .describe('Program expense ratio as decimal 0.0–1.0. Null if inputs insufficient.'),
134
+ .describe('Program-service expenses divided by total functional expenses, as a decimal 0.0–1.0. Always null against the current data source, which reports no program-service expense total.'),
161
135
  program_expenses: z
162
136
  .number()
163
137
  .nullable()
164
- .describe('Computed program expenses (total − officer comp − other wages − fundraising) in USD.'),
138
+ .describe('Program-service expenses in USD — Form 990 Part IX column (B), line 25.'),
165
139
  total_expenses: z
166
140
  .number()
167
141
  .nullable()
168
- .describe('Total functional expenses (denominator) in USD. From totfuncexpns.'),
142
+ .describe('Total functional expenses in USD — Form 990 Part IX column (A). From totfuncexpns.'),
169
143
  management_compensation: z
170
144
  .number()
171
145
  .nullable()
@@ -180,11 +154,10 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
180
154
  .describe('Professional fundraising fees (profndraising) in USD. Null when not reported.'),
181
155
  note: z
182
156
  .string()
183
- .describe('Methodology note explaining the computation and its limitations.'),
157
+ .describe('Methodology note naming the source of the functional allocation.'),
184
158
  })
185
159
  .nullable()
186
- .describe('Program-expense ratio with inputs. Null for 990-PF (different field set). ' +
187
- 'Approximation — consult the source PDF for the full expense schedule.'),
160
+ .describe('Always null against the current data source. ProPublica returns no Form 990 Part IX column (B) program-service expense total, and the functional allocation across program, management, and fundraising cannot be reconstructed from the fields it does return. Read Part IX of the filing at pdf_url for the split.'),
188
161
  executive_compensation: z
189
162
  .object({
190
163
  amount: z
@@ -226,6 +199,12 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
226
199
  data_source: z.string().describe('ProPublica + IRS attribution text.'),
227
200
  propublica_url: z.string().describe('ProPublica Nonprofit Explorer URL for this org.'),
228
201
  }),
202
+ enrichment: {
203
+ notice: z
204
+ .string()
205
+ .optional()
206
+ .describe('Present when the organization resolved but Nonprofit Explorer holds no filing of any kind for it — names the org and why the filing history is empty. An empty filings array without this notice means the org has filings that carry a PDF but no extracted data; read filings_pdf_only.'),
207
+ },
229
208
  errors: [
230
209
  {
231
210
  reason: 'not_found',
@@ -233,13 +212,6 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
233
212
  when: 'The EIN does not correspond to a known organization in the Nonprofit Explorer database',
234
213
  recovery: 'Verify the EIN with nonprofit_search. Use the integer EIN value (leading zeros stripped).',
235
214
  },
236
- {
237
- reason: 'no_filings',
238
- code: JsonRpcErrorCode.NotFound,
239
- when: 'Org is known but has no Form 990 data in Nonprofit Explorer — typically a small org filing Form 990N (e-Postcard)',
240
- recovery: 'Small organizations with under $50,000 in revenue file Form 990N (e-Postcard), ' +
241
- 'which is not included in Nonprofit Explorer. The org exists but has no 990 data to display.',
242
- },
243
215
  {
244
216
  reason: 'upstream_error',
245
217
  code: JsonRpcErrorCode.ServiceUnavailable,
@@ -259,10 +231,16 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
259
231
  const org = raw.organization;
260
232
  const filingsWithData = raw.filings_with_data ?? [];
261
233
  const filingsWithoutData = raw.filings_without_data ?? [];
262
- // Check for org with no filings at all (small org, 990N filer)
234
+ /**
235
+ * The EIN resolved to a real organization that has simply never filed a 990 — a
236
+ * successful lookup with an empty result set, not a failure. Returning it as an
237
+ * error would leave a client branching on `isError` unable to tell "this org has
238
+ * never filed" from "the lookup failed".
239
+ */
263
240
  if (filingsWithData.length === 0 && filingsWithoutData.length === 0) {
264
- throw ctx.fail('no_filings', `Organization "${org.name}" (EIN ${ein}) has no Form 990 data in Nonprofit Explorer. ` +
265
- 'It may file Form 990N (e-Postcard) for organizations with under $50,000 in annual revenue.', { ...ctx.recoveryFor('no_filings') });
241
+ ctx.enrich.notice(`Organization "${org.name}" (EIN ${ein}) resolved, but Nonprofit Explorer holds no Form 990 for it. ` +
242
+ 'Organizations with under $50,000 in annual revenue file Form 990N (e-Postcard), which this dataset does not cover. ' +
243
+ 'Filings also lag 1–2 years, so a recently formed organization may not have one on record yet.');
266
244
  }
267
245
  // Sort by fiscal year descending (newest first)
268
246
  const sortedFilings = [...filingsWithData].sort((a, b) => (b.tax_prd_yr ?? 0) - (a.tax_prd_yr ?? 0));
@@ -280,7 +258,13 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
280
258
  contributions_and_grants: f.totcntrbgfts ?? null,
281
259
  program_service_revenue: f.totprgmrevnue ?? null,
282
260
  investment_income: f.invstmntinc ?? null,
283
- program_expense_ratio: computeProgramExpenseRatio(f),
261
+ /**
262
+ * Not derived. `totfuncexpns` is Form 990 Part IX column (A); the program-service
263
+ * total is column (B), which ProPublica does not return, and Part IX allocates
264
+ * every expense line across program, management, and fundraising — not just
265
+ * `compnsatncurrofcr`, `othrsalwages`, and `profndraising`.
266
+ */
267
+ program_expense_ratio: null,
284
268
  executive_compensation: buildExecComp(f),
285
269
  }));
286
270
  const mappedPdfOnly = filingsWithoutData.map((f) => ({
@@ -309,69 +293,57 @@ export const nonprofitGetFilings = tool('nonprofit_get_filings', {
309
293
  lines.push(`**Profile:** ${result.propublica_url}`);
310
294
  lines.push('');
311
295
  lines.push('> ⚠️ Data lags 1–2 years. FY shown is the fiscal year, not the current year. Always cite the year.');
296
+ if (result.filings.length === 0) {
297
+ lines.push('');
298
+ lines.push('*No Form 990 with extracted financial data on record for this organization.*');
299
+ }
312
300
  for (const f of result.filings) {
313
301
  lines.push('');
314
302
  lines.push(`## FY ${f.tax_prd_yr} — ${f.form_type} (period: ${f.tax_prd})`);
315
- if (f.pdf_url) {
316
- lines.push(`**Source 990 PDF:** ${f.pdf_url}`);
317
- }
318
- else {
319
- lines.push('**Source 990 PDF:** Not yet available for this period');
320
- }
321
- if (f.updated)
322
- lines.push(`**Last updated:** ${f.updated}`);
303
+ lines.push(`**Source 990 PDF:** ${f.pdf_url ?? 'Not yet available for this period'}`);
304
+ lines.push(`**Last updated:** ${f.updated ?? 'Not provided'}`);
323
305
  lines.push('');
324
306
  lines.push('### Financials');
325
- if (f.total_revenue != null)
326
- lines.push(`**Revenue:** ${USD(f.total_revenue)}`);
327
- if (f.total_expenses != null)
328
- lines.push(`**Expenses:** ${USD(f.total_expenses)}`);
329
- if (f.total_assets != null)
330
- lines.push(`**Assets (EoY):** ${USD(f.total_assets)}`);
331
- if (f.total_liabilities != null)
332
- lines.push(`**Liabilities (EoY):** ${USD(f.total_liabilities)}`);
333
- if (f.net_assets != null)
334
- lines.push(`**Net Assets (EoY):** ${USD(f.net_assets)}`);
335
- if (f.contributions_and_grants != null ||
336
- f.program_service_revenue != null ||
337
- f.investment_income != null) {
338
- lines.push('');
339
- lines.push('### Revenue Breakdown');
340
- if (f.contributions_and_grants != null)
341
- lines.push(`**Contributions & Grants:** ${USD(f.contributions_and_grants)}`);
342
- if (f.program_service_revenue != null)
343
- lines.push(`**Program Service Revenue:** ${USD(f.program_service_revenue)}`);
344
- if (f.investment_income != null)
345
- lines.push(`**Investment Income:** ${USD(f.investment_income)}`);
307
+ lines.push(`**Revenue:** ${money(f.total_revenue)}`);
308
+ lines.push(`**Expenses:** ${money(f.total_expenses)}`);
309
+ lines.push(`**Assets (EoY):** ${money(f.total_assets)}`);
310
+ lines.push(`**Liabilities (EoY):** ${money(f.total_liabilities)}`);
311
+ lines.push(`**Net Assets (EoY):** ${money(f.net_assets)}`);
312
+ /**
313
+ * The revenue-breakdown fields are 990/990-EZ line items that do not exist on a
314
+ * 990-PF at all. "Not applicable for 990-PF" and "not extracted" are different
315
+ * facts about the same null, so the form type picks the label.
316
+ */
317
+ const breakdownAbsent = f.form_type === '990-PF' ? notApplicableFor(f.form_type) : NOT_EXTRACTED;
318
+ lines.push('');
319
+ lines.push('### Revenue Breakdown');
320
+ lines.push(`**Contributions & Grants:** ${money(f.contributions_and_grants, breakdownAbsent)}`);
321
+ lines.push(`**Program Service Revenue:** ${money(f.program_service_revenue, breakdownAbsent)}`);
322
+ lines.push(`**Investment Income:** ${money(f.investment_income, breakdownAbsent)}`);
323
+ const r = f.program_expense_ratio;
324
+ lines.push('');
325
+ lines.push('### Program Expense Ratio');
326
+ if (r == null) {
327
+ lines.push(`${NOT_DERIVABLE} — ProPublica returns no Form 990 Part IX program-service expense total. Read Part IX of the filing PDF for the program, management, and fundraising split.`);
346
328
  }
347
- if (f.program_expense_ratio != null) {
348
- const r = f.program_expense_ratio;
349
- lines.push('');
350
- lines.push('### Program Expense Ratio');
351
- if (r.ratio != null)
352
- lines.push(`**Ratio:** ${PCT(r.ratio)}`);
353
- if (r.program_expenses != null)
354
- lines.push(`**Program Expenses:** ${USD(r.program_expenses)}`);
355
- if (r.total_expenses != null)
356
- lines.push(`**Total Expenses (denominator):** ${USD(r.total_expenses)}`);
357
- if (r.management_compensation != null)
358
- lines.push(`**Officer/Director Comp:** ${USD(r.management_compensation)}`);
359
- if (r.other_salaries != null)
360
- lines.push(`**Other Salaries & Wages:** ${USD(r.other_salaries)}`);
361
- if (r.fundraising_expenses != null)
362
- lines.push(`**Professional Fundraising:** ${USD(r.fundraising_expenses)}`);
329
+ else {
330
+ lines.push(`**Ratio:** ${r.ratio != null ? PCT(r.ratio) : NOT_DERIVABLE}`);
331
+ lines.push(`**Program Expenses:** ${money(r.program_expenses, NOT_REPORTED)}`);
332
+ lines.push(`**Total Expenses (denominator):** ${money(r.total_expenses, NOT_REPORTED)}`);
333
+ lines.push(`**Officer/Director Comp:** ${money(r.management_compensation, NOT_REPORTED)}`);
334
+ lines.push(`**Other Salaries & Wages:** ${money(r.other_salaries, NOT_REPORTED)}`);
335
+ lines.push(`**Professional Fundraising:** ${money(r.fundraising_expenses, NOT_REPORTED)}`);
363
336
  lines.push(`*${r.note}*`);
364
337
  }
365
- if (f.executive_compensation != null) {
366
- const ec = f.executive_compensation;
367
- lines.push('');
338
+ const ec = f.executive_compensation;
339
+ lines.push('');
340
+ if (ec == null) {
341
+ lines.push('### Executive Compensation');
342
+ lines.push(`**Total:** ${notApplicableFor(f.form_type)} — no compensation field exists on this form type.`);
343
+ }
344
+ else {
368
345
  lines.push(`### Executive Compensation (${ec.form_type})`);
369
- if (ec.amount != null) {
370
- lines.push(`**Total (${ec.field_name}):** ${USD(ec.amount)}`);
371
- }
372
- else {
373
- lines.push(`**Total (${ec.field_name}):** Not reported`);
374
- }
346
+ lines.push(`**Total (${ec.field_name}):** ${money(ec.amount, NOT_REPORTED)}`);
375
347
  lines.push(`*${ec.note}*`);
376
348
  }
377
349
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nonprofit-get-filings.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-filings.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,6DAA6D,CAAC;AAGrE,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,GAAG,CAAC,C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AI,MAAM,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;YAC9D,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC;gBACxC,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,mBAAmB,CAAC;gBACxE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,CAAC;QAEtC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"nonprofit-get-filings.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-filings.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,6DAA6D,CAAC;AAGrE,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAA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,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;YAC9D,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC;gBACxC,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,mBAAmB,CAAC;gBACxE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,EAAE,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,CAAC;QAEtC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -21,6 +21,10 @@ export declare const nonprofitGetOrganization: import("@cyanheads/mcp-ts-core").
21
21
  asset_amount: z.ZodNullable<z.ZodNumber>;
22
22
  income_amount: z.ZodNullable<z.ZodNumber>;
23
23
  revenue_amount: z.ZodNullable<z.ZodNumber>;
24
+ deductible: z.ZodNullable<z.ZodString>;
25
+ exempt_status: z.ZodNullable<z.ZodString>;
26
+ foundation_type: z.ZodNullable<z.ZodString>;
27
+ bmf_tax_period: z.ZodNullable<z.ZodString>;
24
28
  latest_filing: z.ZodNullable<z.ZodObject<{
25
29
  tax_prd_yr: z.ZodNumber;
26
30
  form_type: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"nonprofit-get-organization.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-organization.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAgBjE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2PnC,CAAC"}
1
+ {"version":3,"file":"nonprofit-get-organization.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nonprofit-get-organization.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA+EjE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+RnC,CAAC"}