Skip to main content
Glama

MiPiso.net · Spain property rules

Compare one rule across many places

compare_rule
Read-onlyIdempotent

One rule across every municipality of a comunidad or provincia (or a list of place_ids), in one call: its value in each, with source, check date and tier. Suited to portfolio and "where can I…" questions, e.g. key alquiler_turistico_licencias over a province (where new tourist rentals are allowed) or ibi_urbana_tipo (property tax by town). Paginated by 150. En español: comparar una norma o impuesto entre municipios (dónde se permite el alquiler turístico, qué municipio tiene el IBI más bajo).

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": {
      "key": "<key>"
    },
    "name": "compare_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesA rule key, e.g. alquiler_turistico_licencias, ibi_urbana_tipo, plusvalia_tipo_gravamen, itp_tipo_general.
dateNoOptional YYYY-MM-DD. Default today.
offsetNoPagination offset (next_offset of the previous page).
area_idNoA comunidad or provincia place id from find_place.
place_idsNoInstead of area_id: up to 200 place ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured behavior: the response carries each place's value plus source, check date and tier, and results are paginated by 150 — important because there is no output schema. It doesn't say what happens when a place lacks the rule at all (null vs omitted).

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 core capability and scope are front-loaded in the first clause, followed by use cases and then mechanics. The English and Spanish sentences are near-duplicates, which costs some density, but the duplication is deliberate bilingual routing and nothing is padded with filler.

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 no output schema, the description carries the return-shape burden and does so (value per place, source, check date, tier) while also explaining pagination. For a read-only comparison tool with full schema coverage, the only real gap is the edge case of a rule that doesn't exist in a given municipality.

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 parameters (key, date, offset, area_id, place_ids) are already documented, including the find_place provenance and the 200-id cap. The description's main contribution beyond the schema is the fixed page size of 150, which gives meaning to offset, plus the area_id-vs-place_ids alternative framing. That is a modest addition over an already complete schema, so baseline-plus is appropriate.

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+scope: one rule key evaluated 'across every municipality of a comunidad or provincia (or a list of place_ids), in one call'. That scope statement alone separates it from the single-place get_rules sibling without needing to open either 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?

Usage context is explicit — 'Suited to portfolio and "where can I…" questions' — and two concrete worked examples (alquiler_turistico_licencias over a province, ibi_urbana_tipo by town) show the intended question shape. It stops short of naming an alternative for single-place lookups, so the when-NOT-to-use side is only implied by the scope phrase.

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