Skip to main content
Glama

GoAI Moat Cross-Border Returns & Refund Management

Calculate Return Cost

calculate_return_cost

退货真实成本核算:单件退货成本 + 月度退货成本 + 退货吃掉多少毛利 + returnless 是否划算。

参数:

  • avg_price: 平均售价(美元)

  • return_rate_pct: 退货率(%),服装类常见 15%–20%+,标品 5%–10%

  • monthly_units: 月销量(件)

  • category: 品类(apparel/electronics/standard 等,仅用于提示退货率区间)

  • is_fba: 是否 FBA(FBA 有退货处理费+退款管理费,FBM 卖家自担退货运费)

  • restock_rate_pct: 退货可恢复可售比例(%,FBA 约 68% 卖家实测口径,须自验)

  • returnless_refund: 是否采用无退货退款(低价品退货物流成本可能高于残值)

返回:单件退货真实成本、月度退货成本、退货侵蚀的毛利、returnless 建议。 成本口径:退款管理费 $0.30/件 + 退货处理费(按尺寸阶梯取中值估算)+ 不可售部分弃置/移除费 + 商品残值损失((1-可恢复率)×售价)。均标「截至 2026 须自验」。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
is_fbaNo
categoryNoapparel
avg_priceYes
monthly_unitsNo
return_rate_pctNo
restock_rate_pctNo
returnless_refundNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does this well: it discloses the exact cost caliber/formula (refund management fee $0.30, return processing fee by size tier, disposal fee, residual value loss), distinguishes FBA vs FBM cost structures, and explicitly flags all figures as '截至 2026 须自验' (must self-verify as of 2026). For a pure calculation tool with no side effects, this is strong transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence earns its place given 7 parameters and 0% schema coverage. It is front-loaded with the purpose statement before diving into parameters, and the cost-caliber section is dense with necessary methodology. Slightly verbose, but the density justifies the length for a complex financial calculation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter calculation tool with 0% schema coverage, the description is complete: it covers all inputs with semantics, enumerates the four outputs, documents the cost methodology, and flags data-validity caveats. The output schema exists to formalize return values, so the prose need not duplicate that. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate – and it does. All 7 parameters receive semantic context beyond their schema definitions: avg_price gets units (USD), return_rate_pct gets typical category ranges (15-20% apparel, 5-10% standard), restock_rate_pct gets the FBA ~68% measured caliber, and is_fba/returnless_refund get cost-behavior explanations. This is exemplary compensation for a zero-coverage schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource ('退货真实成本核算' – return cost accounting) and enumerates four concrete outputs: per-unit cost, monthly cost, gross-profit erosion, and returnless viability. This clearly distinguishes it from siblings reduce_returns_playbook and return_policy_playbook, which target reduction and policy rather than cost calculation. An agent can immediately tell what this tool does and what it is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied through the verb '核算' (calculate/account) versus the siblings' 'reduce' and 'policy' focus, but there is no explicit statement of when to choose this tool over the alternatives or any exclusions. The description tells the agent what it computes but never says 'use this when you need cost figures; use reduce_returns_playbook when you need reduction tactics.' The differentiation is inferable, not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.