Skip to main content
Glama

Carbon Interface

Estimate Electricity

estimate_electricity
Read-onlyIdempotent

Estimate CO2 emissions from electricity usage. Returns carbon emissions in grams, kg, and metric tons. Example: estimate_electricity(500, "us", "kwh") for 500 kWh in the US.

Input Schema

NameRequiredDescriptionDefault
unitNoUnit of electricity: "kwh" or "mwh" (default: "kwh")
stateNoUS state code for more precise estimate (e.g., "ca", "ny"). Only for US.
valueYesAmount of electricity consumed (e.g., 500)
_apiKeyYesCarbon Interface API key
countryYesISO 3166-1 alpha-2 country code (e.g., "us", "gb", "de")

Output Schema

NameRequiredDescriptionDefault
stateYesUS state code if provided
countryYesISO 3166-1 alpha-2 country code
carbon_gYesCarbon emissions in grams
carbon_kgYesCarbon emissions in kilograms
carbon_lbYesCarbon emissions in pounds
carbon_mtYesCarbon emissions in metric tons
estimated_atYesISO timestamp of estimate
electricity_unitYesUnit of electricity (kwh or mwh)
electricity_valueYesAmount of electricity consumed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral detail by specifying that emissions are returned in grams, kg, and metric tons, which goes beyond the annotations.

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 description is concise, front-loaded with the purpose, and includes a helpful example. Every sentence adds value without unnecessary fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values are handled elsewhere. The description covers the core purpose and example usage, but the example's omission of the required _apiKey is a notable gap that reduces completeness for an agent trying to invoke the tool correctly.

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 fully documents all parameters. The description adds an example that clarifies value/country/unit mapping, but it omits the required _apiKey from the example, which could mislead an agent into thinking the API key is unnecessary.

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 clearly states the tool estimates CO2 emissions from electricity usage, with a specific verb and resource. It also mentions the return format (grams, kg, metric tons), fully distinguishing it from sibling tools like estimate_flight and estimate_vehicle.

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 description provides clear context that this tool is for electricity usage, which distinguishes it from sibling estimates. However, it does not explicitly state when not to use it or provide alternative tool names, so it lacks explicit exclusions or alternatives.

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.