Skip to main content
Glama

resolve_factor

Find the best emission-factor key(s) for a plain-language description — the hardest step is picking the right key out of ~16,000. Returns ranked candidates; feed the chosen key to a calculate_* tool or lookup_factor. Prefer this over guessing a key. PUT THE COUNTRY IN THE DESCRIPTION. Geography is read from the description text itself, not from a separate field — "diesel per litre" and "diesel per litre France" resolve differently, and omitting the country will quietly return a factor from somewhere else marked "geo_match":"proxy". ACT ON THE LABEL. Every candidate carries label: "accept" or "review", plus "why". "accept" means confidence >= 0.85 and no demotion applied — right about nine times in ten. "review" means the answer may be usable but something is off (low confidence, only one term matched, a proxy country, or a gate demoted it); confirm it before adopting the number rather than using it silently. Roughly half of CORRECT answers are also flagged "review" — that is the intended trade, so treat "review" as "check this", not "discard this". A MISS MAY EXPLAIN ITSELF. When nothing matches, or the only matches are from the wrong country, the response may carry an "absence" object saying WHY. classification "structural" means no publisher issues this anywhere — STOP, do not retry with reworded queries and do not substitute a different country without saying so. "not_yet_sourced" means a publisher exists and we have not ingested it (the publisher is named). "refused" means we found the data and declined it, with the reason. "coupled" means this reads empty only because a related family is empty. Use explain_absence to ask the same question directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional, default 5.
sectionNoOptional section filter, e.g. "fuels", "grid", "freight".
descriptionYesWhat you need a factor for, INCLUDING the country if it matters, e.g. "UK grid electricity", "diesel per litre France", "hotel stay Japan". Geography is parsed from this string.

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral transparency burden and does so excellently. It discloses that geography is read from the description text itself, warns that omitting a country may yield a proxy marked 'geo_match':'proxy', explains the accept/review label semantics including the note that roughly half of correct answers are flagged 'review', and details the absence object's classifications (structural, not_yet_sourced, refused, coupled) with actionable instructions like 'STOP, do not retry'. This is far beyond minimal disclosure.

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?

Although lengthy, the description is dense with valuable guidance and structured in a logical flow: purpose, critical usage tips, label interpretation, and absence handling. Every sentence earns its place; there is no fluff or repetition. The front-loaded purpose sentence immediately orientates the agent, and the subsequent instructions are actionable and specific.

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

Completeness5/5

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

Given the tool's complexity (16,000 keys, proxy matching, accept/review labels, absence objects) and lack of output schema or annotations, the description is remarkably complete. It explains the return format (ranked candidates, label/why, absence object), how to interpret edge cases, and directs to explain_absence for further investigation. This covers the essential operational knowledge an agent needs.

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

Parameters4/5

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

Because schema coverage is 100%, the baseline is 3, but the description adds substantial value to the main 'description' parameter: it emphasizes including the country, provides concrete examples ('UK grid electricity', 'diesel per litre France'), and clarifies that geography is parsed from the string. It does not add new semantics for 'limit' or 'section' beyond the schema, but the enhanced guidance on the key parameter justifies a 4.

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's function with a specific verb and resource: 'Find the best emission-factor key(s) for a plain-language description'. It distinguishes itself from siblings by mentioning that the chosen key is fed to calculate_* tools or lookup_factor, and by positioning itself as the recommended approach over guessing a key. This unambiguous scope differentiates it from search_factors and direct lookup tools.

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?

The description provides explicit usage context: it is for resolving plain-language descriptions into ranked key candidates, with 'Prefer this over guessing a key' directing when to use it. It also names alternatives and follow-up tools: 'feed the chosen key to a calculate_* tool or lookup_factor' and 'Use explain_absence to ask the same question directly' for absence cases. This gives clear when-to-use and when-not-to-use 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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool has a clearly distinct role: search, lookup single, lookup batch, resolution, absence explanation, and separate calculation methods for distinct scopes. Even the discovery tools can be told apart by whether the input is a key, text, natural language, or a purpose. Domain calculators are cleanly separated by type of activity, so an agent should not confuse them.

Naming Consistency5/5

All tools follow a consistent verb_nonn pattern: calculate_*, lookup_factor(s), search_factors, resolve_factor, explain_absence. The naming clearly signals both action and object, and even the singular/plur lookup distinction matches the batch versus single-key semantic.

Tool Count5/5

Twelve tools is well-sopened for a broad emissons-factor API: six calculators, four discovery/lookup/resolution tools, one batch lookup, and one edge-case explainer. Each tool appears to serve a necessary purpose rather than adding redundant surface area.

Completeness5/5

The set covers the full workflow: discover factors, resolve amiguous plain-language queries, look them up individually or in batch, perform domain-relevant calculations, and even explain why a factor is absent. The main GHG scopes are covered by dedicated calculators while the generic calculate_activity fills gaps for any other factor data.

Resources