Skip to main content
Glama

HammerMap: Spanish court, State and Social Security auctions

Search Spanish auction listings

search_listings
Read-onlyIdempotent

Search active Spanish court auctions (BOE section IV), State/public-body sales (BOE section V-B) and Social Security auctions (TGSS). Sources: the BOE (Agencia Estatal Boletín Oficial del Estado) for court auctions (section IV) and State sales (section V-B), and the TGSS (Tesorería General de la Seguridad Social) for Social Security auctions. Only active listings are returned: a listing whose bid deadline (Europe/Madrid date) has passed is left out, checked on every request. Use it first to find listings by province, town, type, asset type, starting price or dates; then call get_listing with an id for the full record. Returns total count, paging (limit/offset) and short records: id, title in 5 languages, approximate place, seller, starting price in EUR when the notice gives one, publication date, deadline, HammerMap risk light and links (HammerMap page, official channel, BOE notice when there is one). Coverage: Spain only. Data are updated once per working day; attribution.data_updated and attribution.latest_boe_publication show how fresh they are. Court auction notices in BOE open data have no price, description or closing date (those are on the official portal). All filters are optional and combine with AND.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_listings"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree text, accent-insensitive, matched in title, seller, town, province and lot description, e.g. "vivienda" or "Puerto de Valencia"
sortNopublished_desc = newest first (default), deadline_asc / deadline_desc = closing soonest / latest (no deadline last), price_asc / price_desc = by starting price (no price last), risk_asc / risk_desc = by HammerMap risk light green < yellow < redpublished_desc
typeNocourt_auction = judicial auction (BOE IV); state_sale = sale by the State or a public body (BOE V-B) or a Social Security auction (TGSS)
limitNoResults per page, 1-100
offsetNoNumber of results to skip, for paging
countryNoISO 3166-1 alpha-2 country code. Only ES (Spain) has data; any other value returns 0 results.ES
provinceNoSpanish province, exact name, accent-insensitive, e.g. Madrid, Valencia, Illes Balears. Call get_facets for the list.
max_priceNoMaximum starting price in EUR. Only listings with a known price match.
min_priceNoMinimum starting price in EUR. Only listings with a known price match.
procedureNoapremio = enforcement for debt, voluntaria = voluntary court sale, concursal = insolvency, estado = State sale, tgss = Social Security (TGSS) auction
asset_typeNovivienda = home, local = commercial premises, garaje = parking, solar = building plot, rustica = rural land, inmueble = other real estate, vehiculo = vehicle, otros = other goods, unknown = not stated in the notice
deadline_toNoBid deadline to; only listings with a known deadline match (YYYY-MM-DD)
municipalityNoTown, exact name: the court's town for court auctions, the asset's town for State sales
published_toNoPublication date to (YYYY-MM-DD)
deadline_fromNoBid deadline from; only listings with a known deadline match (YYYY-MM-DD)
published_fromNoPublication date from (BOE issue; for TGSS the portal's last update) (YYYY-MM-DD)

Output Schema

NameRequiredDescriptionDefault
itemsYesShort listing records
limitNo
totalYesNumber of matching listings
offsetNo
licenceNo
attributionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / published_from / description
      Previous value: -"BOE publication date from (YYYY-MM-DD)"New value: +"Publication date from (BOE issue; for TGSS the portal's last update) (YYYY-MM-DD)"
    • changedInput schema / properties / published_to / description
      Previous value: -"BOE publication date to (YYYY-MM-DD)"New value: +"Publication date to (YYYY-MM-DD)"
    • changedInput schema / properties / type / description
      Previous value: -"court_auction = judicial auction (BOE IV); state_sale = sale by the State or a public body (BOE V-B)"New value: +"court_auction = judicial auction (BOE IV); state_sale = sale by the State or a public body (BOE V-B) or a Social Security auction (TGSS)"
  2. Changed2 schema fields changed
    • changedInput schema / properties / sort / description
      Previous value: -"published_desc = newest first (default), deadline_asc = closing soonest, price_asc / price_desc = by starting price (no price last)"New value: +"published_desc = newest first (default), deadline_asc / deadline_desc = closing soonest / latest (no deadline last), price_asc / price_desc = by starting price (no price last), risk_asc / risk_desc = by HammerMap risk light green < yellow < red"
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "published_desc",
      -  "deadline_asc",
      -  "price_asc",
      -  "price_desc"
      -]New value: +[
      +  "published_desc",
      +  "deadline_asc",
      +  "deadline_desc",
      +  "price_asc",
      +  "price_desc",
      +  "risk_asc",
      +  "risk_desc"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / procedure / description
      Previous value: -"apremio = enforcement for debt, voluntaria = voluntary court sale, concursal = insolvency, estado = State sale"New value: +"apremio = enforcement for debt, voluntaria = voluntary court sale, concursal = insolvency, estado = State sale, tgss = Social Security (TGSS) auction"
    • changedInput schema / properties / procedure / enum
      Previous value: -[
      -  "apremio",
      -  "voluntaria",
      -  "concursal",
      -  "estado"
      -]New value: +[
      +  "apremio",
      +  "voluntaria",
      +  "concursal",
      +  "estado",
      +  "tgss"
      +]
  4. Changed18 schema fields changed
    • addedInput schema / properties / asset_type / description
      Added value: +"vivienda = home, local = commercial premises, garaje = parking, solar = building plot, rustica = rural land, inmueble = other real estate, vehiculo = vehicle, otros = other goods, unknown = not stated in the notice"
    • changedInput schema / properties / country / description
      Previous value: -"ISO country code. Only ES has data."New value: +"ISO 3166-1 alpha-2 country code. Only ES (Spain) has data; any other value returns 0 results."
    • addedInput schema / properties / deadline_from / description
      Added value: +"Bid deadline from; only listings with a known deadline match (YYYY-MM-DD)"
    • addedInput schema / properties / deadline_to / description
      Added value: +"Bid deadline to; only listings with a known deadline match (YYYY-MM-DD)"
    • addedInput schema / properties / limit / description
      Added value: +"Results per page, 1-100"
    • changedInput schema / properties / max_price / description
      Previous value: -"EUR; only listings with a known starting price"New value: +"Maximum starting price in EUR. Only listings with a known price match."
    • changedInput schema / properties / min_price / description
      Previous value: -"EUR; only listings with a known starting price"New value: +"Minimum starting price in EUR. Only listings with a known price match."
    • changedInput schema / properties / municipality / description
      Previous value: -"Town (court town for court auctions)"New value: +"Town, exact name: the court's town for court auctions, the asset's town for State sales"
    • addedInput schema / properties / offset / description
      Added value: +"Number of results to skip, for paging"
    • changedInput schema / properties / procedure / description
      Previous value: -"apremio (debt), voluntaria, concursal (insolvency), estado (State sale)"New value: +"apremio = enforcement for debt, voluntaria = voluntary court sale, concursal = insolvency, estado = State sale"
    • changedInput schema / properties / province / description
      Previous value: -"Spanish province, e.g. Madrid, Valencia, Illes Balears (accent-insensitive)"New value: +"Spanish province, exact name, accent-insensitive, e.g. Madrid, Valencia, Illes Balears. Call get_facets for the list."
    • addedInput schema / properties / published_from / description
      Added value: +"BOE publication date from (YYYY-MM-DD)"
    • addedInput schema / properties / published_to / description
      Added value: +"BOE publication date to (YYYY-MM-DD)"
    • changedInput schema / properties / q / description
      Previous value: -"Free text: title, seller, town, lot description"New value: +"Free text, accent-insensitive, matched in title, seller, town, province and lot description, e.g. \"vivienda\" or \"Puerto de Valencia\""
    • addedInput schema / properties / sort / description
      Added value: +"published_desc = newest first (default), deadline_asc = closing soonest, price_asc / price_desc = by starting price (no price last)"
    • changedInput schema / properties / type / description
      Previous value: -"court_auction or state_sale"New value: +"court_auction = judicial auction (BOE IV); state_sale = sale by the State or a public body (BOE V-B)"
    • addedOutput schema / properties / items / description
      Added value: +"Short listing records"
    • addedOutput schema / properties / total / description
      Added value: +"Number of matching listings"
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld=false, and the description adds substantive context beyond them: only active listings are returned because the deadline is re-checked on every request, data refresh cadence is once per working day with specific attribution fields, and court auction notices in BOE open data lack price, description and closing date. It also summarizes the return payload (total count, limit/offset paging, short record fields).

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?

Front-loaded with what the tool searches and the source taxonomy before moving to constraints and return shape, so the important content is first. There is some redundancy: the BOE/TGSS full names and their section mappings restate the opening sentence's parentheticals, which could be trimmed without losing meaning.

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?

For a 16-parameter search tool with an output schema, the description covers everything an agent needs: scope (Spain only), freshness semantics, the active-only filtering rule, the source-section mapping, known data gaps in BOE court notices, and the follow-up call to get_listing with an id.

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 schema already carries enum meanings, formats and the accent-insensitive matching rules. The description adds only marginal meaning beyond it, mainly that all filters are optional and combine with AND, plus the note that price filters only match listings with a known price.

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?

States a specific verb (search) and resource (active Spanish court, State and Social Security auction listings), names the exact source sections (BOE IV, BOE V-B, TGSS), and scopes coverage to Spain only. It also distinguishes itself from get_listing by positioning itself as the discovery step that takes filters and returns short records.

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

Usage Guidelines5/5

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

Explicitly says "Use it first to find listings by province, town, type, asset type, starting price or dates; then call get_listing with an id for the full record," naming the sibling and the handoff condition. It also tells the agent which filters exist and that they combine with AND, plus points to get_facets via the province parameter description.

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