Skip to main content
Glama

check es withholding

check_es_withholding
Read-onlyIdempotent

Domestic withholding tax on a payment to a non-resident from Spain (AEAT IRNR; 19% for EU, Iceland and Norway residents): rate and amount for royalties, services, interest, dividends, salary, director's fees or rent. Treaty rates are not applied; a rate not stated on the official page is returned as not covered. General information only: not tax advice, as of 2026-11-22.

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": {
      "type": "<type>",
      "amount": "<amount>"
    },
    "name": "check_es_withholding"
  }
}

Input Schema

NameRequiredDescriptionDefault
etncNoFR: recipient in a non-cooperative state
typeYesType of payment
euEeaNoES: recipient resident in the EU, Iceland or Norway
amountYesAmount paid
lowPayNoTW salary: full-month pay at most 1.5 x basic wage
listedBondNoTW interest: listed bonds or short-term notes
listedSharesNoJP dividends: listed shares, holder under 3%

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the safety profile is covered. The description adds real value beyond that: the 19% EU/Iceland/Norway baseline, the fallback that unlisted rates return as 'not covered', and the as-of date and non-advice disclaimer. It does not describe the response shape beyond 'rate and amount' or how the fallback surfaces to the caller.

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 operative content (what is taxed, at what rate, for which income types) is front-loaded, followed by the treaty caveat and the disclaimer. The nested parenthetical is dense but each sentence carries distinct information; only the 'General information only: not tax advice' clause is boilerplate.

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 seven parameters, no output schema and full annotation coverage, the definition gives enough to call correctly: it identifies inputs, the rate logic, the 19% baseline and the failure mode for uncovered rates. The main residual gap is that it never explains what the four non-Spanish-looking flags do in a Spain withholding context.

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%, so the baseline is 3. The description restates the payment types that map to the 'type' enum and explains the EU/Iceland/Norway condition behind euEea, but says nothing about etnc, lowPay, listedBond or listedShares, which read as other-country flags and 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?

The description names a specific operation (domestic withholding tax computation), the exact jurisdiction and authority (Spain, AEAT IRNR), the recipient profile (non-resident), the income types covered, and the output (rate and amount). This clearly separates it from the other country withholding siblings such as check_fr_withholding or check_de_withholding.

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?

Scope is unambiguous: Spanish-source domestic withholding only, with an explicit exclusion that treaty rates are not applied, which steers an agent away from using this for treaty-relief questions. It stops short of naming an alternative tool for treaty or cross-border cases, so routing is inferable by jurisdiction rather than 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.