{"info":{"description":"Every tool the DefiLoops agent can run, generated from the tool server's own catalogue rather than transcribed — a tool added or withdrawn appears here without anyone editing a document.\n\n**These are not HTTP endpoints.** The tool server speaks JSON-RPC (`tools/call`) and listens on loopback inside the deployment; it is not reachable from the internet and binding it to a public address is refused in code. A path below stands for one tool: `POST /tools/get_positions` means `tools/call` with `name: \"get_positions\"` and the request body as `arguments`. Nothing on this page can call anything.\n\nTools are grouped by how they are reached. **Offered to the model** are in the tool list with their full schemas. **Found on demand** are deferred — the model finds them through `find_tool` and calls them by name, which keeps their schemas out of every prompt. **Called by the platform** run server-side, before a turn, and are never offered to a model at all.\n\n**This is the catalogue of one deployment, not of the software.** A deployment that may not spend has its spending tools withheld at the tool server, so they are absent here rather than listed and marked — the list is shorter on such a deployment, and nothing in it says which names are missing. What is present is what this deployment can actually run.\n\nTo reach the agent, use the chat API on this host rather than the tools directly. A path here is a tool name, not an address: for any consumer of this document, there is no host on which `/tools/\u003cname\u003e` answers.","title":"Agent tools","version":"1"},"openapi":"3.1.0","paths":{"/tools/arm_schedule":{"post":{"description":"**Spends money.** This tool broadcasts or submits work that costs funds, and is withheld entirely from a deployment that may not spend.\n\nPut a schedule live NOW, rather than letting a chain arm it when the stage before it succeeds. From this moment it fires unattended and SPENDS REAL FUNDS every time. Prefer letting a chain arm it: that way nothing recurs until the setup it depends on actually worked.","operationId":"arm_schedule","requestBody":{"content":{"application/json":{"schema":{"owner":{"description":"the address that owns it. IN A CONVERSATION, LEAVE THIS OUT — the session supplies it and it cannot be got wrong that way. Typing it is where it goes wrong: copying slips were 30% of every tool refusal measured.","type":"string"},"properties":{"schedule":{"description":"the schedule id","type":"string"}},"required":["schedule"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Put a schedule live NOW, rather than letting a chain arm it when the stage before it succeeds","tags":["Offered to the model"]}},"/tools/backtest_options":{"post":{"description":"What an option structure WOULD HAVE done, rolled through history.\n\nONLY WHEN SOMEBODY ASKS FOR THE HISTORY. price_options answers what protection costs now and whether that is dear or cheap; this answers what the same shape did over years of rolls. They were one tool and everything that read them confused the two — the study's opening price is 2021 by default, at a volatility index of 117.8 against a recent 51.8, and it was quoted as the current price.\n\n`total` reaches -100% for any structure that only buys premium, from every start date. The model spends the whole budget on options each roll, so that is the fate of a premium budget — not the return of a hedged portfolio, and not a forecast.","operationId":"backtest_options","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"size in dollars","type":"number"},"currency":{"description":"the asset being hedged — WETH, WBTC and cbBTC are accepted and priced against ETH and BTC, so pass what the person actually holds. REQUIRED — no default","examples":["WETH","cbBTC"],"type":"string"},"from":{"description":"YYYY-MM-DD. OMIT IT unless somebody asked for a particular window: with no bounds this uses the whole history, which is what you want. A value that is not a date — \"today\", \"now\" — is refused, because the window is filtered by string comparison and one of those excludes every day there is","type":"string"},"skew":{"description":"volatility points added to the index. Omit for the measured default","type":"number"},"strikes":{"description":"override the structure's strikes — ONE PER LEG, in the order list_option_structures shows them, each a MULTIPLE of spot. Omit for the catalogue's. A wrong count is refused, not ignored","examples":[[0.9],[0.9,1.15]],"items":{"type":"number"},"type":"array"},"structure":{"description":"an id from list_option_structures","examples":["put","collar"],"type":"string"},"tenor_days":{"description":"days to expiry per roll; defaults to 365","type":"number"},"to":{"description":"YYYY-MM-DD. Omit it to run to the end of the history","type":"string"}},"required":["structure","currency"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What an option structure WOULD HAVE done, rolled through history","tags":["Found on demand"]}},"/tools/binance_balances":{"post":{"description":"The tool for any Binance balance or holdings question (and the Binance part of 'every open position'). What the person's Binance account holds: the non-zero spot balances (asset, free, locked) and, when the key trades futures, the USDⓈ-M wallet (balance, available, unrealised PnL). Name the connection by the credential_id binance_connections shows; it must be a verified one. It reads only: the venue enclave reads Binance with the key it holds, and nothing is connected, moved, placed or signed. Whose connection it is comes from the conversation. It does not return open USDⓈ-M positions (no read for those yet): say so, never 'none'. Its `wallets` says each wallet's free USDT (a spot buy spends Spot; a perp's margin comes from USD-M Futures) and that USDT moves between them only by hand on binance.com: say it in those words. When the person asks whether a trade fits, pass need_usdt and for, and quote its `shortfall`; never work one out yourself. It reads the person's own account and no market: never call it for a market question (a funding rate, open interest, a price, a comparison across venues), which get_funding_and_oi, strategy_feed_now and binance_price answer, and never name a balance in that answer.","operationId":"binance_balances","requestBody":{"content":{"application/json":{"schema":{"properties":{"connection":{"description":"the connection's credential_id, as binance_connections shows it","type":"string"},"for":{"description":"with need_usdt: the wallet the trade spends, spot (a spot buy) or usdm (a USD-M perpetual's margin)","enum":["spot","usdm"],"type":"string"},"need_usdt":{"description":"only when the person asked whether they have enough for a trade: the USDT it spends (a spot buy's amount, or a perp's margin)","type":"number"}},"required":["connection"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The tool for any Binance balance or holdings question (and the Binance part of 'every open position')","tags":["Offered to the model"]}},"/tools/binance_cancel_order":{"post":{"description":"Cancel ONE open order on the person's Binance connection: an EXIT, which needs no grant and works whether a grant is armed, expired or revoked. It spends nothing and it is not an undo: what the order already filled stays filled. Name the order by the client_order_id it was placed under, and say whether it is a conditional order (stop, take-profit, trailing). Call it only when the person has asked, and quote them in `said`. Whose connection it is comes from the conversation.","operationId":"binance_cancel_order","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_order_id":{"description":"the id the order was placed under","type":"string"},"conditional":{"description":"true for a USDⓈ-M stop, take-profit or trailing order, which Binance holds apart","type":"boolean"},"connection":{"description":"the connection's credential_id, as binance_connections shows it","type":"string"},"product":{"enum":["spot","usdm","options"],"type":"string"},"said":{"description":"WHAT THE PERSON SAID, quoted from this conversation, asking for this exit. Required, and it must be their sentence and not your summary of one: an exit cannot be taken back. If you cannot quote it, they have not asked: ASK first.","type":"string"},"symbol":{"description":"the market, as binance_markets lists it","type":"string"}},"required":["connection","product","symbol","client_order_id","said"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Cancel ONE open order on the person's Binance connection: an EXIT, which needs no grant and works whether a grant is armed, expired or revoked","tags":["Offered to the model"]}},"/tools/binance_close_position":{"post":{"description":"Reduce a USDⓈ-M futures position with a REDUCE-ONLY order: an EXIT, which needs no grant and can only shrink a position, never open or flip one. Name the side that closes (SELL to reduce a long, BUY to reduce a short) and the quantity to reduce; with no price it is a MARKET order, with a price a LIMIT. Spot has no reduce-only and an option close is not an exit, so only usdm. It cannot read the position: say what the person said to close. Call it only when the person has asked, and quote them in `said`. Whose connection it is comes from the conversation.","operationId":"binance_close_position","requestBody":{"content":{"application/json":{"schema":{"properties":{"connection":{"description":"the connection's credential_id, as binance_connections shows it","type":"string"},"price":{"description":"a limit price; leave it out for a market close","type":"string"},"quantity":{"description":"the quantity to reduce, in the coin, as a decimal string","type":"string"},"said":{"description":"WHAT THE PERSON SAID, quoted from this conversation, asking for this exit. Required, and it must be their sentence and not your summary of one: an exit cannot be taken back. If you cannot quote it, they have not asked: ASK first.","type":"string"},"side":{"description":"the side that closes: SELL reduces a long, BUY reduces a short","enum":["BUY","SELL"],"type":"string"},"symbol":{"description":"the USDⓈ-M market, such as BTCUSDT","type":"string"}},"required":["connection","symbol","side","quantity","said"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Reduce a USDⓈ-M futures position with a REDUCE-ONLY order: an EXIT, which needs no grant and can only shrink a position, never open or flip one","tags":["Offered to the model"]}},"/tools/binance_connections":{"post":{"description":"The person's Binance connections: each one's id, account, products, status, the API key id they pasted, what the key was read to allow (trade flags, withdrawals, IP lock, Portfolio Margin) and why it is refused if it is. Whose they are comes from the conversation. It reads only: it does not connect, check, delete or trade, and it never shows a key. Connecting and deleting are done on the console's Binance page. It reads no balance and no position, and is never evidence of either: for any Binance balance, holdings or positions question call binance_balances. It reads the person's own account and no market: never call it for a market question (a funding rate, open interest, a price, a comparison across venues), which get_funding_and_oi, strategy_feed_now and binance_price answer, and never name a balance in that answer.","operationId":"binance_connections","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The person's Binance connections: each one's id, account, products, status, the API key id they pasted, what the key was read to allow (trade flags, w…","tags":["Offered to the model"]}},"/tools/binance_draft_grant":{"post":{"description":"Turn a card on Binance into the grant its owner would sign: the UNSIGNED grant draft (markets, sides, order types, leverage, trigger), the `missing` list (every bound the card leaves unset, which the owner must fill: nothing is defaulted), the template of one fire, and the console link that opens the arming screen with the draft. Name the card by strategy_id and version (a saved card), or pass its text. It NEVER signs, stores or arms anything: the owner signs with their wallet on the console. A card that closes a position is an exit and needs no grant (binance_close_position). Whose card it is comes from the conversation.","operationId":"binance_draft_grant","requestBody":{"content":{"application/json":{"schema":{"properties":{"card":{"description":"the card's text, instead of strategy_id and version","type":"string"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"},"strategy_id":{"description":"the lineage strategy_save_draft returned (with version)","type":"string"},"version":{"description":"the version of that lineage","type":"number"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Turn a card on Binance into the grant its owner would sign: the UNSIGNED grant draft (markets, sides, order types, leverage, trigger), the `missing` l…","tags":["Offered to the model"]}},"/tools/binance_markets":{"post":{"description":"The Binance markets a lock can name (spot, USDⓈ-M futures, options, with each one's lock bit) and the rules of each product. Read this before saying a market is or is not available: it is the fixed table the venue enclave enforces. Nothing is read from Binance and nothing is placed. Binance's funding and open interest are not read by any binance_ tool: get_funding_and_oi gives each venue's latest whole day of funding, Binance's included, and strategy_feed_now reads perps.\u003casset\u003e.funding_binance (Binance's last closed day). Quote that figure with its period and age; never say there is no Binance funding data. A market question (a funding rate, open interest, a price, a comparison across venues) calls no account tool (binance_connections, binance_balances) and names no balance.","operationId":"binance_markets","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The Binance markets a lock can name (spot, USDⓈ-M futures, options, with each one's lock bit) and the rules of each product","tags":["Offered to the model"]}},"/tools/binance_price":{"post":{"description":"A Binance market's public reference price right now: the spot book mid, the USDⓈ-M mark price, or an option's mark price, from Binance's unsigned public data. Only a market in binance_markets is answered (an option by its contract, such as BTC-261225-85000-C, whose underlying is in the table). It reads one price and acts on nothing. Binance's funding and open interest are not read by any binance_ tool: get_funding_and_oi gives each venue's latest whole day of funding, Binance's included, and strategy_feed_now reads perps.\u003casset\u003e.funding_binance (Binance's last closed day). Quote that figure with its period and age; never say there is no Binance funding data. A market question (a funding rate, open interest, a price, a comparison across venues) calls no account tool (binance_connections, binance_balances) and names no balance.","operationId":"binance_price","requestBody":{"content":{"application/json":{"schema":{"properties":{"product":{"enum":["spot","usdm","options"],"type":"string"},"symbol":{"description":"BTCUSDT for spot or USDⓈ-M; the contract (BTC-261225-85000-C) for an option","type":"string"}},"required":["product","symbol"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"A Binance market's public reference price right now: the spot book mid, the USDⓈ-M mark price, or an option's mark price, from Binance's unsigned pu…","tags":["Offered to the model"]}},"/tools/cancel_order":{"post":{"description":"Stop a resting order for good. What it already filled stays filled — this stops it firing again, it does not undo anything. Refused while a run is in flight, because cancelling the row cannot recall a transaction.","operationId":"cancel_order","requestBody":{"content":{"application/json":{"schema":{"properties":{"order":{"description":"the order id","type":"string"}},"required":["order"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Stop a resting order for good","tags":["Offered to the model"]}},"/tools/check_allowance":{"post":{"description":"What the OPERATING ADDRESS may draw from the owner, and whether that covers an amount.\n\nA `deposit.pull` step needs TWO things and they fail differently: the tokens have to be held by the owner, and the account has to have PERMISSION to draw them. get_balances answers the first. This answers the second.\n\nPass `amount` — in the asset's own base units, so 500 USDC is \"500000000\" — to ask whether the allowance covers a draw of that size. Without it this only reports what is currently approved, and nothing is offered to fix.\n\nWHEN IT IS SHORT the console puts an Approve button in front of the person for exactly the gap. Tell them what it is for; you cannot press it. An approval moves no money — the tokens stay in their wallet and the account gains permission to draw them — and it is the owner's signature, not this server's.\n\nvalidate_workflow already checks this for the pulls in a plan. Use this one when there is no plan yet, or when somebody asks about an allowance directly.","operationId":"check_allowance","requestBody":{"content":{"application/json":{"schema":{"properties":{"account":{"description":"the OPERATING address, when that is the only one you have. Normally omit both this and `owner` — the session supplies the owner and this address is derived from it.","type":"string"},"amount":{"description":"optional: the draw to check against, in BASE UNITS (500 USDC = \"500000000\")","type":"string"},"asset":{"description":"one asset, when there is only one — `assets: [\"USDC\"]` is the same thing.","type":"string"},"assets":{"description":"e.g. [\"USDC\"]","items":{"type":"string"},"type":"array"},"chain":{"description":"base (default), ethereum, arbitrum","type":"string"}},"required":["assets"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What the OPERATING ADDRESS may draw from the owner, and whether that covers an amount","tags":["Found on demand"]}},"/tools/check_supported":{"post":{"description":"FIRST, before anything else: check that the assets, chains and operations the person actually named are supported. Someone asks for FRAX or for something on Solana and the answer is no — better known now than after a plan is built on it. It also answers the COMBINATION, which no list can: an asset, a chain and an operation can each be supported while the three together are impossible.","operationId":"check_supported","requestBody":{"content":{"application/json":{"schema":{"properties":{"assets":{"description":"every asset named, e.g. [\"FRAX\",\"USDC\"]","items":{"type":"string"},"type":"array"},"chains":{"items":{"type":"string"},"type":"array"},"markets":{"description":"the lending pairs you actually mean, e.g. [{\"operation\":\"collateralize\",\"asset\":\"XAUt\"},{\"operation\":\"borrow\",\"asset\":\"USDC\"}]. Give this whenever the request involves collateral or a loan: without it every asset is checked against every operation and combinations you did not ask about are reported, which is how a plan that works gets refused. A Hyperliquid perp is a market too: {\"operation\":\"hl_order\",\"asset\":\"ETH\"} (or BTC; never WETH or cbBTC, and never a lending operation). Every row is answered; a row that is not judged says so.","items":{"properties":{"asset":{"type":"string"},"operation":{"enum":["approve","borrow","bridge","buy_property","cancel_order","claim","claim_own_rent","claim_position","close_aave_long","close_aave_short","close_aave_single","close_loan","collateralize","delegate_rent","deleverage","enable_collateral","flash_close","flash_collect_levered","flash_decrease","flash_increase","flash_increase_from_aave","flash_increase_lev","flash_mint_levered","flash_move_from_aave","flash_move_to_aave","flash_rebalance","flash_reposition","flash_split","harvest_delegated","hl_cancel","hl_deposit","hl_exit","hl_order","hl_withdraw","leverage","lighter_claim","lighter_deposit","presign_order","pull_from_owner","receive","redeem_rent","repay","revert_borrow","revert_create_borrow","revert_mint_create_borrow","revert_remove","revert_repay","revert_repay_withdraw","sell_property","send","shift_loan","swap","uni_close_at_tick","uni_collect","uni_decrease","uni_increase","uni_mint","uni_mint_single","uni_rebalance","uni_reposition","uni_split","uni_withdraw","unwrap","withdraw","wrap"],"type":"string"}},"type":"object"},"type":"array"},"operations":{"description":"use these exact names — this system's word for supplying to a lending market is \"collateralize\", not \"supply\": approve, borrow, bridge, buy_property, cancel_order, claim, claim_own_rent, claim_position, close_aave_long, close_aave_short, close_aave_single, close_loan, collateralize, delegate_rent, deleverage, enable_collateral, flash_close, flash_collect_levered, flash_decrease, flash_increase, flash_increase_from_aave, flash_increase_lev, flash_mint_levered, flash_move_from_aave, flash_move_to_aave, flash_rebalance, flash_reposition, flash_split, harvest_delegated, hl_cancel, hl_deposit, hl_exit, hl_order, hl_withdraw, leverage, lighter_claim, lighter_deposit, presign_order, pull_from_owner, receive, redeem_rent, repay, revert_borrow, revert_create_borrow, revert_mint_create_borrow, revert_remove, revert_repay, revert_repay_withdraw, sell_property, send, shift_loan, swap, uni_close_at_tick, uni_collect, uni_decrease, uni_increase, uni_mint, uni_mint_single, uni_rebalance, uni_reposition, uni_split, uni_withdraw, unwrap, withdraw, wrap","items":{"enum":["approve","borrow","bridge","buy_property","cancel_order","claim","claim_own_rent","claim_position","close_aave_long","close_aave_short","close_aave_single","close_loan","collateralize","delegate_rent","deleverage","enable_collateral","flash_close","flash_collect_levered","flash_decrease","flash_increase","flash_increase_from_aave","flash_increase_lev","flash_mint_levered","flash_move_from_aave","flash_move_to_aave","flash_rebalance","flash_reposition","flash_split","harvest_delegated","hl_cancel","hl_deposit","hl_exit","hl_order","hl_withdraw","leverage","lighter_claim","lighter_deposit","presign_order","pull_from_owner","receive","redeem_rent","repay","revert_borrow","revert_create_borrow","revert_mint_create_borrow","revert_remove","revert_repay","revert_repay_withdraw","sell_property","send","shift_loan","swap","uni_close_at_tick","uni_collect","uni_decrease","uni_increase","uni_mint","uni_mint_single","uni_rebalance","uni_reposition","uni_split","uni_withdraw","unwrap","withdraw","wrap"],"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FIRST, before anything else: check that the assets, chains and operations the person actually named are supported","tags":["Offered to the model"]}},"/tools/compare_options":{"post":{"description":"EVERY option structure priced at once, for choosing between them.\n\nFor \"what are my options for hedging this\" and \"which protection is cheapest\" — the first call when somebody wants to know what is available.\n\nAsk this BEFORE price_options. Pricing nine structures one call at a time costs nine model turns and about a tenth of a second of actual work — this returns the same comparison in one, and names the detail worth following up.\n\nCOVER/ROLL is the number to compare when choosing protection: what the structure's first leg costs as a share of the position. Negative is premium paid out, positive is premium taken in.\n\nTOTAL is not that. It is the return on money spent ENTIRELY on options and rolled, so it reaches -100% for anything that only buys premium — a property of the model, not a forecast about the asset.\n\nStrikes are fixed per structure and are shown; they are not an argument.","operationId":"compare_options","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"position size in dollars","type":"number"},"currency":{"description":"the asset being hedged — WETH, WBTC and cbBTC are accepted and priced against ETH and BTC, so pass what the person actually holds. REQUIRED — no default, because a table for the wrong coin reads as an answer","examples":["WETH","cbBTC"],"type":"string"},"from":{"description":"YYYY-MM-DD","type":"string"},"skew":{"description":"volatility points added to the at-the-money index. Omit to use the measured default","type":"number"},"structures":{"description":"ids to price; omit for all of them","items":{"type":"string"},"type":"array"},"tenor_days":{"description":"days to expiry per roll; defaults to 365","type":"number"},"to":{"description":"YYYY-MM-DD","type":"string"}},"required":["currency"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"EVERY option structure priced at once, for choosing between them","tags":["Found on demand"]}},"/tools/context_brief":{"post":{"description":"Internal. The backend's brief for one question: the terms it uses and the shape people who asked it before built. Assembled server-side before a turn; not for a model to call.","operationId":"context_brief","requestBody":{"content":{"application/json":{"schema":{"properties":{"arms":{"description":"comma-separated: glossary, shapes. Empty means all of them","type":"string"},"question":{"description":"what the person asked, in their own words","type":"string"}},"required":["question"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Internal","tags":["Called by the platform"]}},"/tools/decide_firing":{"post":{"description":"**Spends money.** This tool broadcasts or submits work that costs funds, and is withheld entirely from a deployment that may not spend.\n\nAnswer a scheduled run that could NOT START because the owner already had a task in flight. One task runs per owner at a time. run_now takes the slot as soon as it frees — not 'try again now', because the slot is busy. skip drops this firing only. Unanswered, it is dropped after a week.","operationId":"decide_firing","requestBody":{"content":{"application/json":{"schema":{"properties":{"action":{"description":"\"run_now\" or \"skip\"","type":"string"},"note":{"description":"why, for the record","type":"string"},"schedule":{"description":"the schedule id","type":"string"},"scheduledAt":{"description":"the firing's time, exactly as get_schedule prints it","type":"string"}},"required":["schedule","scheduledAt","action"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Answer a scheduled run that could NOT START because the owner already had a task in flight","tags":["Offered to the model"]}},"/tools/find_skill":{"post":{"description":"ASK YOUR QUESTION HERE FIRST. Returns the ANSWER — the handful of sections that address it, from across every guide, each cited by file and line. Not a list of names to go and read: the text you need comes back in this one call. Ask in the words a person used — \"only fill if the price is right\", \"unwind a loan without selling first\" — and it searches the prose AND the exact identifiers. Prefer this to read_skill, which returns whole documents and costs several times as much for the same answer. Call with no query to see the whole shape of what exists.","operationId":"find_skill","requestBody":{"content":{"application/json":{"schema":{"properties":{"query":{"description":"the question, in ordinary words — what you are trying to do, or what you need to know","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"ASK YOUR QUESTION HERE FIRST","tags":["Offered to the model"]}},"/tools/find_tool":{"post":{"description":"Find a tool, or RUN one. Pass `query` to search by what you are trying to do; pass `run` with a name to call it.\n\nThe tools below are real and their full schemas are withheld to keep every turn cheap. Name one in `run` and it works exactly as if it had been offered directly; an argument marked * is required, and a wrong call comes back with that tool's whole schema so one mistake costs one turn.\n\nLIQUIDITY RANGES\n· get_lp_deposit(budget*=1000, fee*=500|3000, token_a*=WETH|cbBTC, token_b*=USDC, buffer, chain, have_token0, max_slippage_bps, range, token1_share, width) — HOW MUCH OF EACH TOKEN A UNISWAP RANGE NEEDS, and what to swap to get there\n· get_lp_yield(tokens*, capital, chains, entry_price, exit_price, exit_prices, fee_tiers, from, priced_in, ranges, to) — BEFORE providing liquidity: what a range would have COLLECTED, from each pool's real daily history, on every chain and fee tier at once\n· get_tick_range(fee*=500|3000, range*=2000-4000|2500, token_a*=WETH|cbBTC, token_b*=USDC, chain) — Turn a PRICE RANGE into the tick_lower and tick_upper a Uniswap V3 mint takes\n· list_lp_strategies(strategy) — The ways a liquidity position can be placed and managed, and what each one's inputs are\n· run_lp_backtest(pool*=ethereum|USDC/WETH|500, capital, from, lower, params, strategy, to, upper) — Run ONE strategy over ONE pool's real history and report what it did\n\nLIVE MARKET STATE\n· get_forecast(asset) — What the market EXPECTS, in one call: the prediction market's odds that an asset ends a month above each strike, what is priced into each Fed meeting,…\n· get_hyperliquid(coin) — What a perpetual is paying on Hyperliquid in the LATEST SAMPLE: funding annualised, open interest, mark against oracle\n· get_liquidations(coin, limit, since) — Forced closes as they happened, with the address each happened to — which no centralised venue publishes\n· get_macro(series) — The macro series themselves: the Fed balance sheet, the Treasury account, reverse repo, and stablecoin supply beside them\n· get_market_regime(asset) — Whether the slow signal is asking to be long or flat, and why\n\nOPEN POSITIONS\n· check_allowance(assets*, account, amount, asset, chain) — What the OPERATING ADDRESS may draw from the owner, and whether that covers an amount\n· get_lending_positions(account, chain, chains, venue) — WHAT THIS OWNER ALREADY OWES AND HAS SUPPLIED AT THE LENDING VENUES, read from each one rather than from any record this system keeps\n· get_orders() — What is resting, what filled, and in how many bites\n· get_uni_positions(account, chain, chains) — THE UNISWAP POSITIONS THIS OWNER ALREADY HOLDS — token id, pair, fee tier, price band and uncollected fees, read from the position manager on each c…\n\nOPTIONS AND HEDGING\n· backtest_options(currency*=WETH|cbBTC, structure*=put|collar, capital, from, skew, strikes, tenor_days, to) — What an option structure WOULD HAVE done, rolled through history\n· compare_options(currency*=WETH|cbBTC, capital, from, skew, structures, tenor_days, to) — EVERY option structure priced at once, for choosing between them\n· list_option_structures() — The option shapes that can be priced — every way to hedge, insure or be paid for taking risk: protective put, collar, straddle, covered call, cash-s…\n· price_options(currency*=WETH|cbBTC, structure*=put|collar, capital, from, skew, skew_decay, strikes, tenor_days, term_vol, to) — What an option costs RIGHT NOW, and whether that is dear or cheap\n· price_options_live(currency*=WETH|cbBTC, capital, moneyness, structure, tenor_days) — What an option costs RIGHT NOW, from Deribit's live book\n\nRATES AND COSTS\n· get_bridge_cost(from*=base|arbitrum, to*=ethereum|arbitrum, asset, must_arrive, sending) — What to SEND so that a wanted amount lands after a crossing, or what a given amount will deliver\n· get_funding_and_oi(currency*=WETH|cbBTC, from, group_by, to) — Perpetual-swap funding and open interest HISTORY, daily from 2021: its headline funding is an AVERAGE over the window, never the current rate\n· get_lending_rates(asset, assets, chain, chains, venue) — WHAT EVERY MARKET CHARGES RIGHT NOW: supply APY, borrow APY, how much of it is already borrowed, and the loan-to-value at which it liquidates\n· get_swap_cost(amount_in*=1000000, asset_in*=USDC, asset_out*=WETH, chain, cost_bps, max_impact_bps, max_slippage_bps) — What a specific trade will actually cost, all in — and what a BOUND would do to it before you write one into a plan\n\nREFERENCE\n· get_run_status(task*, revision, run) — Report how a submitted workflow is going, step by step\n· list_networks_and_assets() — The chains, the assets each supports, and their decimals\n","operationId":"find_tool","requestBody":{"content":{"application/json":{"schema":{"properties":{"arguments":{"description":"the arguments for `run`; omit for a tool that takes none","type":"object"},"limit":{"description":"how many to return; 3 by default, 8 at most","type":"number"},"query":{"description":"what you are trying to do, in the person's own words. Returns the tools that answer it, with their arguments","type":"string"},"run":{"description":"a tool name to RUN instead of searching. Pass its arguments in `arguments`","examples":["get_forecast"],"type":"string"}},"required":["query"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Find a tool, or RUN one","tags":["Offered to the model"]}},"/tools/forget_run":{"post":{"description":"GIVE UP a run that stopped part-way, so this owner can start something else. It spends nothing and it is not an undo.\n\nDO NOT CALL THIS ON YOUR OWN INITIATIVE. It is the one destructive verb you hold: it throws away a record of somebody's money that cannot be put back, and no refusal you are reading is permission to use it. Call it ONLY when the person has said, in their own words and in this conversation, to give that run up — abandon it, drop it, forget it, get rid of it. `said` carries those words and the call is refused without them. If they have not said it, ASK; a refusal you cannot get past is a thing to report, not a thing to clear.\n\nNEVER AFTER stop_run, in the same breath. Stopping and giving up are two different decisions and the person has made only the first: a run that has just been stopped is one they may still want to carry on. Calling this because stop_run appeared to change nothing is the exact mistake it exists to prevent — stop is SUPPOSED to leave the slot held.\n\nTHIS IS NOT STOP. stop_run ends a run and deliberately leaves it holding the owner's slot — that is what makes stop-then-run-again a pause. A run that stopped part-way holding settled steps BLOCKS every other start for that owner, on purpose, so a second position is never opened against a wallet the first is still holding. This removes the run record, which is the thing doing the blocking.\n\nUse it when a stranded run is refusing a start and that run is genuinely finished with. If it should be carried on instead, say run it again and run_workflow continues it — do not forget it first.\n\nNOTHING ON CHAIN IS UNDONE, and the settled steps stay settled: they are keyed on the task and revision, not on the record this removes, so running the task again still continues from them rather than replaying them.","operationId":"forget_run","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"description":"why, in the person's own words, for whoever reads the record","type":"string"},"said":{"description":"WHAT THE PERSON SAID, quoted from this conversation, asking for this run to be given up. Required, and it must be their sentence and not your summary of one: this is the only evidence that the decision was theirs. If you cannot quote it, they have not made it","type":"string"},"task":{"description":"the TaskID whose run record should be removed. Required: an owner may have several, and forgetting the wrong one cannot be undone","type":"string"}},"required":["task","said"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"GIVE UP a run that stopped part-way, so this owner can start something else","tags":["Offered to the model"]}},"/tools/get_account_state":{"post":{"description":"Show the owner and the operating address — the account the agent operates and every plan spends from — and what each currently holds. Call this before deciding any amount.","operationId":"get_account_state","requestBody":{"content":{"application/json":{"schema":{"properties":{"account":{"description":"the OPERATING address, when that is the only one you have. Normally omit both this and `owner` — the session supplies the owner and this address is derived from it.","type":"string"},"property":{"description":"one curated property key or symbol, to read just that one. Either spelling resolves. Omit for all of them.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Show the owner and the operating address — the account the agent operates and every plan spends from — and what each currently holds","tags":["Offered to the model"]}},"/tools/get_balances":{"post":{"description":"Read several asset balances for several holders AT ONCE, in one request. Called bare it reads BOTH addresses — the operating address and the owner's wallet — across USDC, cbBTC, WETH and native ETH (the chain's own currency, printed as \"ETH (native, not WETH)\" and never added to WETH), which is almost always the whole question: money can sit at either and a plan spends from the operating one. Asking for one holder and then the other costs two turns and answers nothing extra. Pass \"chain\" to read somewhere other than base. Holders are roles: owner_account (the OPERATING ADDRESS, which is what every plan spends from), owner_wallet (the OWNER), or a plain 0x address. Pass the owner — the operating address is derived from it.","operationId":"get_balances","requestBody":{"content":{"application/json":{"schema":{"properties":{"account":{"description":"the OPERATING address, when that is the only one you have. Normally omit both this and `owner` — the session supplies the owner and this address is derived from it.","type":"string"},"assets":{"description":"e.g. [\"USDC\",\"cbBTC\"]. Here \"ETH\" is the native currency and \"WETH\" the token: ask for both to see both","items":{"type":"string"},"type":"array"},"chain":{"description":"base (default), ethereum, arbitrum. ONE chain, as a bare string — to read several, call this several times. A list was passed here and refused: \"[\\\"ethereum\\\", \\\"base\\\"]\" is not a chain.","type":"string"},"holders":{"description":"OMIT IT to read both, which is what you want: [\"owner_account\",\"owner_wallet\"] is the default and costs the same one request. Narrow it only to exclude one on purpose.","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read several asset balances for several holders AT ONCE, in one request","tags":["Offered to the model"]}},"/tools/get_bridge_cost":{"post":{"description":"What to SEND so that a wanted amount lands after a crossing, or what a given amount will deliver. Call it whenever a plan bridges.\n\nDO NOT WORK THIS OUT IN PROSE. A crossing keeps a fee, so sending exactly what the far side spends lands short and the run stops AFTER the money has already crossed — and the near miss is the common one: a gross-up rounded to the nearest cent is short by a fraction, which reads as correct and is not. Every \"short 0.1 USDC\" refusal is this arithmetic done by hand.\n\nGive must_arrive to size a crossing, which is the usual direction: it returns the exact integer for the bridge step's Amount. Give sending to check an amount already written. Raw units both ways.","operationId":"get_bridge_cost","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset":{"description":"USDC by default, and today the only asset any bridge here carries","type":"string"},"from":{"description":"the chain the money leaves","examples":["base","arbitrum"],"type":"string"},"must_arrive":{"description":"raw units that have to LAND, if you are sizing the crossing. USDC has 6 decimals, so \"250000000\" is 250 dollars","type":"string"},"sending":{"description":"raw units being SENT, if you are checking an amount already written","type":"string"},"to":{"description":"the chain it lands on","examples":["ethereum","arbitrum"],"type":"string"}},"required":["from","to"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What to SEND so that a wanted amount lands after a crossing, or what a given amount will deliver","tags":["Found on demand"]}},"/tools/get_chain":{"post":{"description":"Read a CHAIN: an ordered arrangement of workflows, which runs once and which recurs, plus where a running one has got to. A strategy is rarely one plan — a setup that runs once and a loop that runs monthly are edited and approved on different rhythms. Call this before changing one.","operationId":"get_chain","requestBody":{"content":{"application/json":{"schema":{"properties":{"chain":{"description":"the id the CHAIN OF WORKFLOWS was saved under — not an EVM chain","type":"string"}},"required":["chain"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read a CHAIN: an ordered arrangement of workflows, which runs once and which recurs, plus where a running one has got to","tags":["Offered to the model"]}},"/tools/get_fill_at_price":{"post":{"description":"AT THIS PRICE, HOW MUCH FILLS RIGHT NOW. The question a limit order is made of, and the one the ladder cannot answer: get_tradeable_size tells you what a COST buys, this tells you what a PRICE buys.\n\nCall it before place_order whenever somebody names a price. An order for $1m at a rate that clears $40k is not wrong, but the person should know it before it rests for a week — and if nothing fills, that is a real answer rather than an error: the price asked for is better than the market.\n\nMeasured across every pool, which is what a plan here executes. The price is a PAIR of raw amounts, never a decimal.","operationId":"get_fill_at_price","requestBody":{"content":{"application/json":{"schema":{"properties":{"amount_in":{"description":"the whole size you want filled, in raw units of asset_in","examples":["1000000"],"type":"string"},"asset_in":{"description":"what is being spent, e.g. USDC","examples":["USDC"],"type":"string"},"asset_out":{"description":"what is being bought, e.g. WETH","type":"string"},"chain":{"description":"base (default), ethereum, arbitrum","type":"string"},"rate_amount":{"description":"the price, top half: this much asset_in…","type":"string"},"rate_buys":{"description":"…must buy at least this much asset_out. The same pair place_order takes.","type":"string"}},"required":["asset_in","asset_out","amount_in","rate_amount","rate_buys"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"AT THIS PRICE, HOW MUCH FILLS RIGHT NOW","tags":["Offered to the model"]}},"/tools/get_forecast":{"post":{"description":"What the market EXPECTS, in one call: the prediction market's odds that an asset ends a month above each strike, what is priced into each Fed meeting, the rate curve those meetings would move (policy rate, 2y, 10y, 10y-2y, breakeven inflation, VIX), and where the OPTION market has already committed — open interest by expiry with the busiest strike in each.\n\nTHE LADDER IS WHAT A VENUE QUOTES; THE OPEN INTEREST IS WHERE MONEY SITS. Two kinds of evidence about the same level, and the pair is worth more than either.\n\nTHE ONLY FORWARD-LOOKING NUMBERS HERE. Every other market tool answers what HAS happened — funding since 2021, what a put has cost, what a pool earned. This is what people are betting now.\n\nIT IS A PRICE, NOT A PREDICTION OF OURS, and it carries the venue's fee and a thin book's noise: a rung with little volume is one opinion. Use it to say what protection against a level is worth, never as a reason to reopen a decision somebody has made.","operationId":"get_forecast","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset":{"description":"btc or eth; WBTC, cbBTC and WETH are accepted. Omit for both","examples":["btc","eth"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What the market EXPECTS, in one call: the prediction market's odds that an asset ends a month above each strike, what is priced into each Fed meeting,…","tags":["Found on demand"]}},"/tools/get_funding_and_oi":{"post":{"description":"Perpetual-swap funding and open interest HISTORY, daily from 2021: its headline funding is an AVERAGE over the window, never the current rate\n\nThe answer names the window on every average (the whole series since 2021 when no from/to is given), then each venue's latest whole day on its own line. Quote an average with its window. A question about the PRESENT rate across venues is strategy_feed_now's, on the feed runtime's funding view, and is never answered with an average from here or a figure computed from this answer.\n\nFunding is what one side of a perpetual pays the other. A POSITIVE rate is longs paying shorts, so sustained positive funding is the running cost of holding the long side — and the figure to set against any yield a delta-neutral position claims to earn.\n\nRead from FOUR venues separately — Binance, Bybit, Hyperliquid and Aster — and never silently averaged: where venues disagree, the disagreement is the reading.\n\nOpen interest and the long/short ratios come from BINANCE'S daily archive alone — no other venue publishes an equivalent here, so they are one venue's book rather than the market's. When a symbol is absent the answer SAYS SO rather than showing zero — a missing series is a gap in the source, not a reading of no open interest, and nothing about positioning should be inferred from it.","operationId":"get_funding_and_oi","requestBody":{"content":{"application/json":{"schema":{"properties":{"currency":{"description":"the asset — WETH, WBTC and cbBTC are accepted and read against ETH and BTC, so pass what the person actually holds. ALL aggregates every market, and is only accepted with group_by. REQUIRED otherwise — no default, because a rate for the wrong coin reads as an answer","examples":["WETH","cbBTC","ALL"],"type":"string"},"from":{"description":"YYYY-MM-DD","type":"string"},"group_by":{"description":"roll open interest and the long/short ratios up by period instead of answering for today. Use it for \"is open interest building\", \"were traders more long last month\", or any question about a TREND — reading two thousand daily rows to find one is not worth the turn. Pass currency ALL for every market at once, with each asset's own table under the combined one","enum":["day","week","month"],"type":"string"},"to":{"description":"YYYY-MM-DD","type":"string"}},"required":["currency"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Perpetual-swap funding and open interest HISTORY, daily from 2021: its headline funding is an AVERAGE over the window, never the current rate","tags":["Found on demand"]}},"/tools/get_hyperliquid":{"post":{"description":"What a perpetual is paying on Hyperliquid in the LATEST SAMPLE: funding annualised, open interest, mark against oracle. The watcher samples every few minutes; the answer leads with the sample's age, and says STALE when it is older than 10 minutes (hlStaleAfter). Say the age, and when it says STALE, say the figure is old and not the rate now.\n\nTHE LATEST SAMPLE, NOT HISTORY. get_funding_and_oi walks recorded days and answers whether a carry has been worth having; this answers what it paid at the last sample, which is what somebody asks before opening one. The venue keeps no history of its own, so these cannot be one call.\n\nA POSITIVE rate is paid by longs to shorts, so a short perp against spot collects it.","operationId":"get_hyperliquid","requestBody":{"content":{"application/json":{"schema":{"properties":{"coin":{"description":"the asset — WETH, WBTC and cbBTC are accepted. Omit for every coin","examples":["BTC","WETH"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What a perpetual is paying on Hyperliquid in the LATEST SAMPLE: funding annualised, open interest, mark against oracle","tags":["Found on demand"]}},"/tools/get_lending_positions":{"post":{"description":"WHAT THIS OWNER ALREADY OWES AND HAS SUPPLIED AT THE LENDING VENUES, read from each one rather than from any record this system keeps. Covers Aave v3, Aave v4 and Morpho, on every chain, for BOTH the operating address and the owner's own wallet — they are separate borrowers and a debt on either is a real debt.\n\nCall this before any borrow, any repay, any loan shift, and before saying anything about what somebody holds. A position is the only thing that says whether a borrow can succeed: get_lending_rates says what it would cost, which is a different question.","operationId":"get_lending_positions","requestBody":{"content":{"application/json":{"schema":{"properties":{"account":{"description":"the OPERATING address, when that is the only one you have","type":"string"},"chain":{"description":"ethereum, base or arbitrum. OMIT FOR ALL THREE, which is almost always what you want — a position on a chain you did not name is invisible, not absent","type":"string"},"chains":{"description":"several chains at once, e.g. [\"base\", \"ethereum\"]. Omitting both this and `chain` reads all of them, which is almost always what you want","items":{"type":"string"},"type":"array"},"venue":{"description":"aave_v3 | aave_v4 | morpho; omit for all of them","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"WHAT THIS OWNER ALREADY OWES AND HAS SUPPLIED AT THE LENDING VENUES, read from each one rather than from any record this system keeps","tags":["Found on demand"]}},"/tools/get_lending_rates":{"post":{"description":"WHAT EVERY MARKET CHARGES RIGHT NOW: supply APY, borrow APY, how much of it is already borrowed, and the loan-to-value at which it liquidates. Aave v3's reserves are enumerated FROM THE POOL, so it covers every asset Aave lists and not only the ones this system has a name for; Aave v4's from its hub; Morpho's are the curated markets.\n\nCall it before choosing a venue to borrow from, before quoting anybody a rate, and before assuming two venues cost the same — they routinely differ by more than a point on the same asset on the same chain.\n\nA Morpho row also says how much is `free` to borrow right now. Morpho markets run near 90% utilisation, so it is small and it moves, and a borrow larger than it is refused at validation: read it before choosing the market.\n\nASK ONCE, FOR EVERYTHING THE PLAN TOUCHES. `chains` and `assets` are lists: a plan lending XAUt on ethereum and cbBTC on base is ONE call, {\"chains\":[\"ethereum\",\"base\"],\"assets\":[\"XAUt\",\"cbBTC\"]}. Narrowing to one pair at a time is a round trip per pair and was measured costing three calls for one plan. Omitting both is also fine and returns every market on every chain.","operationId":"get_lending_rates","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset":{"description":"one symbol. Prefer `assets`","type":"string"},"assets":{"description":"the symbols the plan lends or borrows, e.g. [\"XAUt\",\"cbBTC\"]. Matches either side of a market, so cbBTC finds the market it collateralises as well as the one it borrows. Omit for every market","items":{"type":"string"},"type":"array"},"chain":{"description":"one chain. Prefer `chains`","type":"string"},"chains":{"description":"ethereum, base, arbitrum — as many as the plan touches. Omit for all three","items":{"type":"string"},"type":"array"},"venue":{"description":"aave_v3 | aave_v4 | morpho | revert_vault; omit for all of them","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"WHAT EVERY MARKET CHARGES RIGHT NOW: supply APY, borrow APY, how much of it is already borrowed, and the loan-to-value at which it liquidates","tags":["Found on demand"]}},"/tools/get_liquidations":{"post":{"description":"Forced closes as they happened, with the address each happened to — which no centralised venue publishes.\n\nWHAT IT IS FOR: liquidation, not price, is what stops a leveraged hedge hedging. A cluster of them at a level is the risk a perp carries that an option does not.\n\nRecorded forward only: the venue's endpoint caps at 2000 rows, so a date before the watcher started is empty rather than wrong.","operationId":"get_liquidations","requestBody":{"content":{"application/json":{"schema":{"properties":{"coin":{"description":"one asset, or omit for all","examples":["BTC","WETH"],"type":"string"},"limit":{"description":"rows to show, up to 200; defaults to 20","type":"number"},"since":{"description":"YYYY-MM-DD","examples":["2026-09-01"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Forced closes as they happened, with the address each happened to — which no centralised venue publishes","tags":["Found on demand"]}},"/tools/get_lp_deposit":{"post":{"description":"HOW MUCH OF EACH TOKEN A UNISWAP RANGE NEEDS, and what to swap to get there. Call it after get_tick_range and BEFORE writing the swap that funds a mint.\n\nTHE SPLIT IS NOT 50/50 AND IT IS NOT A CHOICE. For a band at a price the two amounts are fixed by geometry, so `use this range` and `put in 70/30` are the same decision made two ways: send `range` and this reports the split it implies, or send `token1_share` with a `width` and it reports the range that produces it. Sending both is refused.\n\nA symmetric band is NOT an even split — the two legs are a square root apart. Measured: $1,000 into WETH/USDC 0.05% on base, over a band the price sat inside, needed 45.3% WETH. A plan that swapped half left $47 unplaced. Nothing reverts; the position is simply smaller than the money paid for.\n\nIt reads the pool's live price, because a split against a stale one is wrong by however far the market has moved.\n\nIT QUOTES THE FLOORS TOO. A uni.mint or uni.increase states min0/min1, the least of each token the position manager may take; they are the only bound on the price the deposit runs at and the keeper refuses the step without them. The answer ends with the step's amounts and floors in raw units, ready to write.","operationId":"get_lp_deposit","requestBody":{"content":{"application/json":{"schema":{"properties":{"budget":{"description":"the TOTAL to deposit, quoted in token_b","examples":["1000"],"type":"string"},"buffer":{"description":"how much extra to swap, as \"1%\" (the default). For the gap between the swap and the mint: the swap moves the pool, and a mint asking for exactly what arrived reverts on a shortfall of one wei","type":"string"},"chain":{"description":"base (default), ethereum, arbitrum","type":"string"},"fee":{"description":"the pool's fee TIER in its own units: 100, 500, 3000 or 10000","examples":["500","3000"],"type":"string"},"have_token0":{"description":"how much of the pool's token0 the account already holds, in whole units. Given, the answer sizes the swap that covers the shortfall","type":"string"},"max_slippage_bps":{"description":"how far under this deposit the step's min0/min1 floors sit, in basis points: 100 by default, 200 at most -- the keeper's price guard refuses anything looser","examples":["100","50"],"type":"string"},"range":{"description":"the band, as \"2400-2600\". Give this OR token1_share, never both","type":"string"},"token1_share":{"description":"the share of VALUE to hold in the pool's token1, as \"0.7\" or \"70%\", and this solves for the band that produces it. Give this OR range","type":"string"},"token_a":{"description":"one side of the pair, by SYMBOL","examples":["WETH","cbBTC"],"type":"string"},"token_b":{"description":"the other side, by SYMBOL","examples":["USDC"],"type":"string"},"width":{"description":"with token1_share: the band's half-width, as \"5%\". How CONCENTRATED the position is, which is a separate decision from which way it leans. Defaults to 5%","type":"string"}},"required":["token_a","token_b","fee","budget"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"HOW MUCH OF EACH TOKEN A UNISWAP RANGE NEEDS, and what to swap to get there","tags":["Found on demand"]}},"/tools/get_lp_yield":{"post":{"description":"BEFORE providing liquidity: what a range would have COLLECTED, from each pool's real daily history, on every chain and fee tier at once. Answers the three questions a spot APY cannot — which network, which fee tier, and which range.\n\nAn advertised APY is the last 24 hours across a pool's whole book. This walks history a day at a time: the pool's fees that day, times your liquidity over the pool's, and ZERO on days the price left your band. A band that looked excellent was in range 19% of one window and idle for the rest, which no APY anywhere says.\n\nPASS EVERY RANGE YOU ARE WEIGHING IN ONE CALL. `ranges` is a list and each costs nothing extra, against a round trip per range otherwise. Omit it to get the widest band that held the price, which is the ceiling a narrower one is measured against.\n\nA range is \"so many QUOTE per one BASE\". With one stablecoin that is dollars per coin and needs no thought; on WBTC/WETH or USDC/USDT set `priced_in`, because 25-40 and 0.025-0.04 are the same band from opposite ends. The direction used is always reported.\n\nIT ALSO ANSWERS WHAT YOU END UP WITH. Every answer carries a CASH IN HAND block: what the deposit is worth at the end, the impermanent loss, and the total against simply holding. Report that, not the fee figure alone — fees are half a ledger and people read them as the outcome. Still not modelled: compounding, rebalancing and gas.\n\nFor \"what if the price keeps going\" pass `exit_prices`; for \"what if I enter at X and leave at Y\" pass `entry_price` and `exit_price`. A band traversed end to end sells every coin at the GEOMETRIC MEAN of its bounds, not at the price the asset finished at, and then stops earning — which is why a fast run to the top of a band is a bad outcome and not a good one.\n\nFees are NET of Uniswap's protocol fee, which the UNIfication vote switched on during 2026 — a quarter of the swap fee on the 0.01% and 0.05% tiers, a sixth on 0.3%. The subgraph's own feesUSD is gross, so these figures are deliberately lower than a reader's own arithmetic against it.\n\nREPORTING THE ANSWER, because this has been got wrong: the window DEFAULTS TO TWO YEARS, so name the window you actually got — the answer states its own length in days and years on the first line. The table gives two different rates: `total` is the return over the WHOLE window and `per year` is that annualised. Quoting `total` as an annual rate doubles it on a two-year window, which is exactly what happened to a 48.9% two-year figure reported as 48.9% a year. `per year` is an APR and NOT an APY: v3 keeps a position's fees in a separate balance, so nothing compounds unless the owner collects and re-adds it by hand.","operationId":"get_lp_yield","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"position size in US DOLLARS, whatever the pair is priced in — both legs are valued in dollars via the quote token's own USD price. Defaults to 10000. It changes the ANSWER and not just its scale — fees split by liquidity, so a position large relative to its pool earns a share it could not earn twice, and the tool flags that","type":"number"},"chains":{"description":"ethereum, base, arbitrum. Omit for all three","items":{"type":"string"},"type":"array"},"entry_price":{"description":"a HYPOTHETICAL entry, for \"what if I get in at X and out at Y\". Must be given with exit_price. The position half is then exact arithmetic; fees are reported as a rate per year against a holding period, because an entry and an exit do not determine them","type":"number"},"exit_price":{"description":"the other end of that traverse. Goes with entry_price","type":"number"},"exit_prices":{"description":"other prices to value the SAME position at, e.g. [45000, 120000, 150000]. Shows the shape of the bet: the position value is exact at each, and stops moving entirely past the band's ends. Use it whenever someone asks what happens if the price keeps going","items":{"type":"number"},"type":"array"},"fee_tiers":{"description":"in hundredths of a bip: 500 is 0.05%. Omit for every tier","items":{"type":"number"},"type":"array"},"from":{"description":"window start, YYYY-MM-DD. Defaults to two years back","type":"string"},"priced_in":{"description":"the symbol a range is written IN — \"so many of this per one of the other\". Needed only when neither token is a stablecoin (WBTC/WETH) or both are (USDC/USDT), where 25-40 and 0.025-0.04 are the same band from opposite ends. Defaults to the stablecoin, else the pool's own quote token; the choice is always reported","type":"string"},"ranges":{"description":"bands as \"low-high\" in dollars per coin, e.g. [\"58000-120000\", \"84000-120000\"]. Omit for the widest band that held the price","items":{"type":"string"},"type":"array"},"to":{"description":"window end, YYYY-MM-DD","type":"string"},"tokens":{"description":"exactly two symbols, one a stablecoin: [\"cbBTC\", \"USDC\"]","items":{"type":"string"},"type":"array"}},"required":["tokens"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"BEFORE providing liquidity: what a range would have COLLECTED, from each pool's real daily history, on every chain and fee tier at once","tags":["Found on demand"]}},"/tools/get_macro":{"post":{"description":"The macro series themselves: the Fed balance sheet, the Treasury account, reverse repo, and stablecoin supply beside them.\n\nTHE INPUT, NOT THE VERDICT. get_market_regime does the net-liquidity arithmetic and answers long or flat; this is what it was computed from, for somebody who wants to see the balance sheet rather than the position.","operationId":"get_macro","requestBody":{"content":{"application/json":{"schema":{"properties":{"series":{"description":"one series in full; omit for the newest reading of each","examples":["WALCL","RRPONTSYD"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The macro series themselves: the Fed balance sheet, the Treasury account, reverse repo, and stablecoin supply beside them","tags":["Found on demand"]}},"/tools/get_market_regime":{"post":{"description":"Whether the slow signal is asking to be long or flat, and why.\n\nTWO INDEPENDENT READINGS, and the position is their union: on-chain valuation (MVRV against its own history) and net liquidity (Fed assets, less the Treasury account, less reverse repo).\n\nIT IS MEASURED IN MONTHS. It is not a reason to change a plan somebody has already decided on and says nothing about the next week — quote it when asked how the market looks, never as advice on a pending decision.","operationId":"get_market_regime","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset":{"description":"btc or eth; WBTC, cbBTC and WETH are accepted","examples":["btc","eth"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Whether the slow signal is asking to be long or flat, and why","tags":["Found on demand"]}},"/tools/get_orders":{"post":{"description":"What is resting, what filled, and in how many bites. A partially filled order is working, not failing — it took what the price would give and is waiting for the rest.","operationId":"get_orders","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What is resting, what filled, and in how many bites","tags":["Found on demand"]}},"/tools/get_prices":{"post":{"description":"USD prices, from whichever source can answer for the asset. A tradeable asset (USDC, cbBTC, WETH) is quoted through the POOLS a swap would route through — the price you would actually get. A property token has no market and is quoted from 0xequity's oracle, which is the price its OCLR router transacts at. This prices ONE UNIT; for a size that matters use get_swap_cost, which prices that size.\n\nPASS EVERY ASSET YOU CARE ABOUT IN ONE CALL. `assets` is a list and the cost of adding to it is one quote each, against a round trip per call otherwise — a plan touching four assets asked four times and spent four turns learning what one would have told it.\n\nEach asset is priced on EVERY chain that carries it, one row per chain, because the same token is not the same price in two places: WETH quoted $2429 on ethereum and $2492 on base within a second of each other. An asset absent from some chains is still priced on the ones that have it, and the others are named under it — so XAUt answers with its ethereum price rather than with the fact that Base does not carry it.","operationId":"get_prices","requestBody":{"content":{"application/json":{"schema":{"properties":{"assets":{"items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"USD prices, from whichever source can answer for the asset","tags":["Offered to the model"]}},"/tools/get_run_status":{"post":{"description":"Report how a submitted workflow is going, step by step.","operationId":"get_run_status","requestBody":{"content":{"application/json":{"schema":{"properties":{"revision":{"type":"string"},"run":{"type":"string"},"task":{"type":"string"}},"required":["task"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Report how a submitted workflow is going, step by step","tags":["Found on demand"]}},"/tools/get_schedule":{"post":{"description":"Read a SCHEDULE — the recurring trigger attached to one workflow — with its next dates and what became of past firings. A firing marked BLOCKED is waiting for a person and will be dropped if nobody answers.","operationId":"get_schedule","requestBody":{"content":{"application/json":{"schema":{"properties":{"schedule":{"description":"the schedule id","type":"string"}},"required":["schedule"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read a SCHEDULE — the recurring trigger attached to one workflow — with its next dates and what became of past firings","tags":["Offered to the model"]}},"/tools/get_swap_cost":{"post":{"description":"What a specific trade will actually cost, all in — and what a BOUND would do to it before you write one into a plan. JUDGE A TRADE ON cost_vs_best_spot_pips, never on price_impact_pips: impact is measured against the route this quote chose and excludes the pool fee, so at size it can FALL while the trade gets more expensive. If cost_vs_best_spot_pips comes back null that means UNMEASURED, not free — read read_this, which says what to do instead. Call this before committing to an amount a person will care about.\n\nSend max_impact_bps or cost_bps to ask what that bound leaves: both shrink the offer, and offered_amount_in beside amount_in is the answer. Neither is slippage — slippage never changes the trade, only the floor it must clear.","operationId":"get_swap_cost","requestBody":{"content":{"application/json":{"schema":{"properties":{"amount_in":{"description":"raw units of asset_in — USDC has 6 decimals, so \"1000000\" is one dollar","examples":["1000000"],"type":"string"},"asset_in":{"examples":["USDC"],"type":"string"},"asset_out":{"examples":["WETH"],"type":"string"},"chain":{"description":"base (default), ethereum, arbitrum","type":"string"},"cost_bps":{"description":"OPTIONAL. Trade at most what the BOOK takes at this marginal cost, in basis points. A different question from max_impact_bps: this one asks how large a trade the book carries, that one caps what a chosen size does. Both may be sent; the smaller wins and bound_by says which.","type":"number"},"max_impact_bps":{"description":"OPTIONAL. Cap what this trade does to the pool, in basis points. The service shrinks the OFFER until the impact it reports fits, so compare offered_amount_in with amount_in to see what the cap would cost you in size.","type":"number"},"max_slippage_bps":{"description":"basis points; defaults to 100","type":"number"}},"required":["asset_in","asset_out","amount_in"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What a specific trade will actually cost, all in — and what a BOUND would do to it before you write one into a plan","tags":["Found on demand"]}},"/tools/get_tick_range":{"post":{"description":"Turn a PRICE RANGE into the tick_lower and tick_upper a Uniswap V3 mint takes. Call it for every uni.* or flash.* step that carries ticks.\n\nDO NOT WORK TICKS OUT IN PROSE. Between a price and a tick sit a logarithm, a DECIMALS adjustment, the pool's tick spacing and Uniswap's own token ordering — which is by address, so it cannot be guessed from the symbols. Only the spacing reverts when it is wrong. Forget the decimals term on WETH/USDC and the tick is out by about 276,310: a valid int24 that mints happily, at prices nobody asked for, holding one token and earning nothing.\n\nIt reports the prices the rounded ticks actually mean, which are never exactly the ones asked for. Say those back to the person.","operationId":"get_tick_range","requestBody":{"content":{"application/json":{"schema":{"properties":{"chain":{"description":"base (default), ethereum, arbitrum","type":"string"},"fee":{"description":"the pool's fee TIER in its own units: \"100\", \"500\", \"3000\" or \"10000\". Each has a tick spacing fixed with it","examples":["500","3000"],"type":"string"},"range":{"description":"a price band as \"2000-4000\", OR A SINGLE PRICE as \"2500\" — one price returns ONE tick, rounded to the nearest multiple of the pool's spacing, which is the shape uni.split's `tick` takes. The band form returns the pair a mint takes.\n\nEither form is read as token_b per one token_a; if the pool's own order is the other way round the answer says so and uses the reciprocal","examples":["2000-4000","2500"],"type":"string"},"token_a":{"description":"one side of the pair, by SYMBOL","examples":["WETH","cbBTC"],"type":"string"},"token_b":{"description":"the other side, by SYMBOL","examples":["USDC"],"type":"string"}},"required":["token_a","token_b","fee","range"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Turn a PRICE RANGE into the tick_lower and tick_upper a Uniswap V3 mint takes","tags":["Found on demand"]}},"/tools/get_tradeable_size":{"post":{"description":"THE INVERTED QUESTION, and the one an order is actually made of: not \"what does this size cost\" but \"what size costs at most N basis points\". Returns a size per cost level, in one call. Use it before choosing any large amount, and before offering to split an order into tranches — whether splitting helps depends on the pair and this is what decides it. Read `saturated` (the size is a floor, not a maximum) and `pools_answered` (levels measured over different pool counts are not on the same curve) before believing a number.","operationId":"get_tradeable_size","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset_in":{"description":"what is being spent, e.g. USDC","examples":["USDC"],"type":"string"},"asset_out":{"description":"what is being bought, e.g. cbBTC","type":"string"},"chain":{"description":"base (default), ethereum, arbitrum","type":"string"},"cost_bps":{"description":"cost levels in basis points; defaults to [5,10,25,50]","items":{"type":"number"},"type":"array"}},"required":["asset_in","asset_out"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"THE INVERTED QUESTION, and the one an order is actually made of: not \"what does this size cost\" but \"what size costs at most N basis points\"","tags":["Offered to the model"]}},"/tools/get_uni_positions":{"post":{"description":"THE UNISWAP POSITIONS THIS OWNER ALREADY HOLDS — token id, pair, fee tier, price band and uncollected fees, read from the position manager on each chain. get_lending_positions is LENDING and does not cover these.\n\nCall this before writing any plan that acts on a position the person already has: uni.decrease, uni.collect and every revert.* step take a `position_id`, and it is a token id that cannot be guessed or derived. Asking the person for it is the wrong move when this answers it.\n\nReads the operating address AND the owner. A position pledged as collateral is NOT listed — the Revert vault holds the NFT while the loan is open, so the position manager reports it as the vault's.\n\nIT QUOTES THE UNWIND FLOORS. Every step that takes liquidity out (uni.decrease, uni.withdraw, uni.rebalance, uni.reposition, uni.split) states min0/min1, and each position here carries them: what burning all of it returns at the pool's price now, less 100 bps, in raw units. Use those numbers, never 1 or 0 on a side the burn returns: the keeper refuses a floor more than 200 bps under the burn.","operationId":"get_uni_positions","requestBody":{"content":{"application/json":{"schema":{"properties":{"account":{"description":"the OPERATING address, when that is the only one you have","type":"string"},"chain":{"description":"ethereum, base or arbitrum. OMIT FOR ALL THREE, which is almost always what you want — a position on a chain you did not name is invisible, not absent","type":"string"},"chains":{"description":"several chains at once, e.g. [\"base\", \"ethereum\"]. Omitting both this and `chain` reads all of them","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"THE UNISWAP POSITIONS THIS OWNER ALREADY HOLDS — token id, pair, fee tier, price band and uncollected fees, read from the position manager on each c…","tags":["Found on demand"]}},"/tools/get_workflow":{"post":{"description":"Read back a workflow that was saved, with its revision history AND whether a run of it has started, is in flight, or has STOPPED. Call this BEFORE changing a plan you did not just write, and before running one again: a revision cannot be edited in place, so a change means resending the whole document at the next revision, and reconstructing it from memory is how steps go missing.","operationId":"get_workflow","requestBody":{"content":{"application/json":{"schema":{"properties":{"task":{"description":"the TaskID it was saved under","type":"string"}},"required":["task"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read back a workflow that was saved, with its revision history AND whether a run of it has started, is in flight, or has STOPPED","tags":["Offered to the model"]}},"/tools/hyperliquid_lock_state":{"post":{"description":"The person's Hyperliquid lock state, READ BEFORE drafting or saving ANY Hyperliquid card, deposit or order: the lock's cap, max leverage and isolated margin, the USDC already counted against the cap, the headroom for a new deposit, whether the account is a HyperCore user and what it holds on Hyperliquid (the margin), whether agent G is connected, and the sentences to say first (`say`). Pass deposit_usdc (the USDC the person wants to deposit) and it says whether that fits under the cap and how to raise the cap if not. Quote the `say` lines: the cap against the amount and the headroom, whether the account is a HyperCore user and whether G is connected (it connects only after the first deposit lands), and what waits for G. USDC on HyperEVM is not margin. Whose lock it is comes from the conversation. It reads only: it signs nothing, sends nothing and starts no connect.","operationId":"hyperliquid_lock_state","requestBody":{"content":{"application/json":{"schema":{"properties":{"deposit_usdc":{"description":"optional: the USDC amount the person wants to deposit to Hyperliquid, a decimal such as \"15\" or \"4.9\"","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The person's Hyperliquid lock state, READ BEFORE drafting or saving ANY Hyperliquid card, deposit or order: the lock's cap, max leverage and isolated…","tags":["Offered to the model"]}},"/tools/lighter_connections":{"post":{"description":"The person's Lighter connections: each one's id, account (the person's own account address, V), status (pending, then verified once the key is registered on Lighter), stage (awaiting_lock, or registered; the console reads the finer registering stage) and when it was verified. Whose they are comes from the conversation. It reads only: it does not connect, register a key, set a lock, deposit, withdraw or trade, and it never shows a key. Connecting is done on the console's Lighter page.","operationId":"lighter_connections","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The person's Lighter connections: each one's id, account (the person's own account address, V), status (pending, then verified once the key is registe…","tags":["Offered to the model"]}},"/tools/lighter_markets":{"post":{"description":"The Lighter markets a lock can allow: crypto perps, RWA perps (commodities, FX, equities, indices), crypto spot and RWA spot (XAUT, rhSPY, rhQQQ), each with its lock kind, whether it is active and its feed keys. Read this before saying a market is or is not available: it is the fixed table the keeper enforces. Give `kind` (crypto_perps, rwa_perps, crypto_spot, rwa_spot) or `query` (part of a ticker) to narrow it: the full list is long. Nothing is read from Lighter and nothing is placed.","operationId":"lighter_markets","requestBody":{"content":{"application/json":{"schema":{"properties":{"kind":{"description":"only this kind","enum":["crypto_perps","rwa_perps","crypto_spot","rwa_spot"],"type":"string"},"limit":{"description":"how many markets to return, at most 80 (default 40); the answer says total and next_offset","type":"integer"},"offset":{"description":"how many matching markets to skip: the previous answer's next_offset","type":"integer"},"query":{"description":"only markets whose ticker contains this text, such as XAU, SPY or ETH","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The Lighter markets a lock can allow: crypto perps, RWA perps (commodities, FX, equities, indices), crypto spot and RWA spot (XAUT, rhSPY, rhQQQ), eac…","tags":["Offered to the model"]}},"/tools/lighter_price":{"post":{"description":"A Lighter market's current prices, read from the feed runtime (the registry keys lighter.perp.\u003casset\u003e.mark, .index_price, .funding, lighter.spot.\u003cbase\u003e_\u003cquote\u003e.last_trade_price, .base_index_price), never from Lighter itself. Each field comes with its time and age; a field with no fresh value is refused naming its key, and then no price is stated from it. Funding is a fraction per 1 hour. `product` is perp or spot; `symbol` is the ticker (BTC, XAU, EURUSD for a perp; ETH/USDC, XAUT/USDC for spot) and must be in lighter_markets. It reads and acts on nothing.","operationId":"lighter_price","requestBody":{"content":{"application/json":{"schema":{"properties":{"product":{"enum":["perp","spot"],"type":"string"},"symbol":{"description":"BTC, XAU or EURUSD for a perp; ETH/USDC for spot","type":"string"}},"required":["product","symbol"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"A Lighter market's current prices, read from the feed runtime (the registry keys lighter","tags":["Offered to the model"]}},"/tools/list_capabilities":{"post":{"description":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). The operations a workflow step can use, with the exact ref to copy, the parameters, and what Amount means for each. Call this FIRST, before writing any plan. PASS THE REQUEST AS THE QUERY — in the person's own words, the whole thing, not one operation at a time: \"take $1000 from my account and swap $200 to cbBTC and $200 to WETH\" returns the funding step and the swap step in full and names the rest. Leave the query off only when you genuinely need the whole catalogue; it is several times larger and the operations you need are harder to find in it. When choosing between routes, weigh gas plus bridge fee plus the live-quote price impact, never gas alone (XAUt0 on Arbitrum is thin).","operationId":"list_capabilities","requestBody":{"content":{"application/json":{"schema":{"properties":{"query":{"description":"what the person asked for, in their words — or an operation id, to get that one in full","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/list_lp_strategies":{"post":{"description":"The ways a liquidity position can be placed and managed, and what each one's inputs are.\n\nSeventeen strategies in eight families — hold one band and never touch it, recentre when the price leaves, widen with volatility, ladder several bands, keep part of the money out of the pool entirely. Each carries a plain-English summary and every input's bounds and default.\n\nREAD THIS BEFORE run_lp_backtest rather than guessing a strategy id or a parameter range. The list is fetched from the service, so it is what the service will actually accept — a strategy added there appears here without anything being changed.\n\nPass `strategy` to see one in full, including per-option help for the ones whose inputs are choices rather than numbers.","operationId":"list_lp_strategies","requestBody":{"content":{"application/json":{"schema":{"properties":{"strategy":{"description":"one strategy id, for its full inputs; omit for all of them","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The ways a liquidity position can be placed and managed, and what each one's inputs are","tags":["Found on demand"]}},"/tools/list_networks_and_assets":{"post":{"description":"The chains, the assets each supports, and their decimals. Check here before naming an asset or a chain.","operationId":"list_networks_and_assets","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The chains, the assets each supports, and their decimals","tags":["Found on demand"]}},"/tools/list_option_structures":{"post":{"description":"The option shapes that can be priced — every way to hedge, insure or be paid for taking risk: protective put, collar, straddle, covered call, cash-secured put and the rest — each with what it is FOR in one sentence, and its legs.\n\nRead this before price_options. Strikes here are MONEYNESS, a multiple of spot: 0.8 is twenty percent below, not a price of 0.8.","operationId":"list_option_structures","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The option shapes that can be priced — every way to hedge, insure or be paid for taking risk: protective put, collar, straddle, covered call, cash-s…","tags":["Found on demand"]}},"/tools/list_workflows":{"post":{"description":"List the workflows this owner has SAVED before, newest first — the TaskID, revision, date and what each does. Call this when somebody refers to a plan from an earlier conversation (\"the rent loop\", \"run yesterday's swap again\") instead of asking them for an id; then read the one they mean with get_workflow.","operationId":"list_workflows","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"List the workflows this owner has SAVED before, newest first — the TaskID, revision, date and what each does","tags":["Offered to the model"]}},"/tools/place_order":{"post":{"description":"**Spends money.** This tool broadcasts or submits work that costs funds, and is withheld entirely from a deployment that may not spend.\n\nWait for a PRICE, then run a workflow that is ALREADY SAVED. The trigger a schedule is to a clock. It holds no signature and compiles a fresh plan each time it fires, which is why one can rest for days without going stale — and why nothing is signed until the price is actually there. Use it for \"buy X at Y\", \"sell when it reaches Y\", and for unwinding a loan at a price: point it at a swap.router, loan.close or loan.shift plan. By default a short fill is ACCEPTED: it takes what the block will give, records it, and comes back for the rest. A STOP-LOSS is direction \"at_or_below\"; add `trail_bps` to make it trail the market up. A TAKE-PROFIT is the default \"at_or_above\". Point either at the entry with `protects` and it sells only what that entry actually bought. A RUNG (`rung` true) fills only within a band AT your price and waits when the market runs past instead of chasing it — its band is the plan's max_impact_bps. A TWAP (`twap_slices` + `twap_interval_secs`) fires at MARKET on a clock instead of on a price: it spreads the size into that many equal slices, one every interval, until it is done — for getting in or out over time regardless of where the price is. A TWAP cannot also carry a trail, a rung or a protects. A MARKET ORDER (`market` true) waits for no price: it is partially fillable, and each pass takes whatever clears at market within a per-bite price-impact cap (the plan's max_impact_bps, else 20 bps = 0.2%, which the owner may change), then bites again for the rest until it is filled, expires or is cancelled. It needs partial true, direction at_or_above, no rung, trail, TWAP or protects, and a plan whose swap states no limit_price, min_out or limit_band_bps; the service refuses anything else with its reason. On-chain only: Binance orders use Binance's own partial fills.","operationId":"place_order","requestBody":{"content":{"application/json":{"schema":{"properties":{"amount":{"description":"total size to fill, in spend's own raw units","type":"string"},"chain":{"description":"the chain it trades on","type":"string"},"direction":{"description":"\"at_or_above\" (default) fills when the rate is at least the limit; \"at_or_below\" when it falls to it","type":"string"},"grid":{"description":"makes an at_or_above order a GRID RUNG: the band is TWO-SIDED, so it trades only while the price is INSIDE the band of your level and waits when the market moves away in either direction — below it the price has not arrived, above it the market has LEFT the level. THIS IS WHAT LADDERS AND GRIDS NEED: it accumulates AT its level instead of following a move, so a drop through a range does not fill every level near the bottom. A plain `rung` would, because a better price is good news to it. Implies rung — same band, from the plan's max_impact_bps, required the same way","type":"boolean"},"market":{"description":"makes a partially fillable MARKET order: no price to wait for, each pass takes what clears at market under the per-bite impact cap and the rest bites again. The cap is the plan's max_impact_bps on the swap (set it there to state one), else 20 bps (0.2%). Requires partial true (the default) and at_or_above; refused with a rung, trail_bps, twap_slices or protects, and refused when the plan's swap states limit_price, min_out or limit_band_bps. rate_amount and rate_buys are still required: send the market's current rate, which is shown to the person and is not a floor","type":"boolean"},"note":{"description":"what it is for, for a person reading the list","type":"string"},"order":{"description":"an id for the order","type":"string"},"partial":{"description":"ASK WHICH, DO NOT PICK: \"should this fill in pieces as the price allows, or only all at once?\" — one line, and take the answer. Default TRUE. False is fill-or-kill: a block that cannot give the whole size moves nothing at all. The two are not a preference: in pieces, a later step of the plan spending that step's output gets a smaller number than the plan assumed; all at once, the order may never fill at size","type":"boolean"},"protects":{"description":"the id of the ENTRY order this one protects, which is what makes it a stop-loss or take-profit ON a position rather than a separate trade. Its size is then NOT `amount`: it is whatever the entry actually bought, less whatever the other side of the bracket already sold — so a stop and a take-profit on one entry can never sell the position twice, and neither cancels the other. `spend` must be the asset the entry receives","type":"string"},"rate_amount":{"description":"the price, top half: this much of spend...","type":"string"},"rate_buys":{"description":"...must buy at least this much of receive. Two whole numbers in raw units, never a decimal — the floor for whatever size actually fills is worked out from them","type":"string"},"receive":{"description":"the asset coming IN, e.g. cbBTC","type":"string"},"rung":{"description":"makes an at_or_above order a RUNG: its band is a bounded allowance BELOW your rate, which is what makes a level actually fillable — an exact limit sitting at the market barely trades, because any fill's own impact drags the achieved average past the price you typed. A BETTER price still fills, bounded by your rate rather than by the band. The width is the plan's own max_impact_bps, so set that on the swap.router or loan.close/shift step first; a rung with no cap on its plan is refused. If you want the order to WAIT when the market leaves your level, use `grid` instead. Omit for an ordinary limit, which fills at its price or any better one","type":"boolean"},"spend":{"description":"the asset going OUT, e.g. USDC","type":"string"},"step":{"description":"which step of that plan carries the size. USUALLY LEAVE IT OUT: empty resolves to the one step denominated in `spend`, and if the plan has none or several you are told which, by name and amount, rather than one being guessed at. Name a step only to override that.","type":"string"},"task":{"description":"the TaskID it runs, WITHOUT a revision","type":"string"},"trail_bps":{"description":"makes an at_or_below order a TRAILING stop: it follows the best rate seen upward at this distance in basis points (500 = 5%) and never moves back down, firing on the retreat. Omit it for a stop at a fixed price. The rate you give is where the stop STARTS","type":"integer"},"twap_interval_secs":{"description":"seconds between TWAP slices, counted from placement (the first slice fires now). Required with twap_slices and meaningless without it","type":"integer"},"twap_slices":{"description":"makes a TWAP: the number of equal slices to spread `amount` across, fired at MARKET one per interval regardless of the price. Set it WITH twap_interval_secs or not at all. A TWAP waits on the clock, not the rate — so it cannot also be a trail, a rung or a protecting order. Omit for a price-triggered order","type":"integer"}},"required":["order","task","chain","spend","receive","amount","rate_amount","rate_buys"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Wait for a PRICE, then run a workflow that is ALREADY SAVED","tags":["Offered to the model"]}},"/tools/price_options":{"post":{"description":"What an option costs RIGHT NOW, and whether that is dear or cheap.\n\nFor \"should I hedge this\", \"what does protection cost\", \"how do I cap my downside\" and \"is volatility expensive\".\n\nTHE MARKET AS IT IS, not a study. It gives the cost of cover today as a percentage of the position and in dollars, the annualised figure if rolled, where today's volatility ranks in its OWN history over one year and over all of it, what the asset has ACTUALLY moved beside what is implied, and the levels worth an alert with what happens at each.\n\nTHE PERCENTILE IS THE JUDGEMENT. A premium is a number; \"cheaper than 16% of the past year\" is a decision, and it transfers between assets where an absolute level does not. Quote the verdict and the levels as given.\n\nbacktest_options is the separate question of what the shape would have done over years of rolls — ask it only when somebody wants the history.","operationId":"price_options","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"size in dollars","type":"number"},"currency":{"description":"the asset being hedged — WETH, WBTC and cbBTC are accepted and priced against ETH and BTC, so pass what the person actually holds. REQUIRED — there is no default, because this tool cannot see which asset you are discussing and a wrong one returns a plausible answer about the wrong coin","examples":["WETH","cbBTC"],"type":"string"},"from":{"description":"YYYY-MM-DD. OMIT IT unless somebody asked for a particular window: with no bounds this uses the whole history, which is what you want. A value that is not a date — \"today\", \"now\" — is refused, because the window is filtered by string comparison and one of those excludes every day there is","type":"string"},"skew":{"description":"volatility points added to the at-the-money index. Omit to use the measured default, and say which was used","type":"number"},"skew_decay":{"description":"how fast the strike markup fades with tenor, as an exponent on (30d/t); 0.7 fits the measured chain. Without it a one-year hedge is priced at the short-dated skew, which is dear by several times","type":"number"},"strikes":{"description":"override the structure's strikes — ONE PER LEG, in the order list_option_structures shows them, each a MULTIPLE of spot (0.9 is ten percent below). Omit to price the catalogue's strikes, which is the usual case. A wrong count is refused, not ignored","examples":[[0.9],[0.9,1.15]],"items":{"type":"number"},"type":"array"},"structure":{"description":"an id from list_option_structures, e.g. \"put\", \"collar\"","examples":["put","collar"],"type":"string"},"tenor_days":{"description":"days to expiry per roll; defaults to 365","type":"number"},"term_vol":{"description":"the FAR end of the volatility curve, in points. The index is a THIRTY-DAY reading, so without this a 365-day option is priced at the one-month vol. price_options_live prints the live curve; pass its long end here","type":"number"},"to":{"description":"YYYY-MM-DD. Omit it to run to the end of the history","type":"string"}},"required":["structure","currency"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What an option costs RIGHT NOW, and whether that is dear or cheap","tags":["Found on demand"]}},"/tools/price_options_live":{"post":{"description":"What an option costs RIGHT NOW, from Deribit's live book.\n\nUse this for \"what would it cost to hedge this\". price_options answers a different question — what protection HAS cost, rolled through history — and its figure is priced at the START of that window, which is 2021 by default. ETH's volatility index read 117.8 then and 52.8 on 2026-09-12, and a put costs roughly what the volatility costs, so the historical figure is more than double the current one.\n\nEvery leg is a real listed contract, named in the answer with its mark, its bid and its ask. Deribit lists the expiries and strikes it lists, so the nearest one is quoted and the substitution is shown rather than hidden.","operationId":"price_options_live","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"position size in dollars, for the cash figure","type":"number"},"currency":{"description":"the asset being hedged — WETH, WBTC and cbBTC are accepted and priced against ETH and BTC, so pass what the person actually holds. REQUIRED — no default, because a quote for the wrong coin reads as an answer","examples":["WETH","cbBTC"],"type":"string"},"moneyness":{"description":"strike as a multiple of spot for the single-put case, e.g. 0.8 for twenty percent below; defaults to 0.8. Ignored when `structure` is given, because a structure's strikes are its own","type":"number"},"structure":{"description":"an id from list_option_structures, priced with that structure's own legs. Omit for a single protective put at `moneyness`","examples":["put","collar"],"type":"string"},"tenor_days":{"description":"days to expiry; the nearest listed expiry is quoted. Defaults to 365","type":"number"}},"required":["currency"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What an option costs RIGHT NOW, from Deribit's live book","tags":["Found on demand"]}},"/tools/read_skill":{"post":{"description":"Read WHOLE guides, up to 3 — thousands of words each. Reach for it only when find_skill has shown you the right document and you need the rest of it: a procedure with steps that depend on each other, or a subject you are going to work in for several turns. For a QUESTION, find_skill answers it directly and for a fraction of the cost. The answer names which skills go with the ones you read.","operationId":"read_skill","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"one skill name, or several separated by commas — up to 3. A PLAIN NAME, never an adapter reference and never a path: \"uniswap-positions\", not \"uni.mint@v1.0\" and not \"skills/uniswap.md\" — an adapter ref was passed here and refused. Use find_skill if you do not know the name. The answer says which skills go with the ones you read.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read WHOLE guides, up to 3 — thousands of words each","tags":["Offered to the model"]}},"/tools/run_lp_backtest":{"post":{"description":"Run ONE strategy over ONE pool's real history and report what it did.\n\nWhere get_lp_yield surveys pools for a band you name, this runs a named STRATEGY — including ones that move: recentre on exit, rebalance on a clock, scale the width with volatility, ladder several bands at once.\n\nThe answer leads with how often the band held the price, because every APY below it is computed across the whole window regardless: a band in range 19% of the time earned nothing for the other 81%.\n\nIt reports fees AND impermanent loss AND the comparison against simply holding. Report all three. Fees alone are half a ledger and read as the outcome.\n\nA BAND YOU NAME GOES WITH \"static\" OR \"ladder\", and only those two. `lower`/`upper` are real prices — 2800 and 3200, not percentages. Use \"static\" for ONE band held all the way through, and \"ladder\" for SEVERAL ranges at once: it tiles rungs between the two bounds, and `bands` sets how many. Every other strategy MOVES or derives its own band and will refuse the bounds rather than quietly answer about a different band — name the strategy alone for those.\n\nHistory, not a forecast. Gas is not modelled.","operationId":"run_lp_backtest","requestBody":{"content":{"application/json":{"schema":{"properties":{"capital":{"description":"position size in dollars; the answer depends on it, because fees split by liquidity","type":"number"},"from":{"description":"YYYY-MM-DD; defaults to two years back","type":"string"},"lower":{"description":"band floor as a PRICE, in quote per one base. Only with \"static\" or \"ladder\"; any other strategy refuses it. Needs `upper` too","examples":[2800],"type":"number"},"params":{"description":"the STRATEGY's own inputs, as numbers — rung count, half-width, geometry. list_lp_strategies names each strategy's inputs with its default and range. Omit and every input takes its default, which is a real answer to a different question: a ladder runs at four rungs however many you meant","examples":[{"bands":6},{"width":20}],"type":"object"},"pool":{"description":"chain|PAIR|feePpm, e.g. \"ethereum|USDC/WETH|500\"","examples":["ethereum|USDC/WETH|500"],"type":"string"},"strategy":{"description":"a strategy id from list_lp_strategies; defaults to \"static\", one band never touched","type":"string"},"to":{"description":"YYYY-MM-DD; defaults to today","type":"string"},"upper":{"description":"band ceiling, same units as `lower`. With \"ladder\" the rungs tile between the two","examples":[3200],"type":"number"}},"required":["pool"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Run ONE strategy over ONE pool's real history and report what it did","tags":["Found on demand"]}},"/tools/run_workflow":{"post":{"description":"**Spends money.** This tool broadcasts or submits work that costs funds, and is withheld entirely from a deployment that may not spend.\n\nFOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). MAKE A SAVED WORKFLOW RUN. This SPENDS REAL FUNDS. It is the ONE tool for that, and it works out WHICH of three things you meant by reading the run — you do not choose:\n  nothing has run   it STARTS the revision as authored\n  the run stopped   it RESUMES from the steps that already settled, at the same revision, and does not replay them\n  the run completed it REPEATS — copies the plan to the next revision and runs the whole thing again. It REFUSES once first and tells you the number to pass back, because that is a second position rather than a repair\n  something is in flight   it does nothing and says what is happening\n\nSo \"run it\", \"run it again\", \"resume it\" and \"continue it\" are all THIS tool with the same arguments. Do NOT save a new revision to get a stopped run moving, and do NOT author the plan under a new task id: both re-execute what has already been paid for.","operationId":"run_workflow","requestBody":{"content":{"application/json":{"schema":{"properties":{"repeat_as_revision":{"description":"ONLY to confirm running a COMPLETED plan a second time. Leave it out on the first call: the refusal says what would be executed again and names the exact number to pass here","type":"number"},"revision":{"description":"which revision to start, or to continue onto after a correction; omit for the latest","type":"number"},"task":{"description":"the TaskID","type":"string"}},"required":["task"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/save_chain":{"post":{"description":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). Arrange workflows that are ALREADY SAVED into an ordered chain. Starts nothing. A stage with no scheduleId runs its workflow once and the chain waits for it to SUCCEED; a stage with one arms that schedule and carries on. Save the workflows and any schedules first — a stage naming a workflow that is not stored would fire into nothing.","operationId":"save_chain","requestBody":{"content":{"application/json":{"schema":{"properties":{"chain":{"description":"an id for the chain","type":"string"},"name":{"description":"how a person will recognise it","type":"string"},"stages":{"description":"in order. Each names a taskId, and a scheduleId to make it recurring.","items":{"properties":{"scheduleId":{"type":"string"},"taskId":{"type":"string"}},"required":["taskId"],"type":"object"},"type":"array"}},"required":["chain","name","stages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/save_schedule":{"post":{"description":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). Attach a recurring trigger to a workflow that is ALREADY SAVED. It does NOT arm it and does NOT run anything. A schedule is deliberately not part of the plan document: a step's id goes on chain and its bytes are in the hash somebody approved, and a cron has neither property — kept in the plan, changing the frequency would be refused as rewriting history.","operationId":"save_schedule","requestBody":{"content":{"application/json":{"schema":{"properties":{"ask_before":{"description":"when a firing must stop and wait for the person's decision: before a borrow, or before every firing. Leave it out and the firing stops for nothing, unless the deployment says otherwise. Only set it when the person asked for it.","enum":["borrow","every_firing"],"type":"string"},"note":{"description":"what it is for, for a person reading the list","type":"string"},"schedule":{"description":"an id for the schedule","type":"string"},"spec":{"description":"cron, e.g. \"0 9 1 * *\" for 09:00 on the 1st, or \"@monthly\"","type":"string"},"task":{"description":"the TaskID it runs, WITHOUT a revision","type":"string"},"timezone":{"description":"IANA name; UTC if omitted","type":"string"}},"required":["schedule","task","spec"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/save_workflow":{"post":{"description":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). Store a validated workflow WITHOUT running it. Validates first and refuses to store anything that would not run. Call this once the plan is agreed and validated: it gives the console something to link to, so the person can open the workflow instead of reading it pasted into the conversation.","operationId":"save_workflow","requestBody":{"content":{"application/json":{"schema":{"properties":{"amounts":{"description":"REQUIRED. What each step moves, in the ASSET'S OWN UNITS — one row per step that has a written Amount. This is compared against the raw integers in `plan`, and a disagreement of ten times or more is refused. It is a MAGNITUDE check, so ordinary headroom, a fee or a rounded figure all pass: write what the person said and do not tune it to the document. (1) Write it as the person said it: \"250.00\", not the raw integer. (2) Take the figure from the REQUEST, not by dividing your own Amounts back out — the point is to catch a conversion that went wrong. (3) For a property.buy step state what it SPENDS (params.max_spend, in params.currency), never the share count. (4) Steps whose amount is an earlier step's output need NO row and must not be given an invented one, and neither do rent.redeem and rent.claim_position, whose Amount is a token id rather than money. A refusal names every step it wants a row for, so nothing has to be guessed.","items":{"properties":{"asset":{"description":"the symbol that figure is counted in — USDC, cbBTC, WETH. The step's own asset, which for a swap is what it SPENDS","type":"string"},"moves":{"description":"the amount in the asset's own units, as a decimal STRING: \"1000.751\", \"0.05\". Not raw units, not a range","type":"string"},"step":{"description":"the step's ID, exactly as the plan spells it","type":"string"}},"required":["step","moves","asset"],"type":"object"},"type":"array"},"plan":{"description":"The whole workflow document: {\"TaskID\":\"...\",\"Owner\":\"0x...\",\"Revision\":1,\"Steps\":[...]}","type":"object"}},"required":["plan","amounts"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/start_chain":{"post":{"description":"**Spends money.** This tool broadcasts or submits work that costs funds, and is withheld entirely from a deployment that may not spend.\n\nBegin a saved chain. This SPENDS REAL FUNDS: it runs the first once-stage immediately. A stage that ends stuck stops the chain and arms nothing after it.","operationId":"start_chain","requestBody":{"content":{"application/json":{"schema":{"owner":{"description":"the address that owns it. IN A CONVERSATION, LEAVE THIS OUT — the session supplies it and it cannot be got wrong that way. Typing it is where it goes wrong: copying slips were 30% of every tool refusal measured.","type":"string"},"properties":{"chain":{"description":"the id the CHAIN OF WORKFLOWS was saved under — not an EVM chain","type":"string"}},"required":["chain"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Begin a saved chain","tags":["Offered to the model"]}},"/tools/stop_run":{"post":{"description":"STOP, PAUSE or TERMINATE a run of a task — all three are this one tool, because there is one act underneath. It spends nothing.\n\nIt is NOT an undo. Everything already on chain stays exactly where it is; this ends the run that was managing it. Say that when you report it.\n\nPAUSING IS STOP THEN RUN AGAIN. Nothing is replayed: run_workflow picks the task back up from the steps that had already settled. Use this the moment somebody says stop — do not send them to the console for it.","operationId":"stop_run","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"description":"why, in the person's own words, for whoever reads the record","type":"string"},"task":{"description":"the TaskID whose run should end. Required: an owner may have several, and stopping the wrong one cannot be undone","type":"string"}},"required":["task"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"STOP, PAUSE or TERMINATE a run of a task — all three are this one tool, because there is one act underneath","tags":["Offered to the model"]}},"/tools/strategy_author":{"post":{"description":"Write a strategy card for what the person asked for, from the compiler's own vocabulary, and check it: the answer is one of four. A QUESTION (the request leaves something open, such as what a percentage is of): pass it to the person and ask again with their answer added to the request; nothing was saved. REFUSED (the language cannot say it): say why. ERRORS (the card did not compile after 3 rewrites): show the errors; nothing was saved. CARD: the card, its measures, the derived line (what the plan can and can never do) and a walk-forward backtest started as a saved DRAFT, with the report id to read with strategy_report when the job has finished (minutes). A card on a venue (ON Binance) is saved but has no backtest: its backtest is not_run and there is no report id; tell the owner to arm it from the card. Nothing is live and no money moves; it uses language-model tokens, so call it once per request, not to shop for a better-looking result. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_author","requestBody":{"content":{"application/json":{"schema":{"properties":{"request":{"description":"what the person asked for, in their words (with their answer to an earlier question added)","type":"string"}},"required":["request"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Write a strategy card for what the person asked for, from the compiler's own vocabulary, and check it: the answer is one of four","tags":["Offered to the model"]}},"/tools/strategy_backtest":{"post":{"description":"Run a backtest of a SAVED draft version as a background job and return at once with the run id and the report id the report will have. A backtest is minutes of arithmetic: it does not run in this call. Read it with strategy_report; until it is stored that says so, and the answer is to wait. Every run is counted as a variant tried and the report prints that count, so change a card on purpose, not to shop for a better-looking result, and do not run the same configuration twice. Research only: no money moves. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_backtest","requestBody":{"content":{"application/json":{"schema":{"properties":{"card":{"description":"the card's text, as saved","type":"string"},"fee_bps":{"description":"fee per side in basis points","type":"number"},"fill":{"description":"the fill convention (default nextOpen)","enum":["nextOpen","close"],"type":"string"},"from":{"description":"the first day the card trades, 2021-01-01 (default 1 January of this year; the measures still warm up on the bars before it)","type":"string"},"gas":{"description":"gas per swap in USD","type":"number"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"},"oos_from":{"description":"the day the out-of-sample period starts","type":"string"},"start_usdc":{"description":"the starting USDC (default 10,000; a card with a BUDGET starts with its budget, so leave this out for it)","type":"number"},"strategy_id":{"description":"the lineage strategy_save_draft returned","type":"string"},"to":{"description":"last day","type":"string"},"version":{"description":"the version of it to backtest","type":"integer"},"walk_forward":{"description":"the number of walk-forward windows","type":"integer"}},"required":["strategy_id","version","card","measures"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Run a backtest of a SAVED draft version as a background job and return at once with the run id and the report id the report will have","tags":["Offered to the model"]}},"/tools/strategy_card_plan":{"post":{"description":"Show the plan a card becomes, without saving or running anything: for each rule, the plan-v1 template (the steps the account would take) with the amounts that are placeholders the host fills when the rule fires and how each is sized (a card that runs once is sized ONCE, when it is saved and before its first step runs: its `sized` says so), the conditions the engine evaluates, the watch set, the card's LIMITS (how often it may fire, its caps) and NEVER, and the bars and feeds the card runs on. A card that does not check comes back with the errors strategy_check_card gives. A resting order (IMMEDIATELY WHEN, a bracket, a grid) is shown as each order it places: price, side, size. A card that checks but that the runtime does not lower (a WAIT UNTIL) says so in the runtime's words. Call it after the card checks and before saving it. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_card_plan","requestBody":{"content":{"application/json":{"schema":{"properties":{"card":{"description":"the card's text","type":"string"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"}},"required":["card","measures"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Show the plan a card becomes, without saving or running anything: for each rule, the plan-v1 template (the steps the account would take) with the amou…","tags":["Offered to the model"]}},"/tools/strategy_check_card":{"post":{"description":"Compile a strategy card against the measures it reads. Every error comes back as file:line:col with the reason, so the card can be rewritten where it is wrong; a card that is accepted comes back with the derived line (what the plan can do and can never do, which is what the person reads and approves), what its backtest needs (the asset, the interval, the feeds), what it reads, and its proofs: which rules can never fire on one bar, self-trades (a buy and a sell of one token on one bar), what each step's failure leaves idle, and, given strategy_id and version, what widened since the approved version. Each proof is proved, not proved (neither safe nor unsafe) or a note; an analysis that did not run says so and found nothing. Call it after every edit, before saving a draft, and with strategy_id and version before asking the owner to approve. A card needs a BUDGET line to go live, except an EVERY card that only collects fees and spends what it collected. Nothing is spent, and nothing is saved. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_check_card","requestBody":{"content":{"application/json":{"schema":{"properties":{"card":{"description":"the card's text","type":"string"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"},"strategy_id":{"description":"a saved version's lineage: with version, the proofs say what widened since its approved version","type":"string"},"version":{"description":"the saved version to compare, with strategy_id","type":"integer"}},"required":["card","measures"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Compile a strategy card against the measures it reads","tags":["Offered to the model"]}},"/tools/strategy_check_measure":{"post":{"description":"Compile a measure (a Pine-subset script that computes one number a card reads) and run the checks of section 2.6 on it: it cannot read the future (look-ahead), the same bars give the same numbers (determinism), its outputs are what it declares. Errors come back as file:line:col with the reason. With asset, the checks run on that asset's real bars (and the feeds the measure reads); with synthetic, on generated regimes; with neither only the compile runs and the answer says the data checks did not. Call it on every measure before it goes into a card. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_check_measure","requestBody":{"content":{"application/json":{"schema":{"properties":{"asset":{"description":"run the data checks on this asset's bars, such as BTC; the token a card trades (cbBTC, WETH) is read as its market","type":"string"},"interval":{"description":"the bars' interval for asset (default 1d)","enum":["1d","1h","4h","1w"],"type":"string"},"measure":{"description":"the measure's source: //@version=6, indicator(...), //@dl.unit, plot(...)","type":"string"},"name":{"description":"a name for the file, shown in error positions (default measure)","type":"string"},"synthetic":{"description":"for a probability measure only: run the regime-recovery check on generated regimes instead of real bars","type":"boolean"}},"required":["measure"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Compile a measure (a Pine-subset script that computes one number a card reads) and run the checks of section 2","tags":["Offered to the model"]}},"/tools/strategy_feed_now":{"post":{"description":"The newest value of one data feed key, or its last few values (`points`), read from feed_history through the feed runtime's reader (the one every live card reads), with its time, age, unit and period. IT ANSWERS DATA QUESTIONS, not only cards: today's median funding across venues is view.funding_median.btc or view.funding_median.eth (the feed runtime's Pine view; the answer lists the venues it covers, say them), a pool's hourly trading volume is pool.\u003cchain\u003e.\u003caddress\u003e.1h.volume_token0 or volume_token1 (points 24 for the last 24 hours), a pair's volume across its pools on a chain is view.dex_volume.\u003cchain\u003e.\u003cbase\u003e.\u003cquote\u003e, and a Uniswap pool's swap volume in the last hour, live from our chain indexer, is dex.\u003cchain\u003e.\u003cpool\u003e.1h.volume_token0 or volume_token1 (swaps: .1h.swap_count). ONE VENUE'S FUNDING RATE NOW is a key too: Lighter's lighter.perp.\u003casset\u003e.funding (one hour's rate, sampled every 5 minutes; Lighter's own ticker, btc, eth), Hyperliquid's hl.\u003ccoin\u003e.funding. A VENUE'S LAST CLOSED DAY OF FUNDING is a key too: perps.\u003casset\u003e.funding_\u003cbinance|bybit|aster\u003e (Binance's daily funding is served here): quote it as that venue's last closed day with its age, never \"today\" or \"now\", and never as no feed for that venue. A VENUE'S LAST CANDLE is a key too: lighter.perp.btc.1m.close is Lighter's last completed 1-minute close (open, high, low, volume alike). A read-only market question about ANY venue whose data has a feed key is answered here, never as a card: quote the value, its time and its age. The venues it can compare are the ones with a feed key: name no other venue. A \"fraction\" value comes with value_percent and its period; an hourly funding rate (x 8760) or a closed day's funding sum (x 365) also with value_percent_per_year and value_bps_per_year: quote those, never convert, and compare two venues on them; two periods with no annualised figure on both sides are said to differ. Find the key first with strategy_vocab section feeds and a query (the pair and chain with volume, or the venue and asset with funding). Quote what a view gives and never compute an aggregate it already provides; never call a long-window average from another tool today's. A PRICE A CARD NAMES COMES FROM HERE: a card on Hyperliquid writes its `at $X` from the mark, key hl.btc.mark_px or hl.eth.mark_px, never from get_hyperliquid, another tool or a number in the conversation. A key with no value, or whose newest value is older than the bound its registry cadence allows, is refused naming the key: then say the value is stale or missing and write none. Keys are the ones strategy_vocab section feeds lists. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_feed_now","requestBody":{"content":{"application/json":{"schema":{"properties":{"key":{"description":"the feed key, lowercase, such as view.funding_median.btc, pool.base.\u003caddress\u003e.1h.volume_token1 or hl.btc.mark_px","type":"string"},"points":{"description":"how many of the newest values to return, newest first (default 1, at most 48): 24 on an hourly key is the last 24 hours that have a row","type":"integer"}},"required":["key"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The newest value of one data feed key, or its last few values (`points`), read from feed_history through the feed runtime's reader (the one every live…","tags":["Offered to the model"]}},"/tools/strategy_list_measures":{"post":{"description":"List the measures this owner may reuse: the ones their own saved versions and backtests already use, each by its hash with its source, unit, outputs, asset and timeframe. Look here before writing a measure, so one that exists is reused instead of rewritten (the same measure over the same data is stored once). Only this owner's own are listed, never another's, and no plan or card comes with them. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_list_measures","requestBody":{"content":{"application/json":{"schema":{"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"List the measures this owner may reuse: the ones their own saved versions and backtests already use, each by its hash with its source, unit, outputs,…","tags":["Offered to the model"]}},"/tools/strategy_positions":{"post":{"description":"The caller's own positions at the venues a plan can read, as context for writing a strategy: Aave and Morpho lending (collateral, debt, health) and Uniswap v3 liquidity, on every chain this server can read (or the one named), each stamped with the block it was read at. Only the caller's own addresses are read: the operating address and the owner's wallet, never merged. Read-only; nothing is spent. A debt whose health is not measured (Morpho has no health factor) is listed under health_unmeasured: that is NOT KNOWN, never healthy. A chain or address that could not be read is under not_read, which says nothing about what it holds, and it is not an empty answer. It reads the chain now, so a card cannot be backtested on it. Every token amount comes raw (base units) and in tokens (amount_tokens, owed0_tokens): quote the tokens, never the raw number. uniswap_counts is the count per holder: quote it, never count the list. This is CARD CONTEXT, not the whole portfolio: a QUESTION about the person's open positions reads every venue it names, this tool for lending and Uniswap, binance_balances for Binance, and Hyperliquid through its own read tool, and the answer is ONE table with a \"not read\" row for any venue that was not read, never an empty or \"none\" claim for it. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_positions","requestBody":{"content":{"application/json":{"schema":{"properties":{"chain":{"description":"one chain to read (base, ethereum, arbitrum, ...); omit it to read every chain this server can","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"The caller's own positions at the venues a plan can read, as context for writing a strategy: Aave and Morpho lending (collateral, debt, health) and Un…","tags":["Offered to the model"]}},"/tools/strategy_report":{"post":{"description":"Read the report of one of this owner's backtests, as the ten items a person reads (section 8.4): the verdict first, the numbers against holding, in sample against out of sample, the costs, how many variants were tried before it, the data's own flags. Pass the report id strategy_backtest gave (or the run id). A backtest runs as a job and takes minutes: until its report is stored this says so, and the answer is to wait and ask again, not to run it again. Another owner's reports are not found. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_report","requestBody":{"content":{"application/json":{"schema":{"properties":{"report_id":{"description":"the report id (or the run id) strategy_backtest returned","type":"string"}},"required":["report_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Read the report of one of this owner's backtests, as the ten items a person reads (section 8","tags":["Offered to the model"]}},"/tools/strategy_save_draft":{"post":{"description":"Save a card and its measures as a DRAFT version in this owner's lineage, so the person can open it in the console, change its numbers and approve it. A draft is not live: nothing runs it, no money moves, and approving it is the person's, and a card needs a BUDGET line to go live (except an EVERY card that only collects fees and spends what it collected). It is checked first, and a card that does not compile is not saved: the errors come back with their positions. Without strategy_id this starts a new lineage named name; with the strategy_id of an earlier save it adds the next version to that lineage (another owner's lineage is not found). Run strategy_backtest on the version it returns, except for a card on a venue (`ON Binance`), which has no backtest and is armed from the card. A card on a venue is saved only when it states every bound it runs under (its BUDGET, `stop after N runs`, `expires after N days`): one that leaves any unset is not saved, and the answer names what to ask the person. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_save_draft","requestBody":{"content":{"application/json":{"schema":{"properties":{"card":{"description":"the card's text","type":"string"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"},"name":{"description":"a title for a new lineage (default: the card's own PLAN title)","type":"string"},"strategy_id":{"description":"the lineage of an earlier save, to add a version to it","type":"string"}},"required":["card","measures"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Save a card and its measures as a DRAFT version in this owner's lineage, so the person can open it in the console, change its numbers and approve it","tags":["Offered to the model"]}},"/tools/strategy_save_run_once":{"post":{"description":"Save a card that RUNS ONCE (no WHEN, EVERY or HOLD: `DO take 10 USDC from my wallet` then `THEN swap it for cbBTC, ...`) as the one workflow the person's Start press runs. A move of what the operating address already holds on the card's chain takes nothing from the wallet (`DO bridge 10 USDC to Base`): a take is for what it lacks, or when the person names their wallet. Give the card exactly as last checked; the host lowers it, sizes a share of a balance (`100% of my WETH`) from the operating address now, checks the plan as a saved workflow is checked and stores it. Nothing runs and nothing is spent here: the person presses Start, and their consent is the card's derived line and the exact amounts this answer states. Do not call save_workflow or run_workflow for it, and do not save a draft or start a backtest of it. A card that waits on a condition is refused here: it is a draft, backtested and approved. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_save_run_once","requestBody":{"content":{"application/json":{"schema":{"properties":{"amounts":{"additionalProperties":{"type":"string"},"description":"only for a card that leaves an amount as a range (`[0.001 – 10 cbBTC]`) or a band's width as one (`[1% – 50%]-wide`): the value the PERSON chose for each, by the slot name this tool's answer gives, an amount in whole tokens (`{\"amount\": \"0.5\"}`) and a width as a percentage (`{\"width\": \"10%\"}`). Never choose one yourself: ask the person, and give exactly what they said.","type":"object"},"card":{"description":"the card's text, exactly as strategy_check_card last accepted it","type":"string"},"measures":{"description":"the measures the card reads, each {\"name\": \"bull_belief\", \"source\": \"//@version=6 ...\"}; name is the file name in error positions. Only the ones it reads: [] for a card that reads none, and a measure it does not read is refused","items":{"properties":{"name":{"type":"string"},"source":{"type":"string"}},"required":["source"],"type":"object"},"type":"array"}},"required":["card"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Save a card that RUNS ONCE (no WHEN, EVERY or HOLD: `DO take 10 USDC from my wallet` then `THEN swap it for cbBTC, ","tags":["Offered to the model"]}},"/tools/strategy_vocab":{"post":{"description":"What a strategy card or a measure may use, generated from the compiler. Every answer starts with a short header: the measure units (the only values //@dl.unit takes), a measure skeleton and the card's lines. With query (a word such as rsi, ema, swap, or what it does) it returns the functions, card forms and actions that match, each in full; with no query it returns the header and the names, which you then ask for by query; a word no card or measure name holds is searched in the data feeds. section card or measure keeps one of the two; section feeds is the data feeds a measure may read with dl.feed and strategy_feed_now reads the value of (funding and its median across venues, open interest, volatility, liquidations, a pool's hourly trading volume, macro, views and the rest): the way to find the key for a data question, searched by query (a key's words, its family, what people call it such as open interest, MVRV, treasury, implied vol or TVL, a pool's pair) or listed one family at a time (the first word of a key, price for price.btc.1d.close), a page of one line a key, narrowed by query; each key line says live (the feed runtime produces it: a card and strategy_feed_now read it) or history only (a backtest reads it, a live card and strategy_feed_now refuse it). Ask for what you are about to write, and again when a check says something is not known. Nothing is spent. Cards only: plan the steps and write each as a card line; the compiler makes the plan JSON, so never write plan JSON for a card.","operationId":"strategy_vocab","requestBody":{"content":{"application/json":{"schema":{"properties":{"family":{"description":"for section feeds: only the keys of this family, the key's first word (price, onchain, dvol, ...), narrowed by query when one is given","type":"string"},"limit":{"description":"for a family: how many keys to list (default 40, at most 150); the answer says how many more there are","type":"integer"},"query":{"description":"a word to look for in the names, signatures and descriptions of the card and measure vocabulary, such as rsi or swap, or in the feed keys (funding); the matches come back in full","type":"string"},"section":{"description":"which part of the vocabulary (default: card and measure)","enum":["card","measure","feeds"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"What a strategy card or a measure may use, generated from the compiler","tags":["Offered to the model"]}},"/tools/validate_workflow":{"post":{"description":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a card, and the compiler makes its plan JSON. This tool is for the families no card covers yet (today a card covers a conditional buy or sell of one asset against one stablecoin, sized as a share; internal/planlang/cardcoverage has the numbers). Check a workflow against the real compiler WITHOUT running it. Returns VALID, or REJECTED with the reason.\n\nFOR CHECKING WITHOUT STORING. save_workflow runs this same compiler and refuses anything that would not run, with the same message — so validating a plan you believe is right and then saving it checks it twice. Use this when you want to test a plan, or a change to one, WITHOUT committing it; otherwise save, and fix what the save says.\n\nTO CHECK A PLAN THAT IS ALREADY STORED, pass `task` and NO document: {\"task\": \"swap-usdc-weth-a1b2c3\"}. It is read from the store, so nothing is retyped — never copy a document out of get_workflow and back into here, because a plan whose Owner is one character out derives a different account and every balance it was sized against is somebody else's. `amounts` is not needed in that mode: a stored plan was compared against them when it was saved.","operationId":"validate_workflow","requestBody":{"content":{"application/json":{"schema":{"properties":{"amounts":{"description":"REQUIRED. What each step moves, in the ASSET'S OWN UNITS — one row per step that has a written Amount. This is compared against the raw integers in `plan`, and a disagreement of ten times or more is refused. It is a MAGNITUDE check, so ordinary headroom, a fee or a rounded figure all pass: write what the person said and do not tune it to the document. (1) Write it as the person said it: \"250.00\", not the raw integer. (2) Take the figure from the REQUEST, not by dividing your own Amounts back out — the point is to catch a conversion that went wrong. (3) For a property.buy step state what it SPENDS (params.max_spend, in params.currency), never the share count. (4) Steps whose amount is an earlier step's output need NO row and must not be given an invented one, and neither do rent.redeem and rent.claim_position, whose Amount is a token id rather than money. A refusal names every step it wants a row for, so nothing has to be guessed.","items":{"properties":{"asset":{"description":"the symbol that figure is counted in — USDC, cbBTC, WETH. The step's own asset, which for a swap is what it SPENDS","type":"string"},"moves":{"description":"the amount in the asset's own units, as a decimal STRING: \"1000.751\", \"0.05\". Not raw units, not a range","type":"string"},"step":{"description":"the step's ID, exactly as the plan spells it","type":"string"}},"required":["step","moves","asset"],"type":"object"},"type":"array"},"plan":{"description":"The whole workflow document: {\"TaskID\":\"...\",\"Owner\":\"0x...\",\"Revision\":1,\"Steps\":[...]}","type":"object"},"task":{"description":"the TaskID of a plan ALREADY STORED. Pass this INSTEAD of `plan` and `amounts` to check what is stored, without retyping it. Exact, not fuzzy.","type":"string"}},"required":["plan","amounts"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"FOR A STRATEGY, WRITE A CARD INSTEAD (the strategy_* tools): a request with a rule, a condition or a repeat (\"when\", \"every\", \"after a drop\") is a car…","tags":["Offered to the model"]}},"/tools/watch_run":{"post":{"description":"Wait for a running workflow to make progress, then report it. Blocks until a step changes state or the run finishes, so every answer has news in it. Call it repeatedly after submitting, and tell the person what each one says.","operationId":"watch_run","requestBody":{"content":{"application/json":{"schema":{"properties":{"revision":{"type":"string"},"run":{"type":"string"},"task":{"type":"string"},"wait_seconds":{"description":"how long to wait for news; default 45, max 120","type":"number"}},"required":["task"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"One text block holding the tool's answer.","items":{"properties":{"text":{"type":"string"},"type":{"enum":["text"],"type":"string"}},"type":"object"},"type":"array"},"isError":{"description":"The tool refused. The reason is in content.","type":"boolean"}},"type":"object"}}},"description":"The tool's answer, as text the caller acts on. A tool that refuses answers here too, with isError set — a model can act on \"REJECTED: step swap refers to a step that does not exist\" and can do nothing with a transport fault."}},"summary":"Wait for a running workflow to make progress, then report it","tags":["Offered to the model"]}}},"servers":[],"tags":[{"description":"In the tool list, with the full schema in every prompt.","name":"Offered to the model"},{"description":"Deferred. The model finds these through `find_tool` and calls them by name; the schema is fetched when it is needed rather than carried in every prompt.","name":"Found on demand"},{"description":"Run server-side, before a turn. Never offered to a model — a model that learned one existed could imitate its answer or argue with it.","name":"Called by the platform"}]}