Skip to main content
Glama

VAT of a quarter (Modelo 303)

get_vat_quarter
Read-only

One issuer's VAT for a quarter, to fill in Modelo 303: VAT charged by rate on its issued invoices (by operation date), exempt and not-subject bases, VAT paid on the expenses of its homes, the estimated pro-rata and the result, plus the Modelo 303 boxes (modelo303). With file=true it also returns the file to import in the AEAT's Sede (modelo303File, ISO-8859-1 bytes in base64), or why it cannot be made (blocked: prorata, negativeBox). Keyio prepares the 303; the owner files it with their certificate or Cl@ve. An estimate: say so and suggest checking it with a tax adviser. Platform commissions come from the stays of the issuer's homes (each booking's commission, or the fee kept from a payout matched in the Bank) by check-out, or from the quarter total typed for a platform: with no VAT from another EU country (reverse_charge) they are self-assessed in boxes 10/11 and deducted in 36/37 and must also go on Modelo 349 (warning modelo349); with Spanish VAT their VAT is deducted in 28/29. commissions.unstated lists platforms whose invoicing is not stated yet (left out until set with update_billing_profile platformCommissions); commissions.incomplete, platforms with stays missing a commission. Answers not found while this is not available on the account. Requires the invoicing feature.

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": {
      "id": "<id>",
      "year": "<year>",
      "quarter": "<quarter>"
    },
    "name": "get_vat_quarter"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe issuer (list_billing_profiles)
fileNoAlso return the 303 file to import in the Sede
yearYesYear, e.g. 2026
quarterYesQuarter, 1 to 4
carryOverNoBox 110: VAT to carry over from earlier quarters, if the owner has any

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds a great deal beyond that: file=true triggers file generation with ISO-8859-1 bytes base64-encoded, explicit blocked states (prorata, negativeBox) explaining why no file can be produced, the failure mode "Answers not found while this is not available on the account", and the downstream AEAT Modelo 349 cross-filing warning. It also discloses how platform commissions are sourced (booking commission or payout fee by check-out) and the reverse-charge vs Spanish VAT box routing.

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

Conciseness3/5

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

The core return-value statement is front-loaded, which is good, but the body is a dense run-on sequence of nested clauses covering tax mechanics, commission sourcing, and box routing with no visual structure. For a genuinely complex fiscal tool some length is earned, yet several clauses (Modelo 349 routing, platform commission sourcing) read as reference documentation rather than invocation guidance.

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?

There is no output schema, so the description carries the burden of describing return values, and it does so thoroughly: modelo303 boxes, modelo303File encoding, and the diagnostic fields commissions.unstated and commissions.incomplete with their meanings. Combined with the prerequisite and the file failure modes, an agent has enough to call the tool and interpret the response.

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 description coverage is 100%, so the baseline is 3, and the description meaningfully enriches only `file` (what the file is for, its encoding, and its blocked outcomes) plus the meaning of `id` as the issuer. `carryOver` (box 110) and `quarter` semantics are left entirely to the schema, so the description adds real but partial value over structured fields.

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 resource and scope — one issuer's VAT for one quarter, oriented to Modelo 303 — and enumerates what the payload contains (VAT by rate, exempt and not-subject bases, VAT on home expenses, pro-rata, result, and the Modelo 303 boxes). An agent can distinguish this from generic financial siblings like get_income_summary or get_owner_statement 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 states the purpose context (preparing Modelo 303), a hard prerequisite ("Requires the invoicing feature"), the division of labour (Keyio prepares, the owner files with certificate or Cl@ve), and a caution to present results as an estimate and suggest a tax adviser. It does not name any alternative sibling tool to use instead when the invoicing feature is absent or when a different period/report is wanted, so it stops short of explicit when-not guidance.

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.