Skip to main content
Glama

compute_refund_position

Compute a federal refund position: are you owed a refund, or do you owe? Deterministic Form 1040 arithmetic for tax years 2024 and 2025: income tax (Tax Table under $100,000, capital-gain worksheet stacking for qualified dividends and long-term gains), self-employment tax (Schedule SE, 92.35% base, year wage base, Additional Medicare Tax), section 199A QBI deduction with threshold phase-ins and the W-2 wage/UBIA limit, child tax credit and additional child tax credit, education credits, earned income credit, and a payments comparison. Inputs: tax_year, filing_status (single, mfj, hoh, mfs), schedule_c_net_profit or schedule_c {gross_receipts, deductible_expenses}, other_income {w2_wages, taxable_interest, ordinary_dividends, qualified_dividends, short_term_gain, long_term_gain}, adjustments, deductions, qbi, credits, payments. Optional filed_return {agi, taxable_income, total_tax, total_payments, refund_received} returns a line-by-line variance report naming the likely line causing any difference and any additional refund owed. Every intermediate line carries its form reference. Federal only; AMT, NIIT, state tax, and penalties are flagged as not computed, never silently zero. General information only, not tax advice.

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": {
      "tax_year": "<tax_year>",
      "filing_status": "<filing_status>"
    },
    "name": "compute_refund_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
qbiNo
creditsNo
paymentsNo
tax_yearYes
deductionsNo
schedule_cNo
adjustmentsNo
other_taxesNo
filed_returnNo
other_incomeNo
filing_statusYes
schedule_c_net_profitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral load and does it well: it discloses that the computation is deterministic, that every intermediate line carries a form reference, that unsupported taxes are explicitly flagged rather than zeroed, and that filed_return triggers a variance report naming the likely offending line. It never states side effects or that the call is purely read-only/no-write, and with no output schema it does not sketch the response shape beyond the variance report.

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?

Purpose and scope are front-loaded, and nearly every clause adds information an agent needs (which credits, which tax computations, which exclusions). The dense single-paragraph run-on of parameter names is the weak point — it reads as a wall rather than a structured list — but there is little true filler.

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 12-parameter, nested-object tool with no annotations and no output schema, the description supplies substantial context: computation scope, year and filing-status constraints, the variance-report behavior, and explicit not-computed flags. The remaining gaps are the undocumented nested fields inside credits, qbi, payments, deductions, and adjustments, plus the unmentioned other_taxes parameter, which leave parts of the call contract underspecified.

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% across 12 parameters, so the description must compensate. It enumerates the top-level inputs and expands two nested objects (schedule_c and other_income), but leaves adjustments, deductions, qbi, credits, and payments as bare names, and omits other_taxes entirely even though the schema exposes it. That is meaningful added value, but not enough to make the nested objects callable from the description alone.

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 opens with a specific verb and resource: 'Compute a federal refund position: are you owed a refund, or do you owe?' It bounds the scope precisely (Form 1040 arithmetic, tax years 2024 and 2025, federal only), which cleanly separates it from the sibling tools that parse, categorize, or audit existing data rather than compute a return position.

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?

It gives a clear usage context (compute a refund/amount-owed position from raw inputs, optionally reconcile against a filed_return) and states explicit exclusions — AMT, NIIT, state tax, and penalties are flagged, not silently zeroed. It does not name an alternative tool or tell the agent when to prefer audit_schedule_c or check_deduction_categories instead, so it stops short of a full routing rule.

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.

Resources