Skip to main content
Glama

finance_home_sale_exclusion

Read-only

Home sale exclusion (IRC 121) — Offline US home-sale gain exclusion calculator (IRC 121, Pub 523): gain, $250k/$500k limit, 2-of-5-year ownership and use tests, partial exclusion for work/health/unforeseen moves, depreciation (unrecaptured 1250) and nonqualified-use carve-outs, taxable gain and verdict FULLY_EXCLUDED/PARTIALLY_TAXABLE/NOT_ELIGIBLE/LOSS. Params: sale_price, basis (required); selling_costs, filing=single|mfj, owned_months, used_months (of last 60), spouse_used_months, last_exclusion_months_ago, reason=work|health|unforeseen, depreciation, nonqualified_months, total_owned_months. Price: $0.003 USDC (Base, via x402).

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": {
      "sale_price": "<sale_price>",
      "basis": "<basis>"
    },
    "name": "finance_home_sale_exclusion"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisYes300000
sale_priceYes900000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the description's value is in what it adds: the tool is offline/deterministic, priced at $0.003 USDC on Base via x402, and returns one of four named verdicts. Those are genuinely useful behavioral facts not present in the annotations. It stops short of describing error behavior or how partial-exclusion proration is computed.

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?

The core purpose is front-loaded in the first clause, which is good, but the definition then becomes a dense run-on parenthetical that mixes computation details, a full parameter dump, and pricing. The parameter enumeration largely duplicates what a schema should carry, making the text heavier than needed.

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 usefully explains the return surface (taxable gain plus a FULLY_EXCLUDED/PARTIALLY_TAXABLE/NOT_ELIGIBLE/LOSS verdict) and discloses the payment requirement. It is nearly complete for a deterministic calculator; the one weakness is the unresolved mismatch between the long parameter list and the two-parameter input schema.

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

Parameters4/5

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

Schema coverage is 100% for the two required parameters, so the baseline would be 3 — but the description goes further, enumerating optional inputs (selling_costs, filing=single|mfj, owned_months, used_months of last 60, spouse_used_months, last_exclusion_months_ago, reason=work|health|unforeseen, depreciation, nonqualified_months, total_owned_months) with enum values and units the schema omits. The gap is that these documented parameters do not appear in the input schema at all, leaving the agent unsure whether they are actually accepted.

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 names a specific verb and resource — a US home-sale gain exclusion calculator under IRC 121 / Pub 523 — and enumerates the exact computations (gain, $250k/$500k limit, 2-of-5-year tests, partial exclusion, depreciation recapture, verdict). This clearly separates it from generic tax siblings like finance_capital_gains or finance_estimated_tax without needing their schemas.

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 establishes clear context: US, home sale, IRC 121, offline calculator, and the scenarios it covers (work/health/unforeseen moves, nonqualified use). However, it never states when NOT to use it or names an alternative sibling (e.g. for investment property or non-US sales), so the agent must infer the boundary conditions.

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