Skip to main content
Glama

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. Pay at /x402/taxcredit-engine/calculate_tax_credit with Base USDC, cash-fund payment_ref through escrow_checkout + confirm_escrow_funding, or use /seats.

Input Schema

NameRequiredDescriptionDefault
factsYes
creditYes
request_idNo
payment_refNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / request_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Request Id"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / payment_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Payment Ref"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavioral context: an indeterminate-return failure mode for incomplete facts, a legal disclaimer, per-call pricing with a free tier, and three payment routes. Minor gaps remain (what 'auditable' entails in the response, whether failed/indeterminate calls are billed).

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?

Front-loaded with the core action and its constraints, then legal and payment housekeeping. Every sentence carries operational weight (allowed values, indeterminate behavior, cost, payment route); nothing is padding given the paid-call model.

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?

An output schema exists, so return values needn't be explained, and the payment/nondeterminism behavior is well covered. But 'facts' is an open nested object (additionalProperties: true) with no key guidance, and the description never points to get_rule_pack as the source of the required credit-specific fact keys — a notable gap for a tool whose failure mode is 'missing facts'.

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 0%, so the description must compensate. It does well for two of four params — 'credit' gets an explicit allowed-value list and 'facts' gets content requirements plus failure semantics — but 'request_id' is never mentioned and 'payment_ref' is only alluded to obliquely via the escrow funding path.

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 and resource ('Calculate an auditable tax-credit scenario') and enumerates the exact credit universe (45Q, 45V, 45Y, 48E, 45X), which is information the schema does not carry since 'credit' is an untyped string with no enum. It is clearly distinguishable from the verification sibling verify_tax_credit_result.

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 specifies an input precondition ('facts must contain the explicit credit-specific eligibility facts; missing facts return indeterminate'), which is real usage guidance. But it never says when to reach for this versus get_rule_pack (to learn which facts are required) or verify_tax_credit_result (to check a result), so the sibling routing is left implicit.

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.