Skip to main content
Glama

Taiwan Carbon Open Data (Unofficial)

Compare emissions

compare_emissions
Read-onlyIdempotent

Compare two calculations (for example two years). Separates the effect of changed activity data from the effect of a changed factor, and flags when the calculation method differs so the difference is not read as an actual reduction. Either side may be a refrigerant blend such as R-410A (refrigerant_blend with the user-supplied composition instead of factor_id). Two blends with the same components are split component by component; blends with different components, or a blend against a single factor, get only the difference, because a blend has no official factor of its own. 比較兩筆計算(例如不同年度)。區分活動量改變與排放係數改變的影響;計算方法不同時會標示,避免把差異誤讀為實際減碳成效。兩邊都可以是混合冷媒(如 R-410A,以 refrigerant_blend 提供使用者確認過的成分比例,不給 factor_id)。成分相同的兩個混合冷媒逐成分拆解;成分不同,或單一係數對混合冷媒,只回差額,因為混合冷媒沒有官方公布的單一係數。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "baseline": "<baseline>",
      "comparison": "<comparison>"
    },
    "name": "compare_emissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
baselineYes基準(例如去年)。用 factor_id 或 refrigerant_blend 擇一。
comparisonYes比較對象(例如今年)。用 factor_id 或 refrigerant_blend 擇一。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / baseline / properties / factor_version / description
      Previous value: -"指定係數版本,用來重現過去的計算。不給就用目前版本。"New value: +"指定係數版本,用來重現過去的計算。不給就用目前版本。混合冷媒(refrigerant_blend)不適用,給了會回錯誤。"
    • changedInput schema / properties / comparison / properties / factor_version / description
      Previous value: -"指定係數版本,用來重現過去的計算。不給就用目前版本。"New value: +"指定係數版本,用來重現過去的計算。不給就用目前版本。混合冷媒(refrigerant_blend)不適用,給了會回錯誤。"
  2. Changed6 schema fields changed
    • changedInput schema / properties / baseline / description
      Previous value: -"基準(例如去年)。"New value: +"基準(例如去年)。用 factor_id 或 refrigerant_blend 擇一。"
    • addedInput schema / properties / baseline / properties / refrigerant_blend
      Added value: +{
      +  "description": "混合冷媒(例如 R-410A)。成分比例必須來自使用者或設備、冷媒的規格文件;本服務沒有內建任何冷媒的成分,請勿憑記憶填寫,不確定時請向使用者確認。",
      +  "properties": {
      +    "components": {
      +      "description": "各成分與其質量百分比,合計必須剛好是 100。",
      +      "items": {
      +        "properties": {
      +          "factor_id": {
      +            "description": "成分的係數 ID(公告附表四的含氟氣體),來自 search_emission_factors,例如查 R-32、HFC-125。",
      +            "maxLength": 120,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "mass_percent": {
      +            "description": "這個成分的質量百分比,例如 50。",
      +            "type": [
      +              "number",
      +              "string"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "factor_id",
      +          "mass_percent"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 6,
      +      "minItems": 2,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "components"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / baseline / required
      Previous value: -[
      -  "factor_id",
      -  "quantity",
      -  "quantity_unit"
      -]New value: +[
      +  "quantity",
      +  "quantity_unit"
      +]
    • changedInput schema / properties / comparison / description
      Previous value: -"比較對象(例如今年)。"New value: +"比較對象(例如今年)。用 factor_id 或 refrigerant_blend 擇一。"
    • addedInput schema / properties / comparison / properties / refrigerant_blend
      Added value: +{
      +  "description": "混合冷媒(例如 R-410A)。成分比例必須來自使用者或設備、冷媒的規格文件;本服務沒有內建任何冷媒的成分,請勿憑記憶填寫,不確定時請向使用者確認。",
      +  "properties": {
      +    "components": {
      +      "description": "各成分與其質量百分比,合計必須剛好是 100。",
      +      "items": {
      +        "properties": {
      +          "factor_id": {
      +            "description": "成分的係數 ID(公告附表四的含氟氣體),來自 search_emission_factors,例如查 R-32、HFC-125。",
      +            "maxLength": 120,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "mass_percent": {
      +            "description": "這個成分的質量百分比,例如 50。",
      +            "type": [
      +              "number",
      +              "string"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "factor_id",
      +          "mass_percent"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 6,
      +      "minItems": 2,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "components"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / comparison / required
      Previous value: -[
      -  "factor_id",
      -  "quantity",
      -  "quantity_unit"
      -]New value: +[
      +  "quantity",
      +  "quantity_unit"
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so this is genuinely additive: it discloses the method-difference flag that prevents misreading a methodology change as a real reduction, and the asymmetric decomposition rules for blends with matching versus differing compositions. It stops short of saying how the flag or decomposition is presented in the response.

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

Conciseness3/5

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

The English text is front-loaded and dense with no filler, but the entire content is repeated verbatim in Traditional Chinese, roughly doubling the length. The duplication is plausibly deliberate for a bilingual service, yet it costs tokens and dilutes the front-loaded lead.

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 genuinely complex tool with two deeply nested parameter objects and no output schema, the description supplies the conceptual return model (activity effect, factor effect, method-change flag, component-level split) that the schema cannot. Gaps remain on how the difference-only case is presented and on whether flags accompany each side or the total.

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

Parameters3/5

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

Schema description coverage is 100% and the nested baseline/comparison objects already document year, quantity, factor_id, factor_version, optional_context, and refrigerant_blend in detail, including the factor_id-or-blend choice. The description adds the meaningful constraint that a blend has no official factor of its own, but otherwise restates what the schema already carries.

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?

States a specific verb and resource ("Compare two calculations") plus the scope (baseline vs comparison, e.g. two years), and goes further to name what the tool isolates: the activity-data effect versus the factor effect. That distinguishes it clearly from sibling single-calculation tools such as calculate_emissions without naming them.

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 when-to-use condition is clear — you want the delta and its decomposition, not a single footprint — and the blend cases spell out which situations are supported versus which return only a raw difference. It never names calculate_emissions as the alternative for a single result, so the 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.