Skip to main content
Glama
hanjiajiade

trade-agent-mcp

by hanjiajiade

calc_quotation

Calculate export quotations and profit margins from product cost and trade terms, returning FOB/CIF/CFR prices, landed cost, suggested selling price, and profit.

Instructions

外贸报价/利润核算。给定成本与贸易术语,算出 FOB/CIF/CFR、到岸成本、建议售价与利润。

Args: product_cost: 工厂成本/采购成本(EXW 或出厂价),成本币种。 currency: 成本币种(CNY/USD/EUR)。 moq: 最小起订量(用于单价展示)。 incoterm: 贸易术语 EXW/FOB/CIF/CFR/DDP。 freight_to_port: 出厂到起运港本地费用(EXW 时填入)。 international_freight: 国际运费(到目的港)。 insurance: 保险费。 duty_rate: 目的国关税税率(0-1,如 0.1 表示 10%)。 other_landed_cost: 其他到岸成本(清关/仓储/内陆派送等)。 target_margin: 目标毛利率(0-1)。 exchange_rate: 成本币种 -> 报价币种 汇率(同币=1)。 quote_currency: 报价币种(留空=与成本币种相同)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moqNo
currencyNoCNY
incotermNoFOB
duty_rateNo
insuranceNo
product_costYes
exchange_rateNo
target_marginNo
quote_currencyNo
freight_to_portNo
other_landed_costNo
international_freightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden of behavioral disclosure. It does disclose that the tool computes multiple quotation and profit outputs from cost and incoterm inputs. However, it does not explain exact formula behavior, how incoterms alter the calculation, or how zero/default fields are treated, leaving some behavioral uncertainty.

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 opens with a concise Chinese summary and then presents a scannable parameter list. The length is justified by the 12 parameters, and there is no unnecessary prose.

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

Completeness4/5

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

For a complex 12-parameter calculator with no output schema and no annotations, the description covers input semantics thoroughly and states the output categories. It does not define the exact output structure or detailed per-incoterm formulas, but an agent has enough context to invoke the tool correctly.

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?

The schema has no property descriptions, but the description's Args section defines all 12 parameters with meaningful details: duty_rate is a 0-1 range, exchange_rate direction is specified, and quote_currency defaults to the cost currency when empty. This fully compensates for the missing schema-level documentation.

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 uses a specific verb ('算出') and resource ('外贸报价/利润核算'), and explicitly names the outputs: FOB/CIF/CFR, landed cost, suggested price, and profit. This makes the tool clearly distinguishable from the unrelated sibling research and outreach tools.

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

Usage Guidelines4/5

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

The summary clearly states the tool is for foreign-trade quotation and profit calculation, giving a clear usage context. It does not explicitly name alternatives or when-not-to-use, but no sibling tool performs pricing calculations, so the ambiguity is minimal.

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