@pipeworx/ca-debtwatch
Connect: https://gateway.pipeworx.io/ca-debtwatch/mcp · Install: one-click buttons
Tools: 6
California municipal bond issuance — every state and local government bond, note, certificate of participation and Mello-Roos special-tax deal reported to the California Debt and Investment Advisory Commission (CDIAC) since 1984, at issue level: principal, sale date, debt type, purpose, ratings, interest cost, issuance fees and the underwriter, municipal advisor and bond counsel on the deal.
This is primary-market issuance, not the secondary trade tape. It carries no MSRB/EMMA content and no CUSIP dependency — CDIAC publishes it as California public data.
Tools
ca_debt_search_issues(...)— search 76,000+ California issues by issuer, county, debt type, purpose, tax status, ESG label, sale date and principal amount. The workhorse.ca_debt_issue(cdiac_number)— full detail for one issue, including issuance costs broken out by participant (underwriter takedown, advisor fee, bond and disclosure counsel fees, trustee fee, rating agency fee) and any Annual Debt Transparency Report rows filed against it in later years.ca_debt_issuer_profile(issuer)— one issuer’s borrowing history: total principal, issue count, date range, breakdown by debt type and purpose, largest and most recent issues.ca_debt_statewide_totals()— the state treasurer’s headline totals (debt issued YTD, local debt issued YTD, proposed but unsold, recent long-term volume).ca_debt_filter_options(field?)— the exact wording CDIAC uses for each enumerated filter.ca_debt_resolve_issuer(name)— partial name → the exact issuer names CDIAC uses.
Auth
Keyless. No registration, no key, no quota published.
Data sources
- https://debtwatch.treasurer.ca.gov/env.json — the API base the SPA itself reads. Resolved once per isolate rather than hardcoded, with a fallback to the current value.
PUT /api/dataset/issues/search— issuance search. PUT, not GET or POST.GET /api/dataset/issues— column metadata, including the accepted values for every enumerated filter.GET /api/dataset/issues/element/Issuer/search?q=&pageNumber=N— issuer typeahead (7,600+ issuers). Paginates at ten and ignores every page-size parameter (pageSize,take,limitall no-op) while reporting the true count intotalValues; onlypageNumberworks. Reading page one alone makes “san diego” look like 10 issuers when it is 47, and makes an exact name that sorts onto a later page (San Diego Unified Port District) come back as ambiguous with candidates that do not contain it. This pack pages, bounded, and reports when it stopped early.GET /api/report/issuance-detail-with-history/{cdiacNumber}— single-issue detail plus later ADTR filings.GET /api/fast-stat— headline statewide totals.
Things worth knowing before you touch this
- A malformed filter is an empty HTTP 500, not a 400. No body, no validation message. Filters
are keyed by column id with a
typediscriminator, decoded from the SPA bundle:StringOneOf/StringContainsOneOf(options: []),DateBetween/DateOnOrAfter/DateOnOrBefore/DateEqualTo(minimum/maximum/exactly),NumberBetween/NumberGreaterThanOrEqualTo/NumberLessThanOrEqualTo,BooleanEqualTo(exactly). Anything else is a 500. IssuerCountyis the multi-value column and needsStringContainsOneOf; sendingStringOneOfagainst it matches nothing without erroring.- Text filters are exact-match on CDIAC’s spelling, and a near-miss returns a clean zero-row
200 rather than an error —
Los Angelesis a different issuer fromLos Angeles Unified School District. Every enum argument in this pack is resolved against the upstream’s own option list first, and every issuer argument through the typeahead endpoint, so a caller naming things the way a person would still gets rows. An argument that cannot be resolved is answered with candidates rather than dropped. - There is no
valuesendpoint per filter. The option lists live inline inGET /api/dataset/issues, undercolumns[].filter.values.all, for columns whose strategy isAllAtOnce. High-cardinality columns areByAsyncSearchOnlyand only reachable through theelement/{col}/searchtypeahead. SaleDatecarries future dates for proposed issues, so a descending sort surfaces deals that have not happened yet.sold_statusseparates them.- Scope is California only. There is no national equivalent on a free path — MSRB/EMMA’s terms bar building a redistributable database from it.
Tools
- ca_debt_search_issues — Search California municipal bond issuance — every state and local government bond, note,
- ca_debt_issue — Full detail for one California municipal bond issuance by its CDIAC number (the
- ca_debt_issuer_profile — Borrowing history for one California municipal bond issuer — a city, county, school
- ca_debt_statewide_totals — Headline California municipal bond issuance totals published by the state treasurer:
- ca_debt_filter_options — Valid values for the enumerated filters on California municipal bond issuance search —
- ca_debt_resolve_issuer — Look up the exact issuer name CDIAC uses for a California municipal bond issuer from a
Tools
-
ca_debt_filter_options— Valid values for the enumerated filters on California municipal bond issuance search — -
ca_debt_issue— Full detail for one California municipal bond issuance by its CDIAC number (the -
ca_debt_issuer_profile— Borrowing history for one California municipal bond issuer — a city, county, school -
ca_debt_resolve_issuer— Look up the exact issuer name CDIAC uses for a California municipal bond issuer from a -
ca_debt_search_issues— Search California municipal bond issuance — every state and local government bond, note, -
ca_debt_statewide_totals— Headline California municipal bond issuance totals published by the state treasurer: