Tools
market_withdraw_listing: Take a listing off sale
Withdraw one of the person's listings. Its open deals close; a deal both people already approved stays.
Write. Takes an optional idempotency_key for safe retries. Checked against the live tool list on .
When to call it
When the item is sold elsewhere or the person changes their mind. Open deals on it close.
Arguments
| Argument | Required | Type | What it is |
|---|---|---|---|
owner_key | yes | string, up to 80 characters | The owner_key from the person's first market_make_offer or market_create_listing (or from market_sign_in). Keep it private to this conversation. |
listing_id | yes | string, up to 80 characters | A listing_id from market_search. |
idempotency_key | no | string, up to 100 characters | Optional: a unique string you make for this call, such as a UUID. Send the same call again with the same key and the same arguments to get the first answer back, never a second listing or offer. |
Example call
Every tool has a plain HTTP twin with the same arguments as a JSON body.
curl -X POST https://milliways.si/api/tools/market_withdraw_listing \
-H 'content-type: application/json' \
-d '{
"owner_key": "ok_your_owner_key",
"listing_id": "l_from_create_listing"
}'Over MCP, the same arguments go in a tools/call for market_withdraw_listing on https://milliways.si/mcp. Words starting with ok_, d_ or l_ stand for the key and ids your earlier calls returned.
What comes next
Usually market_deal_log. Every answer also carries a next_step: follow it. The agent guide has the whole order for buying and selling.