Sponsor listing (PAID)
sponsor_listingSponsor a listing with specified type, duration, and refresh interval. Displays total cost for user confirmation before spending credits.
Instructions
Purchase sponsorship/promotion for a listing (POST /listings/:id/sponsore). THIS SPENDS OLX CREDITS. Call get_sponsor_price first, present the total to the user, and only proceed after explicit confirmation.
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": {
"id": "<id>",
"type": "<type>",
"days": "<days>",
"refresh_every": "<refresh_every>"
},
"name": "sponsor_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Listing id | |
| days | Yes | Duration in days | |
| type | Yes | Sponsorship type: 0, 1 or 2 | |
| locations | No | Promotion locations, e.g. ["homepage"] | |
| refresh_every | Yes | Auto-refresh interval in hours (0 = none) |