Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Capital Gains Tax Calculator

estimate_capital_gains_tax
Read-onlyIdempotent

Capital Gains Tax Calculator with a chart, the same math as the web page. What is the tax on your gain? Enter what you paid, what you sold it for and your income. See the 2026 federal tax, long term and short term. It estimates 2026 US federal tax on one sale, long term and short term, using IRS figures. It is not tax advice. Ask a tax professional about your own return. People ask for it as "capital gains tax calculator", "how much is capital gains tax" or "capital gains calculator".

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": "estimate_capital_gains_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
fsNoHow you file your taxes. Default: single.
stNoYour state’s tax rate. A percent: 5 means 5%. Optional. We use one flat rate. Many states have brackets. Default: 0.
incNoYour income this year. US dollars. Taxable income: your income minus deductions. Leave out this sale. Default: 60000.
longNoDid you own it more than a year?. Default: 1.
magiNoIncome for the 3.8% tax. US dollars. Your modified adjusted gross income, with this sale. Leave blank and we estimate it. Empty if left out.
paidNoWhat you paid. US dollars. Include any fees you paid to buy. Default: 10000.
soldNoWhat you sold it for. US dollars. Default: 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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), so the description adds real value on top: it is an estimate only, not tax advice, uses one flat state rate even though many states have brackets, and is scoped to a single sale in 2026. Missing is any note on what the result looks like (chart vs. numbers) or rounding/precision 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?

The core statement is front-loaded and clear, but there is redundancy between "What is the tax on your gain?" and "It estimates 2026 US federal tax on one sale," and the keyword-list sentence at the end is search-engine filler that delays nothing useful for an agent.

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 seven all-optional, fully documented parameters and no output schema, the description does the needed work: it identifies the computed output (2026 federal tax, long and short term), the single-sale scope, and the liability caveat. Only the return format is left unspecified, which is a minor gap given the tool's simplicity.

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 coverage is 100%, including enum values and defaults, so the schema already carries parameter meaning. The description reinforces a few of them (paid, sold, income, long vs. short term) but adds no syntax or interpretation beyond what the schema documents, so the baseline 3 applies.

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?

States a specific verb and resource: it estimates 2026 US federal capital gains tax on one sale, both long term and short term, using IRS figures. The single-sale and federal-only scope distinguishes it from a general tax tool, though it never names a sibling calculator to route agents away from.

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?

Usage is implied rather than prescribed: "Enter what you paid, what you sold it for and your income" and "estimates 2026 US federal tax on one sale" tell the agent the input shape and the single-sale limitation. It never says when to prefer another calculator or what to do for multi-sale or non-2026 scenarios, and the closing SEO phrasing ("People ask for it as...") adds no selection guidance.

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