Skip to main content
Glama

finance_capital_gains

Read-only

Capital Gains Tax Calculator — Federal capital gains tax for tax year 2026 or 2027 (IRS thresholds): stacks long-term gains and qualified dividends on top of ordinary taxable income across the 0/15/20% bands, taxes short-term gains at ordinary brackets, nets gains and losses ($3,000 loss offset + carryforward), adds the 3.8% net investment income tax, and shows how much more gain could be harvested at 0%. Inputs: ltcg (required, dollars; negative = loss), ordinary (taxable ordinary income after deductions, default 0), stcg, filing (single|mfj|mfs|hoh), year (2026|2027), magi (for NIIT; estimated if omitted), state_rate (flat %, optional). Offline, instant. Estimate, not tax advice. 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": {
      "ltcg": "<ltcg>"
    },
    "name": "finance_capital_gains"
  }
}

Input Schema

NameRequiredDescriptionDefault
ltcgYes40000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations, the description discloses the actual computation semantics (LTCG stacked on ordinary income, STCG at ordinary brackets, $3,000 loss offset plus carryforward, 3.8% NIIT, MAGI estimated when omitted) and confirms the tool is offline and instant with a stated price of $0.003 USDC via x402. That payment requirement is operationally critical and appears nowhere in the annotations. Minor caveat: 'Offline, instant' is in mild tension with openWorldHint=true in the annotations, though it does not misstate what the tool computes.

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?

The identity and computational scope are front-loaded, and nearly every clause carries information an agent cannot get from schema or annotations. It is a single dense run-on paragraph, however, and the 'Inputs:' enumeration would be easier to scan as a separate structured block.

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 one-required-parameter calculator with no output schema, the description covers what is computed, the supported tax years, defaults, optional inputs, the estimate disclaimer, and cost. The main completeness defect is the mismatch between the seven named inputs and the single-parameter schema, which leaves an agent unsure which parameters are actually accepted.

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?

The schema's only description is the literal example '40000', which conveys no semantics, so the description carries the load: ltcg is dollars and negative means loss, ordinary is post-deduction with default 0, filing enumerates single|mfj|mfs|hoh, year enumerates 2026|2027, and magi/state_rate roles are explained. The gap is that the description references seven inputs while the input schema declares only ltcg, so an agent following the prose may attempt parameters the schema does not expose.

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 resource and computation: federal capital gains tax across 0/15/20% bands, short-term at ordinary brackets, NIIT, loss netting, and harvest headroom for tax years 2026/2027. That is far more specific than the sibling 'finance_income_tax' (ordinary income) and lets an agent tell the two apart from the description alone.

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 scopes usage by year (2026|2027) and notes 'Estimate, not tax advice' and 'Offline, instant', which implies when it is appropriate. However, there is no explicit when-not-to-use guidance and no named alternative (e.g., pointing an agent to finance_income_tax for ordinary-income-only questions or to a state tax tool given state_rate is only a flat input).

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