Get a user's listings
get_user_listingsList paginated user listings filtered by state (active, finished, inactive, expired, hidden).
Instructions
List a user's listings, filtered by state (GET /users/:user/listings and its finished/inactive/expired/hidden variants). Paginated. Use state: active for the public/visible listings. The user is a username for active listings and a user id for the other states, matching the OLX API.
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": {
"user": "<user>"
},
"name": "get_user_listings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number for paginated results | |
| user | Yes | Username (for active) or user id (for other states) | |
| state | No | Which set of the user's listings to return | active |