Skip to main content
Glama

calculate es depreciation

calculate_es_depreciation
Read-onlyIdempotent

Spanish depreciation with the official table (LIS art. 12.1.a): maximum straight-line rate and maximum years per asset (IT equipment 25%/8, software 33%/6, transport 16%/14, furniture 10%/20, industrial buildings 3%/68...), any rate between 1/max-years and the maximum, first year pro rata by days; new items up to 300 EUR each freely depreciated up to 25,000 EUR per period (LIS 12.3.e). Spain, as of 2026-11-21 (BOE consolidated texts, AEAT and Seguridad Social). General information and estimates only; no personalised advice, representation or filing. Unverified 2026 values (reduced autónomo quota, 7% hard-to-justify expenses, 2026 late-payment interest rate, regional scales, 2027 calendar) are flagged, not assumed.

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": {
      "elemento": "<elemento>",
      "coste": "<coste>",
      "inicio": "<inicio>"
    },
    "name": "calculate_es_depreciation"
  }
}

Input Schema

NameRequiredDescriptionDefault
coefNoChosen rate as a fraction (default: maximum)
costeYesCost excl. VAT (EUR)
nuevoNoNew asset
inicioYesDate put into use
elementoYesAsset type
usadoLibertadNoAmount already freely depreciated this period under the 300 EUR rule (EUR)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, and the description builds on that by disclosing the legal basis, the effective date (2026-11-21, BOE/AEAT sources), that outputs are estimates rather than filings, and that unverified 2026 values are flagged rather than assumed. It lacks any statement about what the calculation returns, which is a real gap given there is no output schema.

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 purpose and rate table are front-loaded, which is good, but the whole description is one very long run-on sentence that mixes core mechanics, a parenthetical list of unverified values and disclaimer boilerplate. The unverified-values clause is defensible context, but a three-sentence structure would have made the rules far easier to scan.

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 6-parameter, 3-required calculator with full schema coverage and no output schema, the description covers the legal basis, the rate bounds, pro-rata first year, and the low-value asset exception. The omission of return-value details and of rates for the several enum values not listed (autocamiones, utiles, instalaciones, edificios-comerciales) are the remaining gaps.

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 already 100%, so baseline would be 3, but the description adds real meaning the schema does not: the chosen rate must fall 'between 1/max-years and the maximum', the default is the maximum rate, and the 300 EUR / 25,000 EUR rule explains what 'nuevo' and 'usadoLibertad' actually govern. It also supplies the rate/max-years pairs per asset type that the enum lacks.

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 verb and resource -- Spanish depreciation using the official LIS art. 12.1.a table -- and the opening phrase 'Spanish depreciation' immediately separates it from the sibling country calculators such as calculate_fr_depreciation and calculate_us_depreciation. It even names the legal instrument, so an agent knows exactly the domain.

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

Usage Guidelines3/5

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

The jurisdiction ('Spain') and the scope ('General information and estimates only; no personalised advice, representation or filing') imply when the tool applies and when it should not be used for actual filing, but the description never states an explicit when-to-use condition or names an alternative sibling. The routing signal is inferable from the country prefix rather than spelled out.

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.