agora_search | Search for products matching the query in Agora.
Args:
q: The search query.
count: The number of products to return per page.
page: The page number.
price_min: The minimum price. Optional
price_max: The maximum price. Optional
sort: The sort field: price:relevance.
order: The sort order: asc or desc.
Returns:
The search results. |
agora_get_product_detail | Get details for a specific product in Agora.
Args:
slug: The product slug, it usually looks something like 'royal-blue-waxed-shoe-laces-6f2049ef-0d08-4a79-8937-025bb596092f-1718242165922'
Returns:
The product details. |
agora_get_payment_offers | Get the payment offers for a product in Agora. Some products do not have variants, in such cases use the product_id as variant_id too.
Before calling this tool, check if the user has already provided the shipping address and user information.
Otherwise, ask the user for the shipping address and user information.
If the user does not provide an `addressName`, use the `firstname` and `lastname` to populate it.
Args:
slug: The product slug.
product_id: The product ID as str delimited by escaped double quotes
variant_id: The product variant ID as str delimited by escaped double quotes
quantity: The quantity to purchase.
shipping_address: The shipping address.
user: The user information.
Example:
product_id = "\"1234567890\""
variant_id = "\"1234567890\""
shipping_address = {
"addressName": "John Doe",
"addressFirst": "123 Main St",
"city": "New York",
"state": "NY",
"country": "US",
"zipCode": "10001"
}
user = {
"firstname": "John",
"lastname": "Doe",
"email": "john@example.com",
}
Returns:
L402 offer that can be paid by L402-compatible clients. |
agora_get_order | Get details for a specific order in Agora.
Args:
order_id: The order ID.
Returns:
The order details. |
agora_get_user_orders | Get all orders for the current user.
Returns:
A list of orders. |
agora_get_user_info | Get the current user's profile and shipping addresses in Agora.
Returns:
Dict containing user profile info (firstname, lastname, email) and list of shipping addresses |