Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HTTPS_PROXYNoOptional HTTPS proxy URL to configure for the Hermes process when the KFC endpoints must be accessed through a corporate proxy.
KFC_LATITUDENoDefault latitude used for nearby-store recommendations and store-switching distance calculations.31.2304
KFC_CITY_CODENoDefault city code used by find_stores when cityCode is not provided, e.g. Beijing 110100, Shanghai 310100, Guangzhou 440100, Shenzhen 440300.310100
KFC_LONGITUDENoDefault longitude used for nearby-store recommendations and store-switching distance calculations.121.4737
KFC_STATE_DIRNoDirectory for session cookies, sessionId, menu cache, and cart state.~/.kfc-cn-mcp
KFC_HTTP_TIMEOUT_MSNoTimeout in milliseconds for each HTTP request to KFC endpoints.20000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

KFC China ordering. Order flow: find_stores -> select_store -> search_menu/get_item -> cart_add -> preview_order -> obtain explicit user confirmation -> place_order(confirm=true, phone, previewToken, expectedTotalCents). Prices are in cents in JSON and formatted in price. This server does not handle payment; payment links and cross-session visibility are experimental.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_storesA

Find KFC China restaurants by 门店关键词 + 城市国标码 (gbCityCode, e.g. 310100 = Shanghai) or by latitude/longitude. Returns storeCode you pass to select_store. 查询肯德基门店,返回 storeCode。

select_storeA

Bind the ordering session to one KFC China store by storeCode and load its live menu. 选定门店并加载菜单;之后所有购物车/下单都针对该门店。

get_menuA

List the selected store menu: categories with item counts, or all items of one category. 查看菜单分类或某个分类下的餐品(linkId/价格/是否需要选规格)。

search_menuB

Fuzzy-search dishes in the selected store menu by Chinese name/description. 按中文名/描述搜索餐品,返回 linkId、价格、是否需要选规格。

get_itemB

Get dish detail plus combo rounds (套餐可选内容) and option groups. 查商品详情;套餐会返回 comboRounds(roundId、可选商品、最少/最多份数)。

cart_addA

Add dishes to the cart (套餐可传 selections;不传则按套餐最少份数自动选择). 加购;数量累加,套餐会自动选默认规格。

cart_set_quantityA

Set the quantity of one cart line (0 removes it). 修改购物车某一行的数量,0 表示删除;lineKey 来自 cart_view。

cart_removeA

Remove one line from the cart by lineKey or linkId. 删除购物车中的一行。

cart_clearB

Remove every dish from the cart. 清空购物车。

cart_viewA

Show cart lines, quantities and total. Set refresh=true to verify with KFC. 查看购物车,可从服务端刷新。

preview_orderA

Server-side price/stock validation before ordering and returns a local previewToken for place_order. 结算预校验,返回金额、门店、服务端账号登录状态和 previewToken(10 分钟内有效);不保证服务端锁价。

place_orderA

Submit the previewed order to KFC China. Requires explicit user confirmation, phone, previewToken and expectedTotalCents. This may create a real unpaid order; payment and cross-session visibility are not verified. 提交可能产生真实未支付订单,必须由用户明确确认。

resolve_uncertain_submissionA

Clear the retry guard ONLY after the user personally checks KFC and explicitly confirms the prior order was not created, is closed, or has been paid. This does not query or cancel an order.

order_statusA

Check the KFC preorder order detail status using cashierOrderId; falls back to the settlement status endpoint. 查询预点餐订单状态;可见性和支付需用户在官方页面核对。

session_statusA

Show current store, cart, preview and session age for troubleshooting. 查看当前会话/门店/购物车状态。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 15 tools

Disambiguation4/5

The set splits cleanly into store discovery (find_stores/select_store), menu browsing (get_menu/search_menu/get_item), cart mutation (cart_add/cart_set_quantity/cart_remove/cart_clear/cart_view), and order lifecycle (preview_order/place_order/order_status/resolve_uncertain_submission/session_status). The only mild overlaps are get_menu vs search_menu vs get_item and cart_view vs session_status, but the descriptions make the boundaries clear.

Naming Consistency3/5

Most names follow verb_noun (get_item, find_stores, select_store, get_menu, search_menu, place_order, order_status, preview_order), but the cart family uses a noun_verb prefix pattern (cart_add, cart_view, cart_clear), and resolve_uncertain_submission breaks the pattern further. Each group is internally readable, but the two conventions coexist.

Tool Count5/5

Fifteen tools is well within the healthy range and each one maps to a distinct step in the ordering workflow: locate store, load menu, inspect item, mutate cart, preview, submit, verify. No obviously redundant or filler tools.

Completeness4/5

The end-to-end flow from store lookup through menu browsing, cart management, preview, submission, and status check is covered, plus a session troubleshooting tool. The notable gap is order cancellation/order history — the set warns that place_order may create a real unpaid order yet provides no tool to cancel or list past orders.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues