Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only access to Blocket.se, Sweden's largest classifieds site, straight from Blocket's own search. Workflow: search (pick the vertical; Swedish query words work best) → get_ad for description, specs, photos, seller and red flags (2-5 ids = side-by-side comparison) → price_check to judge an asking price against comparable live ads. get_ad_photos shows an ad's photos as images. Filters: common ones are typed params; anything else goes in search.filters as Blocket filter name → plain value label (e.g. {"make": "Volvo", "body_type": "Kombi"} or {"length_feet": {"min": 28}}). list_filters shows names and values with live counts. Values that could not be matched come back in "unmatched" with suggestions and were NOT applied: fix them and search again. Relevance: query takes Blocket operators (-word, a OR b, "exact phrase", word*). exclude drops rows with accessory words (e.g. ['skal', 'laddare', 'köpes']), require keeps rows with all words, title_only needs every query word in the title; continue with next_page. Deals: deals (or sort "deal") labels rows great/good/fair/high against the median asking price of the same search (deal_basis). risk_words marks titles like defekt or reservdelar. Units: SEK, car/mc mileage in Swedish mil (1 mil = 10 km), boat length in feet. near takes coordinates you know for the place. price_check and deals report asking prices of live ads, never sold prices. red_flags and risk_words are facts to check, not verdicts. Used vs new: price_check with new_price (the lowest new price from a shop price comparison, e.g. Billigast) gives what share of the new price used ads ask. "What's new since…": search with since (ISO time). For push alerts, give the user blocket_url to save as a search in the Blocket app. Always link each ad's url. Keep at most 3 calls in parallel.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

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.

list_filtersA

Filter names and values (with live ad counts) available for a vertical, to use in search.filters. Pass filter to list one filter's values, query to find values by substring (e.g. filter 'make', query 'hallberg').

get_adA

Full details of 1-5 ads by id or blocket.se URL: description, specs, equipment, all photos, place, status (active/sold/removed), seller (dealer, years on Blocket, other ads via seller.id), shipping/buy-now, favourites count, red flags and vehicle history links. Several ids render a comparison.

get_ad_photosA

An ad's photos as images (640 px wide JPEGs) to look at the item's condition yourself, plus its title, url and total photo count. Returns the first max photos (default 4, up to 8).

price_checkA

Use this when the user asks what a used item sells for on Blocket, whether an asking price is fair, or whether to buy used or new. Returns the asking-price distribution (p10/p25/median/p75/p90) of comparable live ads, with up to 6 example ads. Give ad_id to judge that ad (comparables are derived from its make, model, year, mileage or length; its percentile is returned), or describe the item with the search filters. For Torget items pass a short query (e.g. 'iphone 13 128gb') for good comparables; for mass-market products (phones, consoles, headphones) also pass title_only and excludes for accessories and wanted ads, e.g. ['skal', 'fodral', 'laddare', 'kontroll', 'controller', 'headset', 'fäste', 'cover', 'köpes', 'bytes']. With require/exclude/title_only the stats come from those of the newest 200 ads that pass them (scanned, dropped). Pass new_price when a shop price comparison gave you one: vs_new says what % of it the median and the ad ask, and ads under 10% of it are left out as accessories or parts. Explicit filters override the derived ones.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
blocket-widgetBlocket search results, ad details, comparisons and price checks.

TDQS

A4/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a largely distinct role: search lists ads, list_filters discovers filter values, get_ad retrieves full ad details, get_ad_photos returns images, and price_check computes price statistics. search and price_check both accept filters and return comparable ads, and get_ad already lists photo metadata, so there is some surface overlap, but the descriptions clearly differentiate browsing from valuation and detail inspection.

Naming Consistency3/5

All names use snake_case casing, which is consistent. However, the structural pattern is mixed: list_filters, get_ad, and get_ad_photos follow verb_noun, search is a bare verb, and price_check is noun_noun. This is readable but not a single predictable convention.

Tool Count5/5

Five tools is well-scoped for a read-only marketplace search server. Each tool covers a distinct part of the workflow—search, filter discovery, ad detail, photos, and price analysis—without obvious redundancy.

Completeness4/5

The core read-only lifecycle is covered: discovery via search, filter discovery, full ad details, photo inspection, and price valuation. Minor gaps remain, such as no tool to enumerate verticals/categories and no direct tool for listing a seller's other ads despite get_ad referencing seller.id for that purpose.

Maintenance

ActivityNo data
ResponsivenessOutdated data