Skip to main content
Glama

Trustbase Lab · Trusted Data Infrastructure for the AI Era

calculate_cbam_cost

calculate_cbam_cost
Read-onlyIdempotent

Purpose: a transparent CBAM cost estimate - embedded emissions multiplied by a carbon price. Guidelines: supply emission_intensity (tCO2e per tonne of goods) and quantity (tonnes); optionally supply carbon_price, otherwise the latest EU ETS EUA spot snapshot in the dataset is used and cited in the output. Use for order-of-magnitude questions about CBAM exposure. Limits: this is ONLY the emissions-times-price multiplication - it excludes free-allocation deduction, third-country carbon-price deduction and default-value mark-ups, so the result is NOT a declarable amount and is not advice; the emission intensity is your input, not our data. Ex: calculate_cbam_cost(emission_intensity=1.8, quantity=5000), calculate_cbam_cost(emission_intensity=2.1, quantity=1200, carbon_price=85).

Input Schema

NameRequiredDescriptionDefault
languageNo输出语言zh
quantityYes商品数量(吨),须 >0
carbon_priceNo碳价(可选);不填则取库内最新 EU ETS EUA 现货快照并在输出中标注来源
response_formatNoOutput format: 'markdown' (default, human-readable) or 'json' (machine-readable).markdown
emission_intensityYes隐含排放强度(吨 CO2e / 吨商品),由调用方提供

Output Schema

NameRequiredDescriptionDefault
textYesHuman-readable result (markdown, or a JSON string when response_format=json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the key hidden behavior: when carbon_price is omitted, the tool falls back to the latest EU ETS EUA spot snapshot and cites it in the output. It also states the emission intensity is caller-supplied data rather than the service's own, which materially changes how the result should be trusted.

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?

Labeled sections (Purpose / Guidelines / Limits / Ex) make it scannable and the core formula is front-loaded. The Limits paragraph is dense but every clause carries a material caveat, so it is only mildly longer than needed.

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 calculation tool with an output schema already covering the return payload, the description supplies everything else an agent needs: inputs, the default-price behavior, scope exclusions, and example calls. Nothing required to invoke or interpret the tool correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds units and provenance semantics (tCO2e per tonne, tonnes, optional price with a cited fallback) plus two concrete example invocations that disambiguate argument meaning. It slightly exceeds what the schema alone conveys.

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 precise verb+resource and even the formula ('embedded emissions multiplied by a carbon price'), which uniquely separates it from siblings like compare_carbon_prices or get_cbam_timeline. An agent can tell instantly what it computes and what it does not.

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?

It gives explicit usage context ('order-of-magnitude questions about CBAM exposure') and a clear exclusion zone (not a declarable amount, excludes free-allocation and third-country deductions, not advice). It stops short of naming a sibling tool for the declarable calculation, so routing is implied rather than explicit.

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.

Resources