Skip to main content
Glama

Calculate clean-energy tax credit

calculate_tax_credit
Read-onlyIdempotent

Calculate an auditable tax-credit scenario. credit is 45Q, 45V, 45Y, 48E, or 45X. facts must contain the explicit credit-specific eligibility facts; missing facts return indeterminate. This is not tax or filing advice. Price: $2.00 per call after 10 free calls/day (100/month). Pay by card: the payment_required answer's pay_by_card line links a Stripe credit pack ($10, $25 or $100; one balance pays every Viridis tool), or buy a monthly seat at /seats. Also accepted: Base USDC at /x402/taxcredit-engine/calculate_tax_credit, or cash-fund payment_ref through escrow_checkout + confirm_escrow_funding. If a call returns indeterminate, the response includes first_call_help. Example arguments: {"credit": "48E", "facts": {"tax_year": 2026, "tax_year_begin_date": "2026-01-01", "lifecycle_emissions_g_co2e_per_kwh": "0", "placed_in_service_date": "2026-01-01", "construction_begin_date": "2025-01-01", "produced_in_us": true, "nameplate_capacity_mw": "2", "pwa_met": true, "specified_foreign_entity": false, "foreign_influenced_entity": false, "material_assistance_from_pfe": false, "technology": "geothermal", "tax_exempt_bond_financing_percent": "0", "qualified_investment_usd": "1000000", "claimed_45y": false, "domestic_content_met": true, "energy_community": true, "low_income_bonus_percentage_points": "0", "low_income_allocation_received": false, "low_income_allocation_ratio_percent": "0"}}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_tax_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
factsNoThe facts for that credit, as an object (dates as YYYY-MM-DD, amounts as numbers or decimal strings, yes/no as true/false). get_rule_pack shows a credit's rules; a missing fact comes back as indeterminate with its name, and the example shows a full 48E request.
creditNoWhich US clean-energy credit. One of: 45Q, 45V, 45X, 45Y, 48E.
request_idNoOptional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice.
payment_refNoOptional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • addedInput schema / properties / payment_ref / description
      Added value: +"Optional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat."
    • addedInput schema / properties / request_id / description
      Added value: +"Optional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice."
  3. Changed2 schema fields changed
    • addedInput schema / properties / credit / description
      Added value: +"Which US clean-energy credit. One of: 45Q, 45V, 45X, 45Y, 48E."
    • addedInput schema / properties / facts / description
      Added value: +"The facts for that credit, as an object (dates as YYYY-MM-DD, amounts as numbers or decimal strings, yes/no as true/false). get_rule_pack shows a credit's rules; a missing fact comes back as indeterminate with its name, and the example shows a full 48E request."
  4. Changed8 schema fields changed
    • addedInput schema / properties / credit / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / credit / default
      Added value: +null
    • removedInput schema / properties / credit / type
      Removed value: -"string"
    • removedInput schema / properties / facts / additionalProperties
      Removed value: -true
    • addedInput schema / properties / facts / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / facts / default
      Added value: +null
    • removedInput schema / properties / facts / type
      Removed value: -"object"
    • removedInput schema / required
      Removed value: -[
      -  "credit",
      -  "facts"
      -]
  5. Changed1 schema field changed
    • addedInput schema / properties / request_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Request Id"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / payment_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Payment Ref"
      +}
  7. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world behavior, and the description adds real context beyond that: indeterminate-result semantics, the request_id retry guarantee that matches idempotentHint, a liability disclaimer, and the full billing/escrow path. Pricing and payment rails are heavy but genuinely affect invocation (free tier, pay_by_card, escrow), though the passage is more operational plumbing than tool behavior.

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?

Purpose and the indeterminate caveat are front-loaded, which is good, but the middle is dominated by a long payment-rails sentence (card, USDC x402 path, escrow checkout) plus a sprawling 20-key example, diluting the actionable content. Several sentences earn their place; the multi-path payment enumeration is the weakest use of space.

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?

For a read-only calculation tool with an output schema, an existing schema, and annotations, the description covers the essential gaps: what facts are required, what happens when they are missing, how to recover from indeterminate, and what invocation costs. Return-field documentation is correctly omitted since an output schema exists.

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%, so the schema already documents credit, facts, request_id, and payment_ref, establishing a baseline of 3. The embedded example argument object does add concrete meaning about the shape and typical contents of an eligible 48E facts payload, but this is duplicated by the schema's own note referencing the same example.

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 ('Calculate an auditable tax-credit scenario') and enumerates the exact credit types (45Q, 45V, 45Y, 48E, 45X), so an agent knows precisely what is computed. It does not, however, differentiate itself from siblings like verify_tax_credit_result or get_rule_pack, leaving the boundary to be inferred.

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?

It gives a clear precondition ('facts must contain the explicit credit-specific eligibility facts; missing facts return indeterminate') and a recovery path ('the response includes first_call_help'), which is genuine usage guidance. It never states when to prefer this tool over verify_tax_credit_result or when to call get_rule_pack first, so routing between siblings remains implied.

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.