demo · Commerce · JSON · API for agents
Get all available store items
{
"name": "get_all_store_items",
"kind": "read",
"impl": "imperative",
"description": "Get all available store items",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
}
}Add an item to the shopping cart
{
"name": "add_to_cart",
"kind": "write",
"impl": "imperative",
"description": "Add an item to the shopping cart",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "The ID of the item to add to the cart"
}
},
"required": [
"id"
],
"additionalProperties": false
}
}Display the current shopping cart items to user
{
"name": "display_cart",
"kind": "action",
"impl": "imperative",
"description": "Display the current shopping cart items to user",
"inputSchema": {
"type": "object",
"properties": {}
}
}Purchase the current shopping cart items
{
"name": "purchase_cart",
"kind": "action",
"impl": "imperative",
"description": "Purchase the current shopping cart items",
"inputSchema": {
"type": "object",
"properties": {}
}
}Get available filter options for products
{
"name": "get_filter_options",
"kind": "read",
"impl": "imperative",
"description": "Get available filter options for products",
"inputSchema": {
"type": "object",
"properties": {}
}
}Filter products by brand
{
"name": "filter_by_brand",
"kind": "action",
"impl": "imperative",
"description": "Filter products by brand",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"brand": {
"type": "string",
"description": "The brand to filter by"
}
},
"required": [
"brand"
],
"additionalProperties": false
}
}Filter products by gender (e.g., MEN, WOMEN, KIDS)
{
"name": "filter_by_gender",
"kind": "action",
"impl": "imperative",
"description": "Filter products by gender (e.g., MEN, WOMEN, KIDS)",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"gender": {
"type": "string",
"description": "The gender to filter by"
}
},
"required": [
"gender"
],
"additionalProperties": false
}
}Filter products by category
{
"name": "filter_by_category",
"kind": "action",
"impl": "imperative",
"description": "Filter products by category",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "The category to filter by"
}
},
"required": [
"category"
],
"additionalProperties": false
}
}