Skip to main content
Glama

Carbon Footprint API - CO2 Calculator, Official Factors

carbon_footprint_api
Read-onlyIdempotent

No API key. CO2e emissions calculator on the official UK government (DESNZ) conversion factors 2023-2026: flights by IATA code (haul, cabin class, radiative forcing, +8% routing uplift), cars by size/segment and fuel incl. EV and hybrid, fuels by litre/kWh/tonne/gallon, UK electricity with grid losses, hotel nights in 40 countries, rail, bus, taxi, ferry, freight tonne-km (truck, van, ship, rail, air). Every answer carries the factor ID, year, Scope 1/2/3 split and CO2/CH4/N2O split. Up to 100 activities per call. Usable from AI agents via MCP. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/carbon-footprint-api.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "calculate",
      "year": "latest",
      "activities": [
        {
          "to": "JFK",
          "from": "LHR",
          "type": "flight",
          "cabin": "economy",
          "roundTrip": true
        },
        {
          "fuel": "petrol",
          "size": "medium",
          "type": "car",
          "unit": "km",
          "distance": 120
        },
        {
          "kwh": 1000,
          "type": "electricity"
        },
        {
          "type": "hotel",
          "nights": 3,
          "country": "DE"
        }
      ],
      "includeTotal": false
    },
    "name": "carbon_footprint_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocalculate = CO2e of your activities (one result row per activity); search = find official DESNZ factors by words (e.g. 'diesel litres', 'container ship', 'hotel japan') and get their factorId; categories = all factor categories with Scope,
yearNoWhich official DESNZ factor set to use. latest = the newest published set (2026). Use an older year to match last year's report.
limitNoFor mode=search: maximum number of factors returned.
queryNoFor mode=search: words that must all appear in the factor path, e.g. 'diesel litres', 'hotel japan', 'refrigerant R410A', 'waste landfill'.
scopeNoFor mode=search: only factors of this GHG Protocol scope. Empty = all scopes.
activitiesNoList of activities (max 100). Each object has a 'type': flight {from, to (IATA codes) or distanceKm, cabin: economy|premium_economy|business|first|average, passengers, roundTrip, radiativeForcing (default true)}; car {distance, unit: km|mil
includeTotalNoFor mode=calculate with 2+ activities: add one extra row with the total kgCO2e and the Scope 1/2/3 split of all activities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description adds genuinely useful operational context beyond that: no API key needed, a 5-calls/day free IP limit, paid tiers via X-API-Key or x402, and a 100-activity cap per call. It does not, however, explain failure behavior (what happens when the quota is hit, or how unknown IATA codes or factor IDs are reported), which matters for an open-world tool.

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 is long but front-loaded: the authoritative source and capability list come first, followed by output guarantees, the per-call limit, and access/pricing terms. A few clauses are filler ('Usable from AI agents via MCP') and the single run-on paragraph could be segmented, but almost every sentence carries routing or invocation value.

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 7-parameter, no-required-parameter tool with no output schema, the description does the heavy lifting: it explains the modes, the result content (factor ID, year, Scope 1/2/3 and CO2/CH4/N2O splits), the activity cap, and the auth/pricing model. The main residual gap is the absent default for mode and for year when omitted.

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; the description earns above that by adding domain meaning the schema does not spell out, such as cabin class affecting results, radiative forcing, the +8% routing uplift, and fuel units by litre/kWh/tonne/gallon. It still does not state what happens when mode is omitted, even though no parameter is marked required.

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 operation (CO2e emissions calculation) against a named authoritative source (official UK DESNZ conversion factors 2023-2026) and enumerates the covered domains: flights by IATA, cars, fuels, UK electricity, hotels, rail/bus/taxi/ferry, freight tonne-km. An agent can distinguish this from generic calculators like percentage_calculator or solar_pv_yield_api 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 Guidelines4/5

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

It gives clear applicability context — use it for emissions of travel, energy, fuel and freight activities — and implicitly routes factor discovery to search mode versus calculation to calculate mode. It stops short of explicit when-not-to-use guidance or naming a sibling alternative for adjacent tasks such as flight distance or airport lookups.

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