Skip to main content
Glama

Validate data against Open Footprint

ofp_validate
Read-only

Use this when an emissions or footprint record (JSON) needs checking against Open Footprint or sector guardrails before storing or reporting. Not for data-quality questions without a payload.

Checks structure, constraints, enums and calculations; with a sector, its guardrails. Per call read checked, checks_not_run and schema.coverage.constraintsDeclared. Not checked: undeclared ranges, unit coherence, referential integrity, factor provenance. Compliant only if sector_policy is in checked and policy.outcome is passed. schemaValid is structural; valid is deprecated.

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": {
      "entity": "<entity>",
      "payload": "<payload>"
    },
    "name": "ofp_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNo
entityYes
sectorNo
payloadYes
entityTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / entityType / description
      Removed value: -"Guardrail record type, e.g. \"directEmission\""
  2. Changed6 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / domain / description
      Removed value: -"Model domain; required when the entity name is ambiguous"
    • removedInput schema / properties / entity / description
      Removed value: -"Canonical entity name, e.g. \"Product Carbon Footprint\""
    • changedInput schema / properties / entityType / description
      Previous value: -"The record type the guardrails discriminate on, e.g. \"directEmission\". Without it the entity name is used, which usually matches nothing — the response then reports policy.outcome \"not_applicable\" and lists the types the rules do cover."New value: +"Guardrail record type, e.g. \"directEmission\""
    • removedInput schema / properties / payload / description
      Removed value: -"The instance to check, as an object"
    • removedInput schema / properties / sector / description
      Removed value: -"Sector id to apply guardrails from, e.g. \"extractives\""
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it enumerates what is checked (structure, constraints, enums, calculations, sector guardrails) and, importantly, what is NOT checked (undeclared ranges, unit coherence, referential integrity, factor provenance). It also names the exact output fields to read and states the precise compliance condition (sector_policy in `checked` plus policy.outcome passed), including the `schemaValid` vs deprecated `valid` distinction. The readOnlyHint/non-destructive annotations are consistent with this read-only checking behavior.

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-loads the usage trigger, then moves to behavior and return-value reading with no filler; nearly every sentence carries distinct information. The telegraphic middle sentences ('with a sector, its guardrails') are slightly compressed, but density is appropriate for the amount of behavioral detail conveyed.

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 properly explains the return contract (which fields to read, what compliance requires, the deprecated field). The remaining gap is the unexplained `entity`/`entityType`/`domain` inputs, which matters for a tool whose required parameters are structural to invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it only clarifies two of five parameters: `sector` (triggers sector guardrails) and `payload` (the JSON record). The required `entity`, plus `entityType` and `domain`, are never explained, leaving ambiguity about what identifier must be supplied for a successful call.

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 (validate/check) and a concrete resource (an emissions or footprint record in JSON) against a named standard and optional sector guardrails. It also scopes itself negatively ('Not for data-quality questions without a payload'), so an agent can distinguish it from a general validation tool without opening the schema.

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?

Gives a clear trigger ('when an emissions or footprint record needs checking ... before storing or reporting') and an explicit exclusion for questions lacking a payload. It stops short of naming a concrete alternative for that excluded case, so the agent must infer where to route payload-free questions.

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.