Skip to main content
Glama

Carbon Node UK — GHG & DESNZ Carbon Accounting

Calculate Single UK Emission

calculate_emission
Read-onlyIdempotent

Deterministic calculation (quantity x pinned UK DESNZ conversion factor) returning kg_co2e, t_co2e, scope, source metadata, catalog_id, catalog_url, and any Outside-of-Scopes biogenic companion.

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": {
      "factor_id": "<factor_id>",
      "quantity": "<quantity>"
    },
    "name": "calculate_emission"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoPinned 4-digit year (e.g. '2026') or 'latest'.latest
quantityYesPositive finite quantity in the factor's exact published uom.
factor_idYesFactor ID returned by search_uk_factors or smart_lookup_factor.
descriptionNoOptional non-PII label (e.g. 'HQ gas boiler').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, closed-world and non-destructive, so the bar is lower, yet the description still adds real behavior: the result is deterministic, the factor is year-pinned, and an Outside-of-Scopes biogenic companion may be returned alongside the primary figures. It does not cover rounding/precision or what happens on a unit mismatch, which keeps it below 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?

It is a single front-loaded sentence that leads with the computation and then the return payload, with no filler. The parenthetical and the long return-field list make it dense, but every clause carries information.

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 usefully enumerates the return fields (kg_co2e, t_co2e, scope, source metadata, catalog_id, catalog_url, biogenic companion), and the inputs are fully specified by the schema. For a simple deterministic calculation this is nearly complete, lacking only error and precision behavior.

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%, so all four parameters are already documented, making 3 the baseline. The description reinforces that quantity must be in the factor's exact published uom and that the year is pinned, but adds no format or validation detail beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource plus the exact computation performed (quantity x pinned UK DESNZ conversion factor) and enumerates the returned fields, which is far more than a restatement of the name. It implicitly separates this single-record calculator from the batch sibling, though it never names calculate_batch or calculate_uk_sic_spend explicitly.

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 only implied: the schema notes that factor_id comes from search_uk_factors or smart_lookup_factor, which gives the agent a workflow prerequisite, but the description itself never says when to pick this tool over calculate_batch or calculate_uk_sic_spend. No when-not guidance or exclusions are present.

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.