Skip to main content
Glama

Tax Reclaim calculator

Estimate a dividend history

estimate_dividends
Read-onlyIdempotent

Estimate the reclaimable withholding tax for a whole dividend history in one call: send either a broker export as csv_text with its broker id, or a list of payments (ISIN, payment_date YYYY-MM-DD, gross_amount, currency, optional withheld_amount), max 500. Returns each payment with its source country, treaty rate, reclaimable amount in the residence currency, form and deadline, plus totals per source country. A payment whose source country cannot be resolved is returned as unresolved with no amount; withheld_is_estimated marks a withholding figure estimated from the statutory rate.

Input Schema

NameRequiredDescriptionDefault
brokerNoOne of: avanza, bux, degiro, etoro, freetrade, ibkr, ibkr_flex, nordnet, rabobank, revolut, saxo, schwab, swissquote, trade_republic, trading212, xtb, or generic (needs column_map)
csv_textNoBroker export as text
paymentsNo
column_mapNogeneric only: target field -> CSV column (asset_name, payment_date, gross_amount, ...)
residence_countryYesISO alpha-2
residence_currencyNoISO 4217EUR

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, and the description goes beyond them by disclosing the return payload shape, the 500-payment cap, the 'unresolved with no amount' degradation path, and the meaning of withheld_is_estimated. It does not mention auth requirements, rate limits, or the error behavior when both/neither input is provided.

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?

One dense paragraph that front-loads the purpose, then input modes, then return shape and edge cases — every sentence carries information. It is close to a run-on, but nothing is redundant or padded.

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 no output schema, the description steps up and documents the returned fields (source country, treaty rate, reclaimable amount, form, deadline, per-country totals) plus the unresolved and estimated-withholding flags. Combined with the covered parameters, an agent has enough to call it and interpret results correctly.

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 83%, so the schema already carries most parameter meaning; the description adds the coupling that broker must accompany csv_text and enumerates the payment fields (ISIN, payment_date format, gross_amount, currency, optional withheld_amount). column_map and residence_currency handling are left entirely to the schema.

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 (estimate), resource (reclaimable withholding tax across a dividend history), and scope ('a whole dividend history in one call'), which implicitly separates it from the single-refund sibling estimate_refund. An agent knows exactly what this computes 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?

Explicitly prescribes the two invocation paths — "send either a broker export as csv_text with its broker id, or a list of payments" — which is real routing guidance the agent would otherwise have to infer. It stops short of saying when to prefer this over estimate_refund or what to do if neither input is supplied.

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