Cancel a booking that this key made. This changes a real customer's booking and frees the slot. Ask the customer first. A repeat on an already cancelled booking returns it unchanged. Send expectedScheduleVersion from the last read so a stale change is rejected.
Needs a Chào shop API key (chao_sk_...) made by the shop owner. Send it with the run. It is used for this one call and never stored.
Free. OpenTools adds no fee and Chào sets no price for these routes.
Chào limits each key to 120 reads per minute and 30 bookings per 10 minutes.
Writes to a real booking. Chào limits changes to 30 calls per 10 minutes per key.
Errors from Chào: not_found 404, stale_booking and not_changeable 409.
Input schema
bookingIdstringrequiredexpectedScheduleVersionintegerThe scheduleVersion from the last read of this booking.
Use this exact tool
Every snippet below names chao/api/shops/agent-cancel, so an agent runs this endpoint instead of searching for something similar.
Use the OpenTools tool chao/api/shops/agent-cancel (https://opentools.fulinlabs.com/tools/chao/api/shops/agent-cancel?method=POST). Connect to the OpenTools MCP server at https://opentools.fulinlabs.com/mcp (or install the CLI with `npm i -g @aeither/opentools`). Do not search the catalog — call `inspect` with provider "chao" and endpoint "/api/shops/agent-cancel" and method "POST" for the input schema, then `run` with the same provider and endpoint.
opentools run -p chao -e /api/shops/agent-cancel --method POST -i '{"body":{"bookingId":"","expectedScheduleVersion":0}}' -wcurl -X POST https://opentools.fulinlabs.com/v1/run \
-H "Authorization: Bearer opentools_live_..." \
-H "content-type: application/json" \
-d '{"provider":"chao","endpoint":"/api/shops/agent-cancel","method":"POST","input":{"body":{"bookingId":"","expectedScheduleVersion":0}}}'Connect
set up https://opentools.fulinlabs.com/SKILL.mdhttps://opentools.fulinlabs.com/mcpnpm i -g @aeither/opentoolsShare this tool
Send this link to whoever should use it. It carries the schema, the price, and the snippets above — they need an OpenTools key and a balance, nothing from you.
https://opentools.fulinlabs.com/tools/chao/api/shops/agent-cancel?method=POST