Skip to main content
Glama

Taiwan Carbon Open Data (Unofficial)

Build GHG inventory summary

build_inventory
Read-onlyIdempotent

Calculate several activities and arrange the results as a greenhouse gas inventory: grouped into Scope 1 (direct), Scope 2 (purchased energy) and Scope 3 (other indirect), with a subtotal per scope, Scope 1 by gas, and a Scope 1+2 total. Subtotals and totals are withheld, with the reason, when items mix CO2 and CO2e, when an item could not be calculated, or when Scope 3 holds product carbon footprints that may overlap Scopes 1 and 2. The scope assignment is this service's default by factor type and can be overridden per item. Covers only the activities supplied; it is not a complete or verified inventory. 計算多筆活動並整理成溫室氣體盤查清冊的形式:分為範疇一(直接排放)、範疇二(能源間接)、範疇三(其他間接),提供各範疇小計、範疇一依氣體分列,以及範疇一加二的合計。項目混用 CO2 與 CO2e、有項目算不出來、或範疇三含可能與範疇一、二重疊的產品碳足跡時,不提供對應的小計或合計並說明原因。範疇分類是本服務依係數類型的預設,可逐筆覆寫。只涵蓋你提供的活動,不是完整或經查證的盤查。

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": {
      "items": "<items>"
    },
    "name": "build_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes要列入清冊的活動,最多 50 筆。
inventory_yearNo盤查年度(西元)。會套用到沒有自己指定 year 的項目,係數年度不符的項目會回報錯誤。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / factor_version / description
      Previous value: -"指定係數版本,用來重現過去的計算。不給就用目前版本。"New value: +"指定係數版本,用來重現過去的計算。不給就用目前版本。混合冷媒(refrigerant_blend)不適用,給了會回錯誤。"
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses genuinely non-obvious behavior: subtotals and totals are withheld with a stated reason when CO2 and CO2e are mixed, when an item fails to calculate, or when Scope 3 contains product carbon footprints that may overlap Scopes 1–2. It also explains that scope assignment is a factor-type default that can be overridden per item, and explicitly disclaims completeness/verification — context an agent could not get from annotations or schema.

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 content is dense and front-loaded: output structure first, then withholding rules, then the override and scope-disclaimer caveats, with zero filler sentences. The one cost is that the entire text is duplicated in Chinese and English, roughly doubling length, though the bilingual redundancy serves different agent locales rather than being pure padding.

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?

With no output schema, the description does the heavy lifting by describing the returned inventory layout and the conditions under which sections are omitted, which is the critical missing piece for a nested items-array tool. It does not spell out what per-item results look like for items that fail calculation, but the withholding rules imply it sufficiently for correct invocation.

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%, so the schema already carries per-field semantics (year, scope override, quantity, factor_id, units, refrigerant, LHV). The description adds only the high-level rule that scope is a default-by-factor-type with per-item override, which is largely restated in the schema's scope field. Baseline 3 is appropriate.

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

Purpose4/5

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

The description opens with a specific verb and resource — calculate several activities and arrange them as a GHG inventory — and then enumerates the exact output structure (Scope 1/2/3 subtotals, Scope 1 by gas, Scope 1+2 total), which clearly separates it from single-activity calculators. It stops short of naming any sibling (e.g. calculate_batch or calculate_emissions) to contrast against, so an agent must infer the boundary from the output shape alone.

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 is only implied: the multi-item, scoped-summary framing signals 'use when the user wants a consolidated inventory,' and the closing sentence scopes the result ('covers only the activities supplied; it is not a complete or verified inventory'). There is no explicit when-to-use versus calculate_batch/calculate_emissions guidance, no prerequisites (e.g. factors must first come from search_emission_factors), and no statement of what this tool should not be used for.

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.