Implementation
gradeNot graded
gradeNot graded
search_productsAction
搜尋咖啡豆。可用關鍵字(比對 name 與 flavor)、產地、烘焙度、價格上限過濾。執行後頁面篩選條件會跟著更新。
View tool JSON
{
"name": "search_products",
"kind": "act",
"impl": "imperative",
"description": "搜尋咖啡豆。可用關鍵字(比對 name 與 flavor)、產地、烘焙度、價格上限過濾。執行後頁面篩選條件會跟著更新。",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 100,
"description": "搜尋關鍵字,會比對名稱與風味描述"
},
"origin": {
"type": "string",
"enum": [
"印尼",
"哥倫比亞",
"巴拿馬",
"巴西",
"瓜地馬拉",
"肯亞",
"衣索比亞"
],
"description": "咖啡豆產地"
},
"roast": {
"type": "string",
"enum": [
"淺焙",
"中焙",
"深焙"
],
"description": "烘焙度"
},
"maxPrice": {
"type": "number",
"minimum": 0,
"maximum": 100000,
"description": "價格上限(TWD)"
}
},
"additionalProperties": false
},
"page": "/kuro-roasters-webmcp/"
}get_productAnswer
依 id 取得單一咖啡豆的完整資訊(產地、烘焙度、風味、價格)。
View tool JSON
{
"name": "get_product",
"kind": "answer",
"impl": "imperative",
"description": "依 id 取得單一咖啡豆的完整資訊(產地、烘焙度、風味、價格)。",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"enum": [
1,
2,
3,
4,
5,
6,
7,
8
],
"description": "商品 id"
}
},
"required": [
"id"
],
"additionalProperties": false
},
"page": "/kuro-roasters-webmcp/"
}add_to_cartAction
立即把指定商品與數量加入購物車,並更新使用者目前看到的購物車。
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "立即把指定商品與數量加入購物車,並更新使用者目前看到的購物車。",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"enum": [
1,
2,
3,
4,
5,
6,
7,
8
],
"description": "商品 id"
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 99,
"description": "數量,預設 1"
}
},
"required": [
"id"
],
"additionalProperties": false
},
"page": "/kuro-roasters-webmcp/"
}view_cartAnswer
取得目前購物車內容、商品數、合計金額。
View tool JSON
{
"name": "view_cart",
"kind": "answer",
"impl": "imperative",
"description": "取得目前購物車內容、商品數、合計金額。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/kuro-roasters-webmcp/"
}place_orderSensitive Action
立即把目前購物車內容送出成為一張模擬訂單;成功後會清空購物車。
View tool JSON
{
"name": "place_order",
"kind": "transact",
"impl": "imperative",
"description": "立即把目前購物車內容送出成為一張模擬訂單;成功後會清空購物車。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/kuro-roasters-webmcp/"
}