Skip to main content
Glama

MiPiso.net · Spain property rules

Get property rules for a place

get_rules
Read-onlyIdempotent

Property rules in force for a place in Spain, resolved up the chain municipality → comunidad → state: rates, scales, reductions, deadlines, rental and tourist-rental regimes, with official source, check date and tier per figure. Filter by topic: purchase (Buying: transfer tax (ITP), stamp duty (AJD), VAT / IGIC on new builds, notary and registry fees, cost sharing); annual (Owning every year: IBI property tax, empty-home surcharges, waste tax, imputed income (IRPF / IRNR), non-resident Modelo 210); rental (Long-term renting: LAU, rent caps and updates, stressed areas, rental income tax reductions, room rentals); tourist_rental (Tourist / short-term rental: regional regime, municipal licences, the national registry, VAT, IBI tourist surcharge); sale (Selling: municipal plusvalía, capital gains (IRPF), non-resident 3% retention, reinvestment and over-65 exemptions); inheritance_gift (Inheritance and gifts: ISD scales, reductions and bonuses by comunidad, deadlines, plusvalía mortis causa); other (Everything else: mortgages (LCCI), squatting, VPO, co-ownership dissolution, renovation, company tax).

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": {
      "place_id": "<place_id>"
    },
    "name": "get_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoOptional YYYY-MM-DD: the rules in force on that date. Default today.
topicNoTopic. Without it you get an index of every rule (key, label, headline value); pass a topic for the full rows.
place_idYesA place id returned by find_place.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description adds material behavior beyond that: results are resolved up an administrative hierarchy, each figure carries an official source, a check date, and a tier, and the un-topic'd call returns an index rather than full rows. It does not discuss how out-of-Spain or unknown place ids are handled, but the disclosure is strong for a read tool.

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 scope sentence is front-loaded and the topic taxonomy is organized consistently as label-plus-parenthetical across all seven values, so the density is navigable. It is a very long single sentence held together by semicolons, and a bulleted breakdown would scan faster, but almost every clause carries information an agent needs to select a topic.

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 carries the burden of describing returns and does so: index vs full rows, source, check date, and tier per figure. Coverage is complete for a three-parameter read tool, with the only minor omission being failure behavior for an invalid or non-Spanish place id.

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 would be 3, but the description goes meaningfully further by unpacking every topic enum value — spelling out what purchase, annual, rental, tourist_rental, sale, inheritance_gift, and other actually cover (ITP, AJD, IBI, LAU, plusvalía, ISD, etc.). That taxonomy lives nowhere in the schema and is the main aid to picking a correct topic.

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 opens with a precise verb+resource: property rules in force for a place in Spain, resolved up the municipal → comunidad → state chain. It names the exact figure types (rates, scales, reductions, deadlines, regimes) and adds provenance (official source, check date, tier per figure), which is far more specific than the title alone and clearly differentiates it from get_rule_history or compare_rule.

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?

It explains the calling pattern well — call without topic for an index, pass a topic for full rows — but never states when to prefer this tool over siblings such as get_rule_history, get_recent_changes, or compare_rule. Usage is implied by the topic taxonomy rather than by explicit routing guidance, and the find_place prerequisite is only visible in the schema.

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