Skip to main content
Glama

get_tax_estimate

ESTIMATE of capital-gains tax in a country, in that country's currency: the country's cost method (FIFO, average cost, LIFO, UK pooling, annual sum), each trade converted at the ECB rate of its date, the rules of the year of sale, holding period, annual allowance and, where the law allows, losses carried from previous years. Not a tax return. Each country's options are in list_tax_countries (options field).

Input Schema

NameRequiredDescriptionDefault
yearNoTax year of the sales (optional). In the UK and Australia it is the year the tax year starts (2025 = 2025/26).
countryYesTwo-letter country code (e.g. PT, ES, US). See list_tax_countries.
alternativeNoBR, PT, AR and AT only: the alternative option for where the coins are held (BR foreign exchange; PT broker outside the EU/EEA with no tax treaty; AR sale in pesos; AT Austrian platform).
marginalRateNoOnly where the rate depends on income (DE, GB, US, CA, AU, LU, MX): the person's marginal rate as a fraction (0.35 = 35%). Without it the top rate is used.
marginalRateLongNoUS only: the person's long-term rate as a fraction (0, 0.15 or 0.20, plus 0.038 NIIT if applicable).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the computation model (cost method per country, ECB rate at trade date, year-of-sale rules, holding period, allowance, loss carry-forward) and a key caveat ('Not a tax return'). It omits auth/permission requirements and any rate-limit or performance notes.

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?

Two sentences, front-loaded with the purpose and scope before the mechanics, and the caveat lands early enough to matter. The second sentence is a dense enumeration, but each clause carries distinct information rather than padding.

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 5-parameter, no-annotation, no-output-schema tool, the description covers the estimation model, the currency, the legal-scope caveat, and where to find country options. It leaves the return shape (fields, breakdown per trade/year) unspecified, which is a minor gap given no output schema exists.

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 the baseline is 3, but the description adds a genuinely useful pointer ('Each country's options are in list_tax_countries (options field)') that explains where the alternative/country option values come from. It does not add much beyond that for year or marginalRate, which the schema already documents.

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?

Opens with a specific verb+resource ('ESTIMATE of capital-gains tax in a country') and immediately scopes it ('in that country's currency', 'Not a tax return'), which cleanly separates it from siblings like get_realized_gains or get_pnl. An agent can identify the tool's job without opening the schema.

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 routes the agent to list_tax_countries for per-country options and states the estimate's scope, giving clear context for use. It stops short of explicitly naming when to prefer this over get_realized_gains or get_pnl, so no exclusions or alternatives are stated.

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