Skip to content

Public documentation

Product version
0.1.1
Docs revision
r0
State
Historical · released
Deployment
unknown
Source
v0.1.1 · 39f882c79b35

Released, not yet live — live runtime v0.1.3

Public Finance

Connect and use Public Finance

v0.1.139f882c

This page takes you from nothing to a trustworthy Public Finance answer, then shows how to tell when an answer should not be trusted.

Connect

Public Finance is reached through the single Mercury MCP endpoint:

text
https://mcp.mercuryintelligence.net/mcp

Add it as a remote MCP server in your client and complete the sign-in in your browser — the same sign-in used across Mercury. Any OAuth-capable MCP client works: ChatGPT, Claude, Claude Code, Codex, Cursor, VS Code, or any other client that supports the standard. There is no API key to create or store. Connecting a client has the steps for each client, and How sign-in works explains the sign-in itself.

The runtime is the authority

The endpoint and tool surface change less often than they change shape. What your client lists from the running server is the executable truth; this page and the reference are the recorded contract. If the two disagree, trust the running server and treat the page as out of date.

Make your first call

Start with the composite reading and its interpretation. It is one call, it returns a small payload, and it tells you immediately whether the rest of your question is worth asking.

text
get_lci_summary()

Then widen only if you need to:

text
get_lci(days=30) # the composite history
get_fed_liquidity_summary() # the monetary pillar
get_data_freshness() # the four families this tool tracks

get_market_snapshot() returns four things in one call — the composite summary, the monetary-pillar summary, the latest fiscal row, and the latest reference rates — for when you want those together rather than one at a time. It is not a bundle of everything the service publishes: it carries no stress, settlement fails, dealer positions, auctions, or freshness.

Read a result

A Public Finance answer tells you three separate things, and they are worth keeping apart:

  1. The value. A number in the series' own units.
  2. The date it describes. Every row carries the record date the value belongs to — which is the date of the underlying official publication, not the time you asked.
  3. The state of the data behind it. Whether the series is current, and what the service knows about its own freshness.

A large number with a stale record date is a stale answer. Read the date before you read the number.

The composite reading also carries a regime label. The labels run, in order, from very loose conditions to very tight ones:

LabelWhat it says
Very LooseAbundant liquidity, supportive of risk assets
LooseAbove-average liquidity conditions
NeutralBalanced liquidity environment
TightBelow-average liquidity, caution warranted
Very TightScarce liquidity, elevated stress conditions

The label is a position in a five-step vocabulary, not a promise. Where the boundaries between the steps sit is part of what is not published — see How Public Finance produces its numbers.

Check freshness before trusting a number

This is the step people skip and then regret. Public Finance reports official series; it cannot be fresher than the sources behind them, and those sources publish on their own calendars, not on yours.

text
get_data_freshness()

This tool tracks four families and nothing else: Fed balance sheet (weekly), fiscal daily statements (daily), NY Fed repo operations (hourly), and Treasury auction results (daily).

Read it as: of those four, which has a current row, and how old is the newest one. Then apply the rule:

  • If the newest record date is the one you expect for today's calendar, the number is current.
  • If it is older, you are looking at the last publication, not at now. That is not a failure — it is the honest state of the data, and reports that mix it with same-day figures are the reports that mislead.
  • A family with no row is not evidence of missing data. Reference rates, settlement fails, dealer positions, cross-border flows, marketable securities, debt, repo-market stress and the composite itself are outside this tool entirely. If you need freshness for one of those, this call cannot answer it — say so rather than reading absence as a gap.

Do not silently backfill a stale value with a fresher one from a different family. The pillars measure different things.

Aim your question at the right tool

Pick by what you are actually asking, not by what the data is called:

Your questionStart here
Where is liquidity overall?get_lci_summary
What is the Fed's balance sheet doing?get_fed_liquidity_summary
What is fiscal activity doing?get_fiscal_daily_latest
What is happening in repo and funding markets?get_repo_operations, get_rrp_operations, get_reference_rates_latest
Is settlement behaving normally?get_settlement_fails
What is Treasury issuing?get_auction_results, get_auctions_upcoming
What do dealers hold?get_primary_dealers
What is cross-border flow doing?get_tic_flows
How much debt is outstanding?get_debt_latest
Which of the four tracked families is current?get_data_freshness

The reference lists the exact parameters, defaults, and limits for each.

Keep an answer small

Ask for the smallest window and the fewest fields that answer your question, then narrow rather than broaden:

  • Prefer the latest and summary tools over a history call. They exist so you do not have to fetch a series to read its current value.
  • When you do want history, request the window you need and no more. Every tool that takes days states its own maximum; the default is a starting point, not a recommendation.
  • Pass fields when you know which columns matter. A narrower payload is cheaper and easier to read, and it makes an accidental column harder to misread.
  • Use the default compact output format for inspection. Switch to plain structured output only when something downstream needs it.

When something looks wrong

What you seeWhat it usually meansWhat to do
A sign-in errorYour session needs to be re-establishedHow sign-in works covers recovery
A number you did not expectYou may be reading a different date than you thinkRe-read the record date
Data that looks frozenThe official source has not published sinceCheck freshness for the four families it covers; do not backfill from another family
A family missing from the responseNo rows for that series in the requested windowWiden the window, then report the absence rather than a substitute
An error object instead of dataThe service could not serve the requestRead the error, retry once, then report the failure
A field you do not recogniseThe surface moved ahead of this pageTrust the running server's schema

What to do next