Skip to main content
Glama

DEFRA & GLEC Freight Logistics Transportation Carbon Engine

defra_freight_logistics_calculator
Read-onlyIdempotent

[DEFRA & GLEC freight logistics carbon engine. Deterministic calculation, read-only, side-effect free]. Calculates Scope 3 Category 4/9 freight transport emissions across road HGV (Euro 4-6), rail (electric/diesel), maritime, and air cargo based on ISO 14083:2023 and GLEC Framework v3.0, reporting Tank-to-Wheel (TTW) and Well-to-Wheel (WTW) emissions. Usage: Use this tool to calculate logistics and supply chain transportation carbon footprints per tonne-kilometre (t*km). Returns: JSON object with { cargoWeightMetricTons: number, distanceKm: number, transportMode: string, tonneKilometres: number, emissionFactors: object, calculatedTotals: object, glecFrameworkAlignment: object }.

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": {
      "cargoWeightMetricTons": "<cargoWeightMetricTons>",
      "distanceKm": "<distanceKm>",
      "transportMode": "<transportMode>"
    },
    "name": "defra_freight_logistics_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
distanceKmYesOne-way transport distance in kilometres
transportModeYesFreight transportation mode
cargoWeightMetricTonsYesWeight of cargo in metric tonnes
emptyRunningFactorPercentNoEmpty return trip allocation percentage (default: 15%)
isRefrigeratedTemperatureControlledNoTrue if cargo requires active temperature-controlled refrigeration (+18% fuel penalty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so 'deterministic, read-only, side-effect free' largely restates them. The valuable additions are the reporting basis (TTW and WTW) and the standards alignment, which tell the agent what kind of numbers come back. It still does not disclose emission-factor versioning, unit assumptions beyond t*km, or whether both TTW and WTW are always returned.

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

Conciseness5/5

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

The definition is front-loaded with a bracketed scope/standard tag, then two labelled lines ('Usage', 'Returns') that each carry distinct information. Nothing is padded; the only mild redundancy is the read-only wording duplicating the annotations, which is trivial.

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?

There is no output schema, so the explicit return-object shape (tonneKilometres, emissionFactors, calculatedTotals, glecFrameworkAlignment) is genuinely necessary and supplied. Combined with mode coverage and standards, this is nearly complete; a small gap remains around how TTW vs WTW results are selected or surfaced and what the emissionFactors object contains.

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 description coverage is 100%, so the schema already documents all five parameters including the 15% default on emptyRunningFactorPercent and the +18% refrigeration penalty, making the baseline 3. The description adds useful framing beyond the schema: the tonne-kilometre basis and the DEFRA/GLEC standard lineage that give meaning to the mode enum and factor selection.

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 names a specific verb and resource ('Calculates Scope 3 Category 4/9 freight transport emissions'), enumerates the covered modes (road HGV Euro 4-6, rail, maritime, air cargo), and cites the governing standards (ISO 14083:2023, GLEC v3.0). An agent can distinguish this from siblings like business_travel_flight_calculator or scope3_spend_based_eeio_calculator on the basis of mode and calculation basis without opening the schema.

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?

The 'Usage' line states the input basis ('per tonne-kilometre') and the domain (logistics and supply chain transportation footprints), which is clear positive guidance. However, it gives no exclusions: it never says when to prefer business_travel_flight_calculator for passenger air travel versus AIR_FREIGHT_LONG_HAUL here, nor when a spend-based calculator is appropriate. Usage is implied by domain rather than explicitly bounded.

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