Skip to main content
Glama

Estimate Emissions

estimate_emissions
Read-onlyIdempotent

Calculate kgCO₂e for an activity. Pass an emission_factor with at minimum activity_id (from search_factors) or id, plus the required parameters (e.g., { energy: 200, energy_unit: "kWh" }). Returns CO₂e + breakdown.

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": {
      "parameters": {
        "energy": 150,
        "energy_unit": "kWh"
      },
      "emission_factor": {
        "activity_id": "electricity-supply_grid_mix-2023"
      }
    },
    "name": "estimate_emissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
parametersYesActivity quantities matching the factor's required unit type (e.g., {energy:200, energy_unit:"kWh"}).
emission_factorYesSelector object, at minimum {activity_id: "..."} or {id: "..."}. May add region, year, source for disambiguation.

Output Schema

NameRequiredDescriptionDefault
co2eYesCalculated CO2 equivalent in kg
co2e_unitYesUnit of CO2e measurement
audit_trailYesAudit trail for the calculation
activity_dataYesActivity data used in calculation
emission_factorYesThe resolved emission factor used
constituent_gasesYesBreakdown of constituent greenhouse gases
calculation_methodYesMethod used for calculation
calculation_originYesOrigin/source of the calculation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / emission_factor / description
      Previous value: -"Selector object — at minimum {activity_id: \"...\"} or {id: \"...\"}. May add region, year, source for disambiguation."New value: +"Selector object, at minimum {activity_id: \"...\"} or {id: \"...\"}. May add region, year, source for disambiguation."
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "emission_factor": {
      +      "activity_id": "electricity-supply_grid_mix-2023"
      +    },
      +    "parameters": {
      +      "energy": 150,
      +      "energy_unit": "kWh"
      +    }
      +  },
      +  {
      +    "emission_factor": {
      +      "id": "9dc73201-e21b-45e3-a033-daac504400c3",
      +      "region": "GB"
      +    },
      +    "parameters": {
      +      "mass": 500,
      +      "mass_unit": "kg"
      +    }
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "activity_data": {
      +      "description": "Activity data used in calculation",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "audit_trail": {
      +      "description": "Audit trail for the calculation",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "calculation_method": {
      +      "description": "Method used for calculation",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "calculation_origin": {
      +      "description": "Origin/source of the calculation",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "co2e": {
      +      "description": "Calculated CO2 equivalent in kg",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "co2e_unit": {
      +      "description": "Unit of CO2e measurement",
      +      "type": "string"
      +    },
      +    "constituent_gases": {
      +      "description": "Breakdown of constituent greenhouse gases",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "emission_factor": {
      +      "description": "The resolved emission factor used",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "co2e",
      +    "co2e_unit",
      +    "calculation_method",
      +    "calculation_origin",
      +    "emission_factor",
      +    "constituent_gases",
      +    "activity_data",
      +    "audit_trail"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds the minimum selector requirement and mentions the return content, but the return shape is already carried by the output schema, so incremental value is modest.

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 tight sentences: purpose first, then the required inputs with a concrete example, then the return. No filler and nothing buried.

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 an output schema, rich annotations, and fully described parameters, the description covers the essential call path. It could say more about unit-matching failures or ambiguous factor resolution, but nothing critical 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 coverage is 100% and the schema already documents both parameters, including the selector's optional region/year/source fields. The description's inline example mirrors the schema examples rather than adding new meaning, so 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 and resource ('Calculate kgCO₂e for an activity') and names the sibling tool (search_factors) that supplies the factor, so an agent can distinguish it from factor-lookup tools without opening a 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?

Makes the workflow explicit: obtain the factor via search_factors, then pass it with required parameters. It does not state when-not to use it or what to do on ambiguous factor matches, so it stops short of full routing guidance.

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.