Vitro is an MCP server published by io.github.kadirzarex, hosted at vitro-agent.fly.dev. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 30 tools, including list_markets, get_market, list_series, get_series_settlement, get_position.
Read Vitro markets on Robinhood Chain and prepare unsigned transactions. Unaudited, capped launch.
1 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
All Vitro markets with status, expiry, caps, totals and price (from the Proof API).
| Parameter | Type | Description |
|---|---|---|
| status | string | one of ["open","awaiting-settlement","late-settlement","closing-out","redeemable"] |
{
"name": "list_markets",
"title": "List markets",
"description": "All Vitro markets with status, expiry, caps, totals and price (from the Proof API).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"enum": [
"open",
"awaiting-settlement",
"late-settlement",
"closing-out",
"redeemable"
],
"type": "string"
}
}
},
"annotations": {
"title": "List markets",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}One market in detail (Proof API) plus a live price and phase check from the chain.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "get_market",
"title": "Get market",
"description": "One market in detail (Proof API) plus a live price and phase check from the chain.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"market"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Get market",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Current and past series with settlement round, price and who settled.
| Parameter | Type | Description |
|---|---|---|
| asset | string | Ticker, e.g. NVDA |
| state | string | one of ["current","past"] |
{
"name": "list_series",
"title": "List series",
"description": "Current and past series with settlement round, price and who settled.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asset": {
"type": "string",
"description": "Ticker, e.g. NVDA"
},
"state": {
"enum": [
"current",
"past"
],
"type": "string"
}
}
},
"annotations": {
"title": "List series",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}How a series settled (round id, price, path, caller), or which settlement window applies now and when the next opens.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "get_series_settlement",
"title": "Series settlement",
"description": "How a series settled (round id, price, path, caller), or which settlement window applies now and when the next opens.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"market"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Series settlement",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}A wallet's position: indexed history from Proof plus live collateral, debt, residual, claimable and synth balance from the chain. Omit market for all markets.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| market | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "get_position",
"title": "Get position",
"description": "A wallet's position: indexed history from Proof plus live collateral, debt, residual, claimable and synth balance from the chain. Omit market for all markets.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Get position",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Indexed events (mints, repays, withdrawals, liquidations, settlements, redemptions, ...), filterable and paginated.
| Parameter | Type | Description |
|---|---|---|
| type | string | Comma-separated: mint, deposit, repay, withdrawal, fee, liquidation, settlement, closeout, redemption, residual, transfer, admin |
| limit | integer | |
| order | string | one of ["asc","desc"] |
| cursor | string | |
| market | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account | string | |
| toBlock | integer | |
| fromBlock | integer |
{
"name": "get_events",
"title": "Get events",
"description": "Indexed events (mints, repays, withdrawals, liquidations, settlements, redemptions, ...), filterable and paginated.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"type": {
"type": "string",
"description": "Comma-separated: mint, deposit, repay, withdrawal, fee, liquidation, settlement, closeout, redemption, residual, transfer, admin"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"order": {
"enum": [
"asc",
"desc"
],
"type": "string"
},
"cursor": {
"type": "string"
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string"
},
"toBlock": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"fromBlock": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"annotations": {
"title": "Get events",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}TVL, fees to the treasury, liquidations and per-market use of caps.
No parameters.
{
"name": "get_stats",
"title": "Get stats",
"description": "TVL, fees to the treasury, liquidations and per-market use of caps.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Get stats",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Proof indexer progress and lag versus the chain head.
No parameters.
{
"name": "get_health",
"title": "Get health",
"description": "Proof indexer progress and lag versus the chain head.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Get health",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Fee, collateral ratio, liquidation price and headroom for depositing collateral and minting, with the contracts' exact math at the current oracle price. Warns when the price is stale or the market is closed. Read-only.
| Parameter | Type | Description |
|---|---|---|
| owner | string | Optional: include this wallet's existing position |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| collateral * | string | Collateral to add, in USDG as a decimal string, e.g. "11" or "25.5" |
| mintTokens | string | Synth to mint, in synth tokens as a decimal string, e.g. "0.0189" |
| mintValueUsdg | string | Exposure to mint, converted to tokens at the current price, in USDG as a decimal string, e.g. "11" or "25.5" |
{
"name": "quote_position",
"title": "Quote a position",
"description": "Fee, collateral ratio, liquidation price and headroom for depositing collateral and minting, with the contracts' exact math at the current oracle price. Warns when the price is stale or the market is closed. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"market",
"collateral"
],
"properties": {
"owner": {
"type": "string",
"description": "Optional: include this wallet's existing position"
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"collateral": {
"type": "string",
"description": "Collateral to add, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"mintTokens": {
"type": "string",
"description": "Synth to mint, in synth tokens as a decimal string, e.g. \"0.0189\""
},
"mintValueUsdg": {
"type": "string",
"description": "Exposure to mint, converted to tokens at the current price, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
}
}
},
"annotations": {
"title": "Quote a position",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Plain-language risk for a position: distance to liquidation, weekend gaps, expiry, settlement rules, USDG pause and freeze risk. Pass owner for a real position, or collateral and debtTokens for a hypothetical one.
| Parameter | Type | Description |
|---|---|---|
| owner | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| collateral | string | Hypothetical collateral, in USDG as a decimal string, e.g. "11" or "25.5" |
| debtTokens | string | Hypothetical debt, in synth tokens as a decimal string, e.g. "0.0189" |
{
"name": "explain_risk",
"title": "Explain risk",
"description": "Plain-language risk for a position: distance to liquidation, weekend gaps, expiry, settlement rules, USDG pause and freeze risk. Pass owner for a real position, or collateral and debtTokens for a hypothetical one.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"market"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"collateral": {
"type": "string",
"description": "Hypothetical collateral, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"debtTokens": {
"type": "string",
"description": "Hypothetical debt, in synth tokens as a decimal string, e.g. \"0.0189\""
}
}
},
"annotations": {
"title": "Explain risk",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Open or add to a position: USDG approval (if needed) and create(collateral, tokens). Enforces the 11 USDG minimum for a new position, both caps and a fresh price. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| collateral * | string | Collateral to deposit, in USDG as a decimal string, e.g. "11" or "25.5" |
| mintTokens * | string | Synth to mint ("0" for collateral only), in synth tokens as a decimal string, e.g. "0.0189" |
{
"name": "prepare_create_position",
"title": "Prepare create position",
"description": "Open or add to a position: USDG approval (if needed) and create(collateral, tokens). Enforces the 11 USDG minimum for a new position, both caps and a fresh price. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner",
"market",
"collateral",
"mintTokens"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"collateral": {
"type": "string",
"description": "Collateral to deposit, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"mintTokens": {
"type": "string",
"description": "Synth to mint (\"0\" for collateral only), in synth tokens as a decimal string, e.g. \"0.0189\""
}
}
},
"annotations": {
"title": "Prepare create position",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Add collateral to an existing position: approval (if needed) and deposit(amount). Checks both caps. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| amount * | string | Collateral to add, in USDG as a decimal string, e.g. "11" or "25.5" |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "prepare_deposit",
"title": "Prepare deposit",
"description": "Add collateral to an existing position: approval (if needed) and deposit(amount). Checks both caps. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner",
"market",
"amount"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"amount": {
"type": "string",
"description": "Collateral to add, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Prepare deposit",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Burn synth from the wallet to reduce debt: repay(tokens). "all" repays the whole debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| tokens * | string | Synth to repay as a decimal string, or "all" |
{
"name": "prepare_repay",
"title": "Prepare repay",
"description": "Burn synth from the wallet to reduce debt: repay(tokens). \"all\" repays the whole debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner",
"market",
"tokens"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"tokens": {
"type": "string",
"description": "Synth to repay as a decimal string, or \"all\""
}
}
},
"annotations": {
"title": "Prepare repay",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Withdraw collateral: withdraw(amount). "max" withdraws the most the minimum ratio and 10 USDG floor allow. Needs a fresh price when the position has debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| amount * | string | USDG to withdraw as a decimal string, or "max" |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "prepare_withdraw",
"title": "Prepare withdraw",
"description": "Withdraw collateral: withdraw(amount). \"max\" withdraws the most the minimum ratio and 10 USDG floor allow. Needs a fresh price when the position has debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner",
"market",
"amount"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"amount": {
"type": "string",
"description": "USDG to withdraw as a decimal string, or \"max\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Prepare withdraw",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}After settlement: withdrawResidual (closes the sponsor position and pays the residual), redeem the wallet's synth if redemption is open, or claim a top-up. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "prepare_close_and_redeem",
"title": "Prepare close and redeem",
"description": "After settlement: withdrawResidual (closes the sponsor position and pays the residual), redeem the wallet's synth if redemption is open, or claim a top-up. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner",
"market"
],
"properties": {
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Prepare close and redeem",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}After expiry: finds the first Chainlink round at or after expiry, encodes the proof as abi.encode(uint80 roundId) and picks the path that applies now: settle(proof) if that round landed within expiry + maxSettleLag; otherwise guardianSettle(proof) for the guardian Safe, or settleBackstop(proof) for anyone from expiry + maxSettleLag + 7 days. Refused before expiry, once settled, and until the round has printed. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| from | string | Optional: the address that will send it, used as the simulated sender. Ignored for guardianSettle, which is simulated from the guardian Safe. |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
{
"name": "prepare_settle",
"title": "Prepare settle",
"description": "After expiry: finds the first Chainlink round at or after expiry, encodes the proof as abi.encode(uint80 roundId) and picks the path that applies now: settle(proof) if that round landed within expiry + maxSettleLag; otherwise guardianSettle(proof) for the guardian Safe, or settleBackstop(proof) for anyone from expiry + maxSettleLag + 7 days. Refused before expiry, once settled, and until the round has printed. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"market"
],
"properties": {
"from": {
"type": "string",
"description": "Optional: the address that will send it, used as the simulated sender. Ignored for guardianSettle, which is simulated from the guardian Safe."
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
},
"annotations": {
"title": "Prepare settle",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Create a mandate account: a smart account that is itself a sponsor, so limits can bind a session key. Existing positions can't be moved into it. The owner can never change: there is no owner recovery. Unaudited. Refused while mandates aren't enabled on this server. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| salt | string | Optional: a whole number or 32 bytes of hex, to create more than one account |
| owner * | string | The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed. |
{
"name": "prepare_mandate_create",
"title": "Prepare mandate account",
"description": "Create a mandate account: a smart account that is itself a sponsor, so limits can bind a session key. Existing positions can't be moved into it. The owner can never change: there is no owner recovery. Unaudited. Refused while mandates aren't enabled on this server. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"owner"
],
"properties": {
"salt": {
"type": "string",
"description": "Optional: a whole number or 32 bytes of hex, to create more than one account"
},
"owner": {
"type": "string",
"description": "The user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed."
}
}
},
"annotations": {
"title": "Prepare mandate account",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Set an account's limits and, optionally, the markets it may use with a cap for each. Refuses a minimum ratio at or below any market's own minimum. Binds session keys, not the owner. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| account * | string | Mandate account address (0x...) |
| marketCaps | array | |
| mintBudget * | string | Total value one session may mint over its life, in USDG as a decimal string, e.g. "11" or "25.5" |
| maxActionSize * | string | Largest single action. Nothing above this runs, approved or not, in USDG as a decimal string, e.g. "11" or "25.5" |
| approvalThreshold * | string | Above this, the owner must approve the exact action, in USDG as a decimal string, e.g. "11" or "25.5" |
| totalCollateralCap * | string | Total collateral across all markets, in USDG as a decimal string, e.g. "11" or "25.5" |
| minCollateralRatioPct * | string | Minimum ratio after a risk-increasing action, as a percentage, e.g. "250" |
Let a session key act for the account, inside its limits, on the listed markets until it expires. Replacing a session restarts its mint budget. The key is never held by this server. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| account * | string | Mandate account address (0x...) |
| actions | array | Optional: narrow the actions. Default all nine |
| markets * | array | Markets the key may use. Each needs a cap from prepare_mandate_set_limits |
| sessionKey * | string | The key to allow (0x...) |
| validForSeconds * | integer | How long the session lasts, from now |
{
"name": "prepare_mandate_grant_session",
"title": "Prepare session grant",
"description": "Let a session key act for the account, inside its limits, on the listed markets until it expires. Replacing a session restarts its mint budget. The key is never held by this server. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"markets",
"validForSeconds"
],
"properties": {
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"actions": {
"type": "array",
"items": {
"enum": [
"create",
"deposit",
"mint",
"repay",
"withdraw",
"withdrawResidual",
"redeem",
"claim",
"settle"
],
"type": "string"
},
"description": "Optional: narrow the actions. Default all nine"
},
"markets": {
"type": "array",
"items": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"description": "Markets the key may use. Each needs a cap from prepare_mandate_set_limits"
},
"sessionKey": {
"type": "string",
"description": "The key to allow (0x...)"
},
"validForSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "How long the session lasts, from now",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare session grant",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Stop one session key, or all of them with all: true. Takes effect in the next transaction. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| all | boolean | Stop every session key |
| account * | string | Mandate account address (0x...) |
| sessionKey | string | The key to stop (0x...) |
{
"name": "prepare_mandate_revoke_session",
"title": "Prepare session revoke",
"description": "Stop one session key, or all of them with all: true. Takes effect in the next transaction. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account"
],
"properties": {
"all": {
"type": "boolean",
"description": "Stop every session key"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"sessionKey": {
"type": "string",
"description": "The key to stop (0x...)"
}
}
},
"annotations": {
"title": "Prepare session revoke",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Send idle tokens from the account to its owner, the only address the contract can send them to. Collateral in a position is not idle. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| token | string | Optional: token address. Default USDG |
| amount * | string | Amount as a decimal string, or "all" |
| account * | string | Mandate account address (0x...) |
{
"name": "prepare_mandate_withdraw",
"title": "Prepare owner withdraw",
"description": "Send idle tokens from the account to its owner, the only address the contract can send them to. Collateral in a position is not idle. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"amount"
],
"properties": {
"token": {
"type": "string",
"description": "Optional: token address. Default USDG"
},
"amount": {
"type": "string",
"description": "Amount as a decimal string, or \"all\""
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
}
}
},
"annotations": {
"title": "Prepare owner withdraw",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Open or add to the account's position: create(collateral, tokens) through the account, which sets its own allowance. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| collateral * | string | Collateral to deposit, in USDG as a decimal string, e.g. "11" or "25.5" |
| mintTokens * | string | Synth to mint ("0" for collateral only), in synth tokens as a decimal string, e.g. "0.0189" |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
Add collateral to the account's position. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| amount * | string | Collateral to add, in USDG as a decimal string, e.g. "11" or "25.5" |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
Burn synth held by the account to reduce its debt. "all" repays the whole debt. Works while the price is stale. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| tokens * | string | Synth to repay as a decimal string, or "all" |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
Move collateral from the position back to the account, never to any other address. "max" stops at the account's minimum ratio. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| amount * | string | USDG to withdraw as a decimal string, or "max" |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
After settlement: withdrawResidual, redeem and claim, paid to the account. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
{
"name": "prepare_mandate_close_and_redeem",
"title": "Prepare mandate close and redeem",
"description": "After settlement: withdrawResidual, redeem and claim, paid to the account. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate close and redeem",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}After expiry: settle(proof) through the account, only while the first round landed inside the lag. Other settlement paths are not agent actions: use prepare_settle from an ordinary wallet. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
| approval | object | Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature |
| sessionKey * | string | The session key that will send it (0x...). Not held by this server |
| approvalTtlSeconds | integer | Optional: how long a new approval stays valid. Default 1 hour |
{
"name": "prepare_mandate_settle",
"title": "Prepare mandate settle",
"description": "After expiry: settle(proof) through the account, only while the first round landed inside the lag. Other settlement paths are not agent actions: use prepare_settle from an ordinary wallet. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate settle",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Burn synth held by the account to reduce its debt. "all" repays the whole debt. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The account's owner, who will send it (0x...). Refused for any other address |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| tokens * | string | Synth to repay as a decimal string, or "all" |
| account * | string | Mandate account address (0x...) |
{
"name": "prepare_mandate_owner_repay",
"title": "Prepare owner repay",
"description": "Burn synth held by the account to reduce its debt. \"all\" repays the whole debt. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"owner",
"market",
"tokens"
],
"properties": {
"owner": {
"type": "string",
"description": "The account's owner, who will send it (0x...). Refused for any other address"
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"tokens": {
"type": "string",
"description": "Synth to repay as a decimal string, or \"all\""
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
}
}
},
"annotations": {
"title": "Prepare owner repay",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Move collateral from the position to the account. "max" is the most the market allows. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The account's owner, who will send it (0x...). Refused for any other address |
| amount * | string | USDG to withdraw as a decimal string, or "max" |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
{
"name": "prepare_mandate_owner_withdraw_collateral",
"title": "Prepare owner collateral withdraw",
"description": "Move collateral from the position to the account. \"max\" is the most the market allows. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"owner",
"market",
"amount"
],
"properties": {
"owner": {
"type": "string",
"description": "The account's owner, who will send it (0x...). Refused for any other address"
},
"amount": {
"type": "string",
"description": "USDG to withdraw as a decimal string, or \"max\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
}
}
},
"annotations": {
"title": "Prepare owner collateral withdraw",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}After settlement: close the account's position and pay the residual to the account. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
| Parameter | Type | Description |
|---|---|---|
| owner * | string | The account's owner, who will send it (0x...). Refused for any other address |
| market * | string | Market address (0x...) or symbol, e.g. NO-NVDA |
| account * | string | Mandate account address (0x...) |
{
"name": "prepare_mandate_owner_withdraw_residual",
"title": "Prepare owner residual withdraw",
"description": "After settlement: close the account's position and pay the residual to the account. For the owner only: works with every session key revoked, ignores session limits, and still follows the market's rules. It prepares exactly this one market call and nothing else. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"owner",
"market"
],
"properties": {
"owner": {
"type": "string",
"description": "The account's owner, who will send it (0x...). Refused for any other address"
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
}
}
},
"annotations": {
"title": "Prepare owner residual withdraw",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Vitro on Robinhood Chain (chain 4663): collateralised expiring synthetics, USDG collateral. Unaudited, capped launch. This server only reads and prepares UNSIGNED transactions; it holds no keys and never signs or sends. Always show the user the summary, costs and warnings of a prepared transaction before they sign it in their own wallet.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "prepare_mandate_set_limits",
"title": "Prepare mandate limits",
"description": "Set an account's limits and, optionally, the markets it may use with a cap for each. Refuses a minimum ratio at or below any market's own minimum. Binds session keys, not the owner. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"totalCollateralCap",
"maxActionSize",
"approvalThreshold",
"minCollateralRatioPct",
"mintBudget"
],
"properties": {
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"marketCaps": {
"type": "array",
"items": {
"type": "object",
"required": [
"market",
"cap"
],
"properties": {
"cap": {
"type": "string",
"description": "Cap for this market, or \"0\" to remove it, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
}
}
}
},
"mintBudget": {
"type": "string",
"description": "Total value one session may mint over its life, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"maxActionSize": {
"type": "string",
"description": "Largest single action. Nothing above this runs, approved or not, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"approvalThreshold": {
"type": "string",
"description": "Above this, the owner must approve the exact action, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"totalCollateralCap": {
"type": "string",
"description": "Total collateral across all markets, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"minCollateralRatioPct": {
"type": "string",
"description": "Minimum ratio after a risk-increasing action, as a percentage, e.g. \"250\""
}
}
},
"annotations": {
"title": "Prepare mandate limits",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "prepare_mandate_create_position",
"title": "Prepare mandate position",
"description": "Open or add to the account's position: create(collateral, tokens) through the account, which sets its own allowance. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market",
"collateral",
"mintTokens"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"collateral": {
"type": "string",
"description": "Collateral to deposit, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"mintTokens": {
"type": "string",
"description": "Synth to mint (\"0\" for collateral only), in synth tokens as a decimal string, e.g. \"0.0189\""
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate position",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "prepare_mandate_deposit",
"title": "Prepare mandate deposit",
"description": "Add collateral to the account's position. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market",
"amount"
],
"properties": {
"amount": {
"type": "string",
"description": "Collateral to add, in USDG as a decimal string, e.g. \"11\" or \"25.5\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate deposit",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "prepare_mandate_repay",
"title": "Prepare mandate repay",
"description": "Burn synth held by the account to reduce its debt. \"all\" repays the whole debt. Works while the price is stale. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market",
"tokens"
],
"properties": {
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"tokens": {
"type": "string",
"description": "Synth to repay as a decimal string, or \"all\""
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate repay",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "prepare_mandate_withdraw_collateral",
"title": "Prepare mandate collateral withdraw",
"description": "Move collateral from the position back to the account, never to any other address. \"max\" stops at the account's minimum ratio. Checks the account's limits, then returns UNSIGNED transaction data for the session key, simulated first. Above the approval threshold it returns EIP-712 typed data for the owner instead, which only works when the owner is an ordinary wallet: it refuses when the owner is a contract, such as a Safe. Never signs or sends.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"account",
"sessionKey",
"market",
"amount"
],
"properties": {
"amount": {
"type": "string",
"description": "USDG to withdraw as a decimal string, or \"max\""
},
"market": {
"type": "string",
"description": "Market address (0x...) or symbol, e.g. NO-NVDA"
},
"account": {
"type": "string",
"description": "Mandate account address (0x...)"
},
"approval": {
"type": "object",
"required": [
"nonce",
"deadline",
"signature"
],
"properties": {
"nonce": {
"type": "string"
},
"deadline": {
"type": "string"
},
"signature": {
"type": "string",
"description": "The owner's EIP-712 signature over typedData"
}
},
"description": "Only above the approval threshold: the nonce and deadline from typedData, plus the owner's signature"
},
"sessionKey": {
"type": "string",
"description": "The session key that will send it (0x...). Not held by this server"
},
"approvalTtlSeconds": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Optional: how long a new approval stays valid. Default 1 hour",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Prepare mandate collateral withdraw",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}