Skip to main content
Glama

Emission Factors

calculate_emissions

Calculate Scope 2 CO2e for a facility from its ZIP and kWh, using both GHG Protocol methods: location-based (eGRID subregion rate) and market-based (Green-e residual mix applied to kWh not covered by RECs, PPAs or green tariffs). Returns kg CO2e for each method with the factors used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kwhYesElectricity consumption in kWh
zipYes5-digit US ZIP code
yearNoeGRID edition (default 2023). Market-based needs 2023.
renewable_kwhNoOptional: kWh covered by contractual instruments (RECs, PPAs, green tariff). Counted at zero in the market-based result. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the calculation methodology (eGRID subregion rate for location-based, Green-e residual mix for market-based) and the return shape (kg CO2e per method with factors used). It omits operational traits like determinism, rate limits, or permissions, but for a read-only computation this is solid disclosure.

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?

Three sentences, front-loaded with the verb and resource, then methodology, then return value. Every sentence earns its place with no filler.

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 steps in to describe the return value (kg CO2e for each method plus factors), and it explains the calculation basis. A few details (units per input, whether year affects the market-based path beyond the schema note) are left to the schema, but nothing essential for correct invocation is missing.

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 documents zip, kwh, year, and renewable_kwh, including the market-based zero-counting rule. The description's mention of kWh 'not covered by RECs, PPAs or green tariffs' largely restates the renewable_kwh schema text, adding little beyond it. Baseline 3 applies.

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 (Calculate) plus a precisely scoped resource (Scope 2 CO2e for a facility) and enumerates the two GHG Protocol methods. An agent can distinguish it from calculate_fuel_emissions or lookup_emission_factor 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?

Gives clear context that this is a facility-level Scope 2 electricity calculation covering both location- and market-based methods, so no method selection is required. It does not name siblings or state when-not to use it, leaving explicit routing to inference.

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.