Skip to main content
Glama
sovereign-verify-mcp

sovereign-verify-mcp

by pjrpjr

verify_45z_mass_balance

Read-onlyIdempotent

Verifies quarterly §45Z feedstock tank mass balance, flags high-risk transshipment ports, anchors external docs via Merkle root, and locks official GREET .xlsx workbooks by SHA-256.

Instructions

IRC §45Z (OBBBA / Notice 2026-53) North America (US/CA/MX) 100% feedstock tank mass conservation checker, high-risk transshipment port detector, external docs Merkle root anchor, and official DOE 45ZCF-GREET .xlsx cached-CI / SHA-256 workbook lock verifier.

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": {
      "package": "<package>"
    },
    "name": "verify_45z_mass_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesQuarterly §45Z package JSON (quarter, facility, tank, production, external_docs, feedstock_lots, pwa_claimed).
greet_summaryNoInline GREET summary ({ci_gco2e_per_mj, pathway, feedstock, fuel_type, cached_credit_usd_per_gal, greet_workbook_sha256}).
greet_xlsx_base64NoOptional base64-encoded official DOE 45ZCF-GREET*.xlsx parsed in-memory via stdlib zipfile+XML.
expected_greet_sha256NoOptional pinned SHA-256 hex digest for official GREET workbook lock verification.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds real semantic context beyond that: an external docs Merkle root is anchored, high-risk transshipment ports are flagged, and the workbook is parsed in-memory. It does not disclose the verification outcome shape, what a mismatch produces, or whether the Merkle anchor is recorded externally (a side effect that sits oddly with openWorldHint=false but is not clearly contradictory).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with no filler, and the domain anchor (IRC §45Z, OBBBA / Notice 2026-53) is front-loaded. But it is an unparsed list of four capabilities strung together with slashes and commas, so a reader must re-read to extract the primary action. Splitting into a one-line purpose plus a short capability list would cost the same length and read far better.

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

Completeness3/5

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

The input side is well covered by a rich nested schema, and the annotations remove ambiguity about mutability. With no output schema, however, the description should state what a verification run returns — pass/fail verdicts, per-lot discrepancies, port flags — and it does not. For a compliance gate whose entire value is its verdict, that is the main 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%, including the nested package fields and the optional pinned digest, so the schema carries most of the load. The description adds only marginal meaning — 'cached-CI' and 'workbook lock verifier' hint at how greet_summary and expected_greet_sha256 interact, but neither the optionality of the digest nor the precedence between inline summary and base64 workbook is explained.

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?

Names a concrete verb+resource (mass-balance verification of a §45Z quarterly package) and enumerates four distinct capabilities: tank mass conservation, transshipment port risk detection, external-doc Merkle anchoring, and GREET workbook SHA-256 lock verification. The sibling set (BESS DPP, SBOM, HIPAA 835, etc.) is entirely different domains, so differentiation is inherent rather than earned here. It loses a point because four functions are compressed into one run-on clause, making the primary action harder to isolate.

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

Usage Guidelines2/5

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

There is no when-to-use statement, no precondition for what a 'Quarterly §45Z package JSON' must contain to be verifiable, and no mention of when a caller should skip GREET verification (e.g., when no workbook is available). The agent must infer that this is a pre-filing compliance gate. Naming the regulatory framework implies a domain but does not route the agent to any alternative.

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