Skip to main content
Glama
greencalculus

GreenCalculus

lookup_factors

Fetch multiple emission factors by key in a single call, each with audit trail and verification. Ideal for portfolio or multi-country comparisons; missing keys return in not_found.

Instructions

Look up SEVERAL emission factors by key in one call, each with the same audit envelope lookup_factor returns — provenance (publisher, exact source cell, retrieval date, licence, redistribution) and verification. Use this instead of calling lookup_factor in a loop: a portfolio or a multi-country comparison is one call, not one per factor. Keys that do not exist come back in not_found rather than failing the batch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYesCanonical factor keys, e.g. ["grid.gbr.electricity.location_based", "grid.fra.electricity.location_based"]. Maximum 25 per call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are present, so the description must carry behavioral disclosure. It does so well by describing the returned audit envelope (provenance, verification) and the non-failing not_found behavior. It stops short of discussing auth or rate limits, but those are not critical for this tool.

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 focused sentences with no filler: first states what it does, second gives usage guidance, third clarifies error handling. The key behavior is front-loaded.

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?

The description covers purpose, batch behavior, return envelope, and error handling for missing keys. Combined with the schema's key example and max count, an agent has enough to call it correctly. It could additionally point to search_factors for finding valid keys, but that is a minor gap.

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%, and the parameter description already explains canonical keys, provides examples, and states the max of 25. The description adds context about batch semantics but does not need to expand parameter meaning further.

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?

Clearly states it looks up several emission factors by key in one call and returns the same audit envelope as lookup_factor. It is explicitly differentiated from the singular sibling lookup_factor.

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

Usage Guidelines5/5

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

Directly instructs to use this tool instead of calling lookup_factor in a loop and describes the batch context, e.g., portfolio or multi-country comparison. This gives clear when-to-use guidance and names the alternative.

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