Skip to main content
Glama
SOMA AI Emission Factors (SAEF)

SOMA AI Emission Factors (SAEF)

compare_regions

Compare carbon and water estimates for the same AI workload across cloud regions, with results sorted by carbon and flagged for unrecognized regions.

Instructions

Compare the carbon and water estimate for the same workload across regions using SOMA AI Emission Factors (SAEF).

Args: tokens: Billed tokens, input plus output. model: Model identifier such as "gpt-4o". regions: Region codes to compare, for example ["eu-north-1", "us-east-1", "ap-south-1"]. See list_regions.

Returns one row per region, sorted from lowest to highest carbon, with kg and g CO2e (central and high case) and water in mL. The lowest-carbon grid is not always the lowest-water one. A region that is not recognised gets an error entry instead of failing the whole call. Estimates, not measurements.

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": {
      "tokens": "<tokens>",
      "model": "<model>",
      "regions": "<regions>"
    },
    "name": "compare_regions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
tokensYes
regionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 well: it discloses the return shape (one row per region, sorted lowest-to-highest carbon), partial-failure behavior (unrecognized region yields an error entry rather than failing the whole call), and an accuracy disclaimer (estimates, not measurements). It omits permission, rate-limit, or cost-of-call context, which keeps it short of a 5.

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?

Front-loaded purpose sentence followed by a compact Args block and a dense but useful Returns paragraph; nothing is filler. The only mild waste is the spelled-out factor name and acronym, which the agent does not need.

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?

There is no output schema, and the description supplies the return structure, ordering, units, and error semantics, so an agent knows what comes back. Minor gaps remain around token bounds and any limit on how many regions can be compared in one call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does: tokens is defined as billed tokens including input plus output, model is explained with a concrete example ('gpt-4o'), and regions gets example codes plus a reference to list_regions. All three required parameters gain meaning beyond the bare schema.

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 (compare) and resource (carbon and water estimates for a workload) with clear scope: across regions, using named emission factors. The 'across regions' scoping plus the pointer to list_regions distinguishes it from the single-workload estimate siblings without needing to inspect schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the compare-across-regions framing, and the description helpfully points to list_regions for valid region codes. However, it never says when to choose this over estimate_footprint or estimate_chat_usage, nor any prerequisite or cost caveat for making the call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.