Create a listing
create_listingUse this when the user wants to offer a good or service for barter on TraydStar. Publishes a public listing on their account and returns its id. Photos can't be attached here; the user can add them on the website. Confirm the title, description, and category with the user before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"description": "<description>",
"type": "<type>",
"category": "<category>"
},
"name": "create_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | offer (default) for something the user has; wanted for something the user is looking for, with want fields describing what they would give | |
| type | Yes | GOOD for a physical item, SERVICE for work, BOTH if it includes both | |
| draft | No | true saves it unpublished; publish later with set_listing_status | |
| ships | No | The user will ship it (default false) | |
| title | Yes | Short name of what is offered | |
| pickup | No | Can be handed over in person (default true) | |
| details | No | Only for Trading Cards and Sneakers listings: the facts collectors trade on. Use the card fields for Trading Cards and the sneaker fields for Sneakers. | |
| category | Yes | The category it belongs in | |
| condition | No | Condition, for physical goods | |
| want_tags | No | Short tags for what the user wants in exchange | |
| description | Yes | What is offered, in the user's words | |
| subcategory | No | A subcategory of that category, if one applies. Cameras & Photo: Camera Bodies, Lenses, Film Cameras, Lighting & Flash, Tripods & Support, Bags & Accessories, Video & Drones. Trading Cards: Pokémon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Lorcana, Other TCG, Baseball, Basketball, Football, Hockey, Soccer, Other Sports, Sealed Product. Sneakers: Jordan, Nike, Adidas, New Balance, Asics, Other Brands. Collectibles: Coins & Currency, Comics, Toys & Figures, LEGO, Vinyl, Sports Memorabilia, Other Collectibles. | |
| location_city | No | City shown on the listing | |
| stated_value_usd | No | The user's own estimate of its value in US dollars, used to match fair trades | |
| want_description | No | What the user would like in exchange |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | No |