Skip to main content
Glama

B2B cross-border withholding risk

b2b_withholding_risk
Read-onlyIdempotent

Standard precision: this calculator uses ordinary floating-point arithmetic, keeps no dated table of official rates, and has not yet passed our full reference-test suite. Calculate cross-border B2B consulting/software invoice tax gross-up, statutory vs DTAA bilateral tax treaty withholding rates (Form W-8BEN/W-8BEN-E), and Permanent Establishment (183-day) tax audit exposure.

Behavior: Deterministic, idempotent calculation with zero external side effects. Computes required gross invoice amount: Gross = Net / (1 - WHT_rate). Analyzes treaty tax relief savings (Statutory WHT vs Treaty WHT) and triggers high-risk Permanent Establishment alert if physical presence exceeds the 183-day international treaty threshold.

Usage Guidelines: Use when exporting services cross-border or structuring international client contracts subject to foreign withholding tax. Do not use for digital nomad individual income tax exclusion; use feie_nomad_tracker instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysInCountryNoCumulative physical days spent in client jurisdiction over a rolling 12-month period. Values over 183 trigger Permanent Establishment audit risk.
treatyRatePercentNoReduced withholding tax rate percentage under applicable bilateral Double Tax Avoidance Agreement (DTAA) (e.g. 0, 10, 15%).
invoiceNetRequiredNoNet spendable cash amount required to be landed in exporter account in USD ($). Must be positive.
statutoryRatePercentNoForeign client country statutory withholding tax rate percentage (e.g. 30 for 30%). Default is 30.0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / daysInCountry / description
      Previous value: -"Cumulative physical presence days in client country over 12 months"New value: +"Cumulative physical days spent in client jurisdiction over a rolling 12-month period. Values over 183 trigger Permanent Establishment audit risk."
    • changedInput schema / properties / invoiceNetRequired / description
      Previous value: -"Net spendable cash payout required by exporter ($)"New value: +"Net spendable cash amount required to be landed in exporter account in USD ($). Must be positive."
    • changedInput schema / properties / statutoryRatePercent / description
      Previous value: -"Source country statutory withholding tax % (default 30%)"New value: +"Foreign client country statutory withholding tax rate percentage (e.g. 30 for 30%). Default is 30.0."
    • changedInput schema / properties / treatyRatePercent / description
      Previous value: -"Bilateral tax treaty reduced WHT rate % (e.g. 15% or 0%)"New value: +"Reduced withholding tax rate percentage under applicable bilateral Double Tax Avoidance Agreement (DTAA) (e.g. 0, 10, 15%)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description discloses that the tool is 'Deterministic, idempotent calculation with zero external side effects' and warns that it 'uses ordinary floating-point arithmetic, keeps no dated table of official rates, and has not yet passed our full reference-test suite.' It also reveals the core formula and PE threshold behavior, providing meaningful context beyond structured data.

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 description is dense but organized into purpose, behavior, and usage paragraphs, with no filler. The only minor structural weakness is that the precision caveat appears before the main purpose statement, which slightly delays the agent's understanding of what the tool does.

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 tax calculator with zero required parameters, all inputs defaulted, and full schema descriptions, the description covers the computation formula, the PE threshold, the gross-up mechanism, and the recommended alternative tool. It does not explicitly describe the output structure, but the computed results—gross amount, treaty savings, and PE alert—are strongly implied.

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; the description adds value on top by explaining how the parameters relate: 'Gross = Net / (1 - WHT_rate)' and by framing daysInCountry and treaty versus statutory rates in terms of PE alerts and treaty relief savings. It does not need to repeat every parameter's schema description.

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 precise verb and resource: 'Calculate cross-border B2B consulting/software invoice tax gross-up, statutory vs DTAA bilateral tax treaty withholding rates... and Permanent Establishment (183-day) tax audit exposure.' This clearly differentiates it from sibling tax tools, especially because it explicitly invokes feie_nomad_tracker as the alternative for a different use case.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Usage Guidelines' paragraph is explicit and actionable: 'Use when exporting services cross-border or structuring international client contracts subject to foreign withholding tax. Do not use for digital nomad individual income tax exclusion; use feie_nomad_tracker instead.' This gives both a positive trigger and a named alternative.

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