Skip to main content
Glama
kleinanzeigen-mcp

kleinanzeigen-mcp

by Samxel

search_kleinanzeigen

Read-only

Search Kleinanzeigen listings by keyword, category, location, price, and seller type, then filter by required or excluded terms to find exact items and avoid unwanted accessories.

Instructions

Search Kleinanzeigen listings. Needs a query, a category or both.

A bare query matches the whole ad text and drags in accessories, bundles and spare parts, so scope to a category when you can, and use attributes over extra words.

Put the model in query and every spec in require. Sellers write "128GB", "128 GB" or leave it out of the title, so query="iPhone 13", require=["128gb"] finds what query="iPhone 13 128 GB" misses.

These filters run here, paging on until rows matches turn up or 250 ads were scanned (scanned):

  • title_only: every query word must be in the title.

  • require: every term must be in the title or description; a number with its unit matches however it is spelled.

  • exclude: drop titles carrying any of these words, e.g. ["pro", "max"]. A word also hits the tail of a compound ("kabel" in "Ladekabel"), never a prefix ("pro" spares "Prozessor"). Don't exclude ordinary nouns like "akku" or "display", real listings use them too.

A missing price_amount is normal: price_type then says "FREE" (zu verschenken) or "PLEASE_CONTACT" (VB); with a price, PLEASE_CONTACT means negotiable.

Args: query: Search words. category: Category id or name; includes its subcategories. attributes: Category filters, e.g. {"pc_zubehoer_software.art": "grafikkarten"}; a multi_select one also takes a list. Keys and values come from get_category_filters. location_id: From search_locations. zip_code: A German postcode, instead of location_id. distance_km: Radius around the location or postcode. min_price / max_price: Price bounds. ad_type: "OFFERED" (Ich biete) or "WANTED" (Ich suche). poster_type: "PRIVATE" or "COMMERCIAL". sort: Default "RECOMMENDED"; "DISTANCE_ASCENDING" needs a location. picture_required / buy_now_only / shippable: Only ads with photos / "Direkt kaufen" / shipping. include_top_ads: Also return paid "TOP" placements (is_top_ad). They are pinned above any sort order and mostly repair shops and buyers, so they are left out by default.

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

Input Schema

NameRequiredDescriptionDefault
rowsNo
sortNoRECOMMENDED
queryNo
offsetNo
ad_typeNo
excludeNo
requireNo
categoryNo
zip_codeNo
max_priceNo
min_priceNo
shippableNo
attributesNo
title_onlyNo
distance_kmNo
location_idNo
poster_typeNo
buy_now_onlyNo
price_currencyNoEUR
include_top_adsNo
picture_requiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations: it discloses the scanning cap (250 ads, with a 'scanned' counter), that TOP ads are pinned above sort order and excluded by default, that a missing price_amount is normal and price_type distinguishes FREE from PLEASE_CONTACT, and the exact suffix-not-prefix matching rule for exclude. These are behaviors an agent could not infer from structured fields and they materially change how it should construct a call.

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 the essential requirement, then organized into a bulleted filter section and a compact Args list, which suits a 21-parameter tool. It is dense rather than padded, though the prose filter explanations and the Args block overlap slightly on query and sort.

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?

For a tool this complex with no output schema, the description is unusually complete: it explains the paging/search loop, the meaning of 'scanned', and the price_type/is_top_ad fields an agent will see in results. What is missing is any account of the returned ad fields beyond those three and of pagination via offset.

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?

With 0% schema description coverage across 21 parameters, the description carries the burden and mostly delivers: category includes subcategories, attributes' nested key format and multi_select list form, zip_code as an alternative to location_id, sort's DISTANCE_ASCENDING dependency, and the German glosses for ad_type. A few parameters (offset, price_currency) and the interaction between rows and offset are left undocumented, which keeps it short of full coverage.

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?

Opens with a specific verb+resource ('Search Kleinanzeigen listings') and immediately states the query/category requirement. It also implicitly separates itself from siblings by naming get_category_filters and search_locations as the sources for filter keys and location ids, so an agent knows what this tool does versus what it needs from elsewhere.

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?

Gives concrete when-to guidance: scope to a category when possible, prefer attributes over extra query words, use require for specs rather than stuffing them into query, and avoid excluding ordinary nouns like 'akku' or 'display'. It names the sibling tools that supply location_id and attribute keys, so the routing between tools is explicit.

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