Skip to main content
Glama

Search Blocket

search
Read-onlyIdempotent

Find live Blocket listings by keyword, filters, distance, and sort; get compact ad rows, totals, facets, and deal price labels.

Instructions

Search live Blocket ads in any vertical with filters, distance and sorting. Returns compact rows (price, place, age, seller, badges, key specs, url, photo, risk_words), the total count, the filters applied, unmatched filter values with suggestions, optional facets (value counts to refine with) and blocket_url (the same search on blocket.se). exclude/require/title_only drop off-topic rows and read up to 4 more pages to refill (scanned, dropped, next_page). deals labels each row's price against the same search's asking prices (deal_basis). Not for prices in shops (new products): use a price comparison tool such as Billigast.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
nearNoOnly ads within radius_km of a point; rows then carry distance_km.
pageNoBlocket result page, default 1. Pass next_page from a previous response to continue.
rowsNoAds per page, default 20. With exclude/require/title_only a response can hold a few more.
sortNoDefault relevance. closest needs near; year_*/mileage_* vehicles; length_* boats. deal = cheapest vs the median first (implies deals).
dealsNoLabel each row's price great/good/fair/high with its percentile and % vs the median asking price of up to 200 ads of the same search (deal_basis). Costs one extra request.
queryNoSearch words, ideally Swedish ('soffa', 'barnvagn', 'V70', 'Hallberg-Rassy'). Blocket operators: -word excludes a word, a OR b matches either, "exact phrase", word* matches a prefix.
sinceNoISO time: only ads published after it (newest first). Use for 'anything new since…'.
tradeNoTorget only: for sale (Säljes), free giveaways (Bortskänkes) or wanted ads (Köpes).
facetsNoAlso return value counts for the main filters (market overview, refining).
placesNoCounties (län) or municipalities, e.g. ['Stockholm'], ['Nacka', 'Värmdö'], ['Västra Götaland']. Omit for all of Sweden.
sellerNoOnly private sellers or only dealers (companies).
excludeNoDrop rows whose title or specs contain any of these (case-insensitive, also inside words), e.g. ['skal', 'laddare', 'köpes'] for a phone. 'köpes' and 'bortskänkes' also drop wanted ads and giveaways.
filtersNoVertical-specific filters by Blocket filter name → value label(s) or {min,max}. Examples: car {make: 'Volvo', model: 'V70', fuel: 'Diesel', transmission: 'Automatisk', body_type: 'Kombi', car_equipment: ['Dragkrok']}; boat {class: 'Segelbåt', make: 'Najad', length_feet: {min: 28}}; torget {category: 'Möbler och inredning', condition: 'Mycket bra skick - som ny', brand: 'IKEA'}. Unsure? Call list_filters.
requireNoWords or phrases that must all appear in the row's title or specs (case-insensitive), e.g. ['128gb'].
shippingNoTorget only: only ads that can be shipped.
verticalNoDefault torget. torget = general marketplace (furniture, electronics, clothes, kids, hobby, tools...); car, boat, mc (motorcycles), caravan (husvagn), motorhome (husbil), truck (lastbil/släp), tractor, combine (skördetröska), snowmobile, atv, moped (mopeder/scooters), bus.torget
year_maxNoLatest model year (vehicles).
year_minNoEarliest model year (vehicles).
new_todayNoOnly ads published today.
price_maxNoHighest price, SEK.
price_minNoLowest price, SEK.
seller_idNoOnly this seller's ads (seller.id from a row or get_ad).
title_onlyNoKeep only rows whose title contains every word of query.
mileage_max_milNoHighest mileage in Swedish mil (1 mil = 10 km).
mileage_min_milNoLowest mileage in Swedish mil (1 mil = 10 km).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe read-only open-world query, and the description adds substantial behavior: compact row contents, total count, applied filters, unmatched values with suggestions, optional facets, and a mirror blocket_url. It further discloses cost/latency traits — exclude/require/title_only refill across up to 4 extra pages with scanned/dropped/next_page, and deals costs one extra request — which an agent needs for planning.

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 purpose then return shape, and every sentence carries information. It is a dense run-on block with several parenthetical lists, which costs some readability but wastes little.

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 25-parameter tool with nested objects and no output schema, the description supplies the missing return-shape and side-effect context (row fields, count, applied filters, facets, refill metadata). Nothing an agent needs in order to call it correctly appears absent.

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 schema carries most parameter meaning (baseline 3). The description still adds cross-parameter behavior the schema only hints at: exclude/require/title_only drop off-topic rows and trigger page refills, and deals is evaluated against the same search's asking prices with a deal_basis.

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 and resource ('Search live Blocket ads in any vertical') plus scope dimensions (filters, distance, sorting). It also names an explicit out-of-scope case and redirects to a different tool for shop/new-product prices, so an agent can select it confidently against siblings.

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?

Includes a clear exclusion: shop prices for new products should go to a price comparison tool such as Billigast. It does not discuss when to use get_ad or price_check instead, but the exclusion plus the vertical/filter framing gives strong selection context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools