Publish a listing
publish_listingPublish a Cyclesite listing on the user's behalf. Multi-step: the first call (no draftId) returns step:'photos_required' with a phone-friendly photo upload URL for the seller. Once 3+ photos are uploaded, a call with the same draftId returns either step:'live' (listing is free, no payment needed) or step:'payment_required' with a checkout URL. Idempotent: each call with the same draftId returns the current step. Requires OAuth scope listings:publish. When the listing goes live the seller receives a confirmation email with a 24h undo link. Example: 'sell my Trek Domane'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "publish_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | UK city. | |
| year | No | ||
| brand | No | ||
| model | No | ||
| title | No | Listing title (10-160 chars). | |
| draftId | No | Returned by a previous call. Omit on first call. | |
| isEbike | No | True for an electric bike. | |
| category | No | ||
| groupset | No | ||
| priceGbp | No | ||
| willShip | No | ||
| condition | No | ||
| frameSize | No | ||
| motorBrand | No | E-bike motor make, e.g. "Bosch", "Shimano", "Bafang". | |
| motorModel | No | E-bike motor model, e.g. "Performance Line CX". | |
| description | No | Listing description (30-5000 chars). | |
| frameSerial | No | Frame/serial number — runs a stolen-bike check before publish. | |
| knownIssues | No | ||
| batteryCycles | No | Charge cycles as the seller reports them. | |
| itemCondition | No | Whether the bike is new (never ridden) or used. Defaults to used. | |
| motorPosition | No | ||
| ebikeBatteryWh | No | Battery capacity in watt-hours (100-3000). | |
| rangeEstimateMiles | No | Range the seller claims on one charge, in miles. | |
| batteryHealthPercent | No | Battery health as the seller reports it, 0-100. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | ||
| draftId | No | ||
| message | Yes | ||
| listingUrl | No | ||
| paymentUrl | No | ||
| photosNeeded | No | ||
| listingFeeGbp | No | Price in GBP. | |
| photoUploadUrl | No |