Tool tree
isha70852.github.io exposes WebMCP tools to AI agents.
Implementation
gradeNot graded
gradeNot graded
switch_tabAction
切換頁面分頁。可選擇 menu(菜單)、reservation(訂位)或 cart(購物車)。
View tool JSON
{
"name": "switch_tab",
"kind": "act",
"impl": "imperative",
"description": "切換頁面分頁。可選擇 menu(菜單)、reservation(訂位)或 cart(購物車)。",
"inputSchema": {
"type": "object",
"properties": {
"tab": {
"type": "string",
"enum": [
"menu",
"reservation",
"cart"
],
"description": "目標分頁名稱"
}
},
"required": [
"tab"
]
},
"page": "/WebMCP-Demo/"
}search_menuAnswer
搜尋菜單品項,可依關鍵字或分類篩選,回傳符合的品項清單(含 id、名稱、分類、價格、描述)。
View tool JSON
{
"name": "search_menu",
"kind": "answer",
"impl": "imperative",
"description": "搜尋菜單品項,可依關鍵字或分類篩選,回傳符合的品項清單(含 id、名稱、分類、價格、描述)。",
"inputSchema": {
"type": "object",
"properties": {
"keyword": {
"type": "string",
"description": "搜尋關鍵字(品項名稱或描述)"
},
"category": {
"type": "string",
"enum": [
"咖啡",
"茶飲",
"輕食",
"甜點"
],
"description": "分類篩選"
}
}
},
"page": "/WebMCP-Demo/"
}add_to_cartAction
將指定品項加入購物車。需提供品項 id 和數量。
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "將指定品項加入購物車。需提供品項 id 和數量。",
"inputSchema": {
"type": "object",
"properties": {
"item_id": {
"type": "number",
"description": "品項 ID(從 search_menu 取得)"
},
"quantity": {
"type": "number",
"description": "加入數量,預設為 1"
}
},
"required": [
"item_id"
]
},
"page": "/WebMCP-Demo/"
}view_cartAnswer
查看目前購物車內容,回傳品項清單和總金額。
View tool JSON
{
"name": "view_cart",
"kind": "answer",
"impl": "imperative",
"description": "查看目前購物車內容,回傳品項清單和總金額。",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/WebMCP-Demo/"
}clear_cartAction
清空購物車所有品項。
View tool JSON
{
"name": "clear_cart",
"kind": "act",
"impl": "imperative",
"description": "清空購物車所有品項。",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/WebMCP-Demo/"
}make_reservationSensitive Action
線上訂位。需填寫姓名、電話、日期、人數,備註可選填。
View tool JSON
{
"name": "make_reservation",
"kind": "transact",
"impl": "imperative",
"description": "線上訂位。需填寫姓名、電話、日期、人數,備註可選填。",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "訂位人姓名"
},
"phone": {
"type": "string",
"description": "聯絡電話"
},
"date": {
"type": "string",
"description": "訂位日期,格式 YYYY-MM-DD"
},
"party_size": {
"type": "number",
"description": "用餐人數(1~6)"
},
"note": {
"type": "string",
"description": "備註(可選)"
}
},
"required": [
"name",
"phone",
"date",
"party_size"
]
},
"page": "/WebMCP-Demo/"
}