mcp
v0.2.1MCP server for Parry: risk, vault, guardian log and policy-limited testnet actions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_position_risk Protected account risk
Reads a Parry protected account from the Parry API: its owner, its guardian mandate with today's counters, and every position (Rhea lending, Hyperliquid, Aave) with health, liquidation price, distance to liquidation, probability of liquidation within 24 hours, median time to liquidation, 99% value at risk, and the 0 to 100 risk score and tier. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account * | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |
risk_check Risk check for any NEAR account
Scores the Rhea lending position of any NEAR account (protected by Parry or not) with Parry's risk model: health, liquidation price, 24 hour liquidation probability, time to liquidation and score, plus the market it was scored against. A .near account is read on mainnet and a .testnet one on testnet. Reads the Parry API (free tier, rate limited). Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account * | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |
get_market NEAR market risk
Reads the NEAR price, the Tremor volatility index (hourly and annualized, with its level) and the cascade pressure across monitored positions, from the Parry API. Changes nothing.
get_vault Delta-neutral vault
Reads the delta-neutral NEAR vault from the Parry API: whether it takes deposits now and why not (a pause, a report older than 15 minutes, the cap, the oracle off the hedge mark), its 0 to 100 risk score, share price, NAV, the LiNEAR stake, the Hyperliquid short hedge, yield, the reserves summary, caps and queue length. Changes nothing.
get_reserves Proof of reserves
Reads the vault's proof of reserves from the Parry API (every reserve leaf with its Merkle proof) and verifies it locally: each proof against the published root, the root recomputed from all leaves, and the root against the one stored on the vault contract when the chain is reachable. Changes nothing.
get_guardian_log Guardian decisions
Reads the guardian's decisions from the Parry API, newest first: the observed risk, the action (its public plan), the AI review (model, verdict, signature, hashes) and the outcome and transactions. The owner's sealed trigger, target health and step order, the planner's reasons and the review's reasoning are private to each account's owner and are not in this public log. Optionally for one account. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account | string | Only decisions about this protected account. |
limit | integer | How many decisions (1 to 50, default 10). |
verify_guardian_decision Verify a guardian decision
Verifies one guardian decision independently of the API's own claims, as far as public data goes: checks the model's signature covers this exact request and response and recovers to its signing address (EIP-191), that the action envelope is signed by the enclave key the risk board trusted when it was issued and carries the review hash, that the decision id is the envelope's hash, that the public risk-board record is signed by the enclave and matches the board's copy on chain. The review hash over the reasoning and the facts are the owner's and are skipped on the public record; each skipped che…
| Parameter | Type | Description |
|---|---|---|
id * | string | The decision id (its envelope hash). |
simulate_rescue Simulate a rescue
Asks the Parry API what the guardian would do for a protected account right now (whether it would trigger, why, each step with health before and after, and the swap route comparison). Changes nothing: nothing is signed or sent. Unlimited.
| Parameter | Type | Description |
|---|---|---|
account * | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |
get_rescue_route Rescue swap route comparison
Compares the two ways a rescue could sell NEAR collateral for USDC right now: the Rhea exchange pool the account swaps on, and a NEAR Intents 1Click quote with dry: true (solvers compete on price; with a partner key the route stays confidential). On testnet the Intents side is a mainnet dry-run quote for the same amount, shown for comparison. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
amount_near * | number | NEAR to sell. |
get_status Service and fleet status
Reads the health of every Parry service, the oracle feed's freshness, the indexer's lag, the gas-key lanes each service wallet transacts on in parallel, and the treasury balance, from the Parry API. Changes nothing.
get_rates Lending, funding and vault rates
Reads every asset Rhea lending lists with its supply and borrow APR and utilization, Hyperliquid's NEAR funding (the current hourly rate and the last 24 hours annualized), and the vault's staking against funding yield, each number with the source it was read from. Changes nothing.
get_crash_replay Crash replay
Reads how Parry's risk model, guardian planner and vault would have done through NEAR's largest historical crashes, from real hourly candles: hours of warning before liquidation, the guardian's steps, health with and without Parry, hedged against unhedged vault NAV; and how the vault's short fared through NEAR's largest rallies (margin ratio, distance to liquidation, rebalances, share price); and the out-of-sample calibration of the Tremor regime. Returns the summary and each crash and spike without its series. Changes nothing.
get_liquidation_heatmap Liquidation heatmap
Reads where every Rhea lending borrower (testnet or mainnet) would be liquidated as NEAR falls: collateral and debt bucketed by liquidation price, and the chained cascades in which one bucket's liquidations push the price into the next. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
network | string | Which Rhea lending market (default: this server's network). |
get_prices Token prices
Reads USD prices and 24 hour changes of NEAR, the liquid staking tokens, USDC and every asset Rhea lending lists, each with its source. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
tokens | array | Token ids or symbols to keep (default: all). |
verify_record Verify a decision, certificate or transaction
Asks the Parry API to re-check a guardian decision id, a health certificate hash or a NEAR transaction hash: every signature (the model's, the enclave's with the key in force at the time) and the hashes recorded on chain. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
id * | string | A decision id, a certificate hash or a NEAR transaction hash. |
verify_certificate Verify a health certificate
Verifies a Parry health certificate independently of the API's own claims: its hash, the enclave's signature with the key the risk board trusted when it was issued (read from the chain), the expiry, the reader it names and the risk board's anchor. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
hash * | string | The certificate hash. |
reader | string | Who is reading it: the certificate must name this reader. |
get_closing Where a position close stands
Reads a protected account's close of its Rhea position from the chain: the round in flight (closing(): its stage, what it sells and repays) or none, and the debt and collateral left. kind is closed (no debt left), open (send close_rhea again), in_flight (a round's callbacks are running) or stuck (a round stopped after its swap; anyone may send retry_close). Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account * | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |
get_incidents Alert incidents
Reads an account's alert incidents from the Parry API, newest first: related alerts (one price move touching several positions) grouped, with severity and when each opened and closed. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account * | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |
get_route_savings Rescue route savings
Reads what each rescue's swap route choice saved against the worst quote the guardian had (the Rhea pool against a NEAR Intents 1Click dry-run quote), optionally for one account. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
account | string | A NEAR account id, for example alice.testnet or a protected account 0u... id. |