PackValue Tools
Six deterministic value tools for shopping and procurement agents.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"packvalue-tools": {
"url": "https://lsi-packvalue-mcp-r1.umagestaointeligente.workers.dev/mcp"
}
}
}遠端端點
https://lsi-packvalue-mcp-r1.umagestaointeligente.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(6)
⚪normalize_pack_value(label, text, price, currency, shipping, ...)
Normalize a product pack such as 6x330 ml or 3x200 g into comparable quantity and effective unit price. Deterministic; no LLM is used for the calculation.
輸入結構描述
{
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 160
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"price": {
"type": "number",
"minimum": 0
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
},
"shipping": {
"default": 0,
"type": "number",
"minimum": 0
},
"tax": {
"default": 0,
"type": "number",
"minimum": 0
},
"discount": {
"default": 0,
"type": "number",
"minimum": 0
},
"yield_pct": {
"default": 100,
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100
},
"dilution": {
"default": 1,
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"text",
"price"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}⚪compare_pack_values(offers)
Compare 2 to 25 shopping or procurement offers with compatible dimensions and currency, including shipping, tax, discount, yield and dilution adjustments.
輸入結構描述
{
"type": "object",
"properties": {
"offers": {
"minItems": 2,
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 160
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"price": {
"type": "number",
"minimum": 0
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
},
"shipping": {
"default": 0,
"type": "number",
"minimum": 0
},
"tax": {
"default": 0,
"type": "number",
"minimum": 0
},
"discount": {
"default": 0,
"type": "number",
"minimum": 0
},
"yield_pct": {
"default": 100,
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100
},
"dilution": {
"default": 1,
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"text",
"price"
]
}
}
},
"required": [
"offers"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢calculate_real_discount(original_price, final_price, currency)
Calculate absolute savings and effective discount percentage from original and final prices.
輸入結構描述
{
"type": "object",
"properties": {
"original_price": {
"type": "number",
"exclusiveMinimum": 0
},
"final_price": {
"type": "number",
"minimum": 0
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
}
},
"required": [
"original_price",
"final_price"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢calculate_delivered_unit_cost(item_price, quantity, shipping, tax, discount, ...)
Calculate delivered cost per unit including shipping, tax and explicit discount.
輸入結構描述
{
"type": "object",
"properties": {
"item_price": {
"type": "number",
"minimum": 0
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000000
},
"shipping": {
"default": 0,
"type": "number",
"minimum": 0
},
"tax": {
"default": 0,
"type": "number",
"minimum": 0
},
"discount": {
"default": 0,
"type": "number",
"minimum": 0
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
}
},
"required": [
"item_price",
"quantity"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢calculate_dilution_value(concentrate_volume_l, concentrate_price, added_parts_per_concentrate_part, currency)
Calculate prepared yield and effective cost after diluting a concentrate with added parts of water or another zero-cost diluent.
輸入結構描述
{
"type": "object",
"properties": {
"concentrate_volume_l": {
"type": "number",
"exclusiveMinimum": 0
},
"concentrate_price": {
"type": "number",
"minimum": 0
},
"added_parts_per_concentrate_part": {
"type": "number",
"minimum": 0,
"maximum": 1000
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
}
},
"required": [
"concentrate_volume_l",
"concentrate_price",
"added_parts_per_concentrate_part"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢calculate_buy_x_pay_y(take_units, pay_units, regular_unit_price, currency)
Calculate total paid, effective unit price and discount for buy-X-pay-Y or take-X-pay-Y promotions.
輸入結構描述
{
"type": "object",
"properties": {
"take_units": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000000
},
"pay_units": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"regular_unit_price": {
"type": "number",
"minimum": 0
},
"currency": {
"default": "USD",
"type": "string",
"maxLength": 12
}
},
"required": [
"take_units",
"pay_units",
"regular_unit_price"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據