Skip to main content
Glama

MaCalculatriceEnLigne

Calculate US Capital Gains

calculate_us_capital_gains
Read-onlyIdempotent

Calculate US capital gains tax — short-term (ordinary rates) or long-term (preferential rates). Returns: {tax, gain_type}. See list_bundles for related 'finance-us' calculators.

Input Schema

NameRequiredDescriptionDefault
sale_priceYesSale price in USD
filing_statusNoFiling status for rate thresholdssingle
purchase_priceYesOriginal purchase price in USD
holding_period_monthsYesHolding period in months

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds the return shape ({tax, gain_type}) and the rate-treatment split, but nothing about inputs' edge cases, rate-table assumptions, or errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler: the tax regime is front-loaded, the return contract follows, and the related-bundle pointer closes. Every clause carries information an agent can act on.

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 an output schema present, the description needn't enumerate return fields (it does anyway). For a four-parameter, enum-bearing, read-only calculator it covers purpose and output shape adequately; only the boundary between this and the property/foreign capital-gains siblings is left implicit.

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% and all four parameters carry their own descriptions, so the baseline is 3. The description's mention of holding period and filing-status-driven rate thresholds loosely maps to inputs but adds no format, unit, or boundary detail beyond the schema.

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 ('Calculate US capital gains tax') and crisply splits the two regimes (short-term ordinary vs long-term preferential). The 'US' qualifier does useful work against the many international siblings, though it never distinguishes itself from the adjacent calculate_capital_gains_property or the FR variants explicitly.

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?

The description tells the agent that the short-term/long-term distinction exists and is driven by holding period, which implies when each rate path applies. But it gives no explicit when-to-use guidance, no prerequisites, and the only pointer (list_bundles) is a discovery cross-reference rather than an alternative tool 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.