AgentSolis

v0.2.0
io.github.Doublecheese1/agentsolis Checked 9 hours ago Published 8 days ago

Wallet-free escrow sandbox, plus unsigned USDC deal prep on Arbitrum One.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_config Get AgentSolis config

Check whether AgentSolis is open for real deals. Use before prepare_deal. Reads the public config and the contract (paused, public access, fee) and lists any drift between them. No inputs. Read-only.

quote_fee Quote protocol fee

Work out what a deal costs. Use when someone asks about fees or deposits. Returns the fee (1.5% of the job, max 50 USDC), buyer deposit, seller payout and Buyer Review bond. Example: amount_usdc '100', mode 'automatic', starter 'buyer' gives fee 1.50 and deposit 101.50. Read-only.

ParameterTypeDescription
amount_usdc *stringJob amount in USDC, e.g. '100' or '12.5'. Automatic min 10, Buyer Review min 100.
mode *stringautomatic: seller is paid unless the buyer objects in time. buyer_review: buyer approves, with a bond each side.
starter *stringWho starts the deal. The starter pays the fee.
buyer_addressstringOptional buyer address. If set, the fee is also checked against the contract.

prepare_deal Prepare an unsigned buyer-started deal

Build a real, unsigned buyer-started deal on Arbitrum One: a USDC approve and a proposeDeal transaction for the buyer's wallet to sign. Use only when the user wants a real deal; to just try the flow, use sandbox_create_deal. Nothing is signed or sent. Refuses when funding is paused or closed.

ParameterTypeDescription
acceptance_window *integerSeconds the seller has to accept. 600 to 2592000.
amount_usdc *stringJob amount in USDC, e.g. '100'.
arbitration_window *integerSeconds for arbitration. Buyer Review at least 604800.
buyer *stringChecksummed buyer address. This wallet would sign. The tool does not sign.
decision_window *integerSeconds the buyer has to decide. Automatic at least 86400, Buyer Review at least 172800.
delivery_window *integerSeconds the seller has to deliver. 600 to 2592000.
fallback_seller_bps *integerSeller share if the deal falls back, in basis points. 5000 = 50%. Automatic needs at least 5000.
manifest *stringAgreed deal text. It is hashed locally and is not stored by this tool.
mode *string
seller *stringChecksummed seller address, different from the buyer.
saltstringOptional 0x-prefixed 32-byte salt. A random salt is used when omitted.

get_deal_status Read deal status

Look up a real on-chain deal by its 0x deal id. Returns state, parties, amounts, deadlines and who can act next. An unknown id returns not_found. Not for sandbox ids; use sandbox_get_deal for those. Read-only.

ParameterTypeDescription
deal_id *string0x-prefixed 32-byte deal id.
chainstringMust match this process. Defaults to the configured chain.
escrowstringDefaults to v2. v1-legacy is read-only and only on Arbitrum One.

sandbox_create_deal Sandbox: create a simulated deal (no wallet)

Try AgentSolis with no wallet and no USDC. Creates a simulated, already-funded deal in memory and returns a sandbox deal id. Use this first when someone wants to see how the escrow flow works. Example: amount_usdc '25', job_description 'Write a 500-word blog post'. SANDBOX - simulated, no real funds.

ParameterTypeDescription
amount_usdc *stringPretend job amount in USDC, e.g. '25'. Automatic min 10, Buyer Review min 100.
job_description *stringShort description of the pretend job.
modestringDefaults to automatic.

sandbox_advance_deal Sandbox: move a simulated deal forward

Move a sandbox deal to its next step. Actions: 'deliver' (seller delivers), 'release' (buyer pays the seller, fee charged), 'refund' (before delivery; buyer gets everything back, no fee). The reply lists the allowed next actions. SANDBOX - simulated, no real funds.

ParameterTypeDescription
action *string
deal_id *stringSandbox deal id from sandbox_create_deal, e.g. 'sandbox-1a2b3c4d5e6f'.

sandbox_get_deal Sandbox: read a simulated deal

Read a sandbox deal: state, amounts, payout, history and allowed next actions. Sandbox deals live only while this server runs. SANDBOX - simulated, no real funds.

ParameterTypeDescription
deal_id *stringSandbox deal id from sandbox_create_deal.