Skip to main content
Glama

ISPRA & AIB European Grid Electricity Carbon Factor Resolver

ispra_grid_electricity_factor
Read-onlyIdempotent

[ISPRA & AIB European electricity emission factor resolver. Deterministic calculation, read-only, side-effect free]. Calculates Scope 2 electricity emissions across EU-27 member states using certified ISPRA, EEA, and AIB Residual Mix factors, comparing location-based and market-based accounting with Guarantees of Origin (GOs). Usage: Use this tool to calculate Scope 2 emissions for CSRD ESRS E1 reporting and ISO 14064 GHG inventories. Returns: JSON object with { countryIso2: string, accountingMethod: string, consumptionKwh: number, emissionFactorGco2ePerKwh: number, calculatedEmissions: object, esrsE1DisclosureMapping: 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": {
      "consumptionKwh": "<consumptionKwh>",
      "countryIso2": "<countryIso2>"
    },
    "name": "ispra_grid_electricity_factor"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryIso2Yes2-letter ISO country code (e.g. IT, DE, FR, ES, PL)
reportingYearNoReporting year (e.g. 2024, 2025, 2026)
consumptionKwhYesElectricity consumption in kilowatt-hours (kWh)
accountingMethodNoGHG Protocol Scope 2 accounting method (default: LOCATION_BASED)
hasGuaranteesOfOriginGoNoTrue if electricity is covered by certified Guarantees of Origin (grants 0 gCO2e/kWh in market-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint, so the 'deterministic, read-only, side-effect free' phrasing is largely confirmatory. The description does add genuine behavioral context beyond them: it names the certified factor provenance (ISPRA, EEA, AIB Residual Mix) and explains that Guarantees of Origin drive market-based results to 0 gCO2e/kWh. It does not address failure behavior for unsupported country codes or default reporting-year handling.

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?

Well front-loaded: identity, then Usage, then Returns, with no wasted prose. The bracketed preamble partly duplicates the annotations ('read-only, side-effect free'), a minor redundancy. The Returns block earns its place because there is no output schema.

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 five fully documented parameters and no output schema, the description correctly compensates by spelling out the return object's fields, including the esrsE1DisclosureMapping. Remaining gaps are small: default reportingYear behavior and what happens for a non-EU-27 or unsupported country code are not stated.

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 schema carries most parameter meaning and a baseline of 3 is warranted. The description adds one piece of information the schema lacks: that countryIso2 must fall within EU-27 member states, which the schema's examples (IT, DE, FR, ES, PL) do not constrain. The accounting-method and GO relationship is restated rather than extended.

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 — calculating Scope 2 electricity emissions using ISPRA/EEA/AIB Residual Mix factors — with an explicit EU-27 geographic scope. It also names the two accounting frameworks (location-based vs market-based) it reconciles, which distinguishes it from the sibling calculators for travel, freight, stationary combustion and spend-based EEIO.

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 'Usage' line gives a concrete when-to-use context tied to CSRD ESRS E1 and ISO 14064 inventories, which is more than most calculator tools offer. It stops short of explicit exclusions — it never says to use the flight/freight/combustion siblings for non-electricity sources, leaving the agent to infer boundaries from scope alone.

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