Skip to main content
Glama

1031.help: exchange deadlines, tax math and DST filings

Tax on selling vs. exchanging investment property

estimate_exchange_tax
Read-onlyIdempotent

Estimates the tax on selling investment real estate outright (gain, section 1245 recapture, unrecaptured 1250 gain at up to 25%, 0/15/20% capital gains stacked on other income, 3.8% NIIT, state tax, cash left) and, when a replacement price is given, the 1031 exchange result: cash and mortgage boot, tax on the boot, gain deferred and replacement basis. 2025 or 2026 federal brackets. Same engine as the 1031.help calculator.

Input Schema

NameRequiredDescriptionDefault
stateNoTwo-letter state you will owe tax to, e.g. CA. Omit to leave state tax out.
new_loanNoNew loan on the replacement. Default 0.
tax_yearNoYear of the sale.2026
cash_addedNoExtra cash added beyond the sale proceeds. Default 0.
sale_priceYesSale price in dollars.
depreciationNoTotal depreciation taken or allowable. Default 0.
improvementsNoCapital improvements. Default 0.
include_niitNoInclude the 3.8% net investment income tax. False only for a real estate professional whose property was a trade or business.
filing_statusYessingle, mfj (married filing jointly), mfs (married filing separately), hoh (head of household), estates_trusts.
selling_costsNoCommission, title, transfer tax. Default 0.
purchase_priceYesOriginal purchase price plus buying costs.
mortgage_paid_offNoLoan paid off at the sale closing. Default 0.
replacement_priceNoReplacement property price. Give it to also get the exchange (boot) result.
other_taxable_incomeNoOther taxable income that year, after deductions. Default 0.
depreciation_personal_propertyNoPart of depreciation taken on personal property (cost segregation, bonus). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's job is to explain what is computed — and it does, naming each tax component (1245 recapture, unrecaptured 1250 at up to 25%, stacked 0/15/20% rates, 3.8% NIIT, state tax) and the exchange outputs. It also discloses scope limits (2025 or 2026 brackets) and provenance ('same engine as the 1031.help calculator'), though it does not state that results are estimates with no filing-grade guarantee.

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?

Front-loaded with the primary computation, with the conditional exchange branch clearly signaled by 'when a replacement price is given'. The single dense sentence packing the tax components is information-rich but borders on a list dump.

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

Completeness5/5

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

With 15 parameters and no output schema, the description carries the return-value burden and does so fully: it names every output (gain, recapture, unrecaptured 1250 gain, NIIT, state tax, cash left, boot, boot tax, deferred gain, replacement basis). Combined with the bracket-year scope, an agent has everything needed to call it and interpret the result.

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%, so baseline is 3; the description still adds value by explaining the conditional role of replacement_price (it toggles the entire exchange/boot computation) and by tying other inputs into the described outputs (other income drives capital gains stacking, depreciation drives recapture). It does not clarify ambiguous inputs such as cash_added or depreciation_personal_property beyond what the schema already says.

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 ('Estimates the tax on selling investment real estate outright') and enumerates the computations performed, including the 1031 branch when a replacement price is supplied. Nothing about it could be confused with the sibling tools exchange_deadlines or list_dst_offerings.

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?

Gives a clear triggering condition for the second mode: 'when a replacement price is given' you also get the exchange result, which tells the agent how to switch between sell-only and exchange analysis. It stops short of explicit when-not-to-use guidance (e.g., personal residence, non-US property), but no sibling competes for the same job.

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