Skip to main content
Glama
willhaben-mcp

willhaben-mcp

by Samxel

search_willhaben

Read-only

Search willhaben marketplace listings by keyword, category, price, condition, brand, size, color, and seller to find matching ads and filter out accessories or sold items.

Instructions

Search the willhaben marketplace. Needs a keyword, a category or both.

A bare keyword matches the whole ad text and drags in accessories and spare parts, so scope to a category when you can. willhaben ignores punctuation: "???" in a keyword matches nothing, so write "drei fragezeichen".

Put the model in keyword and every spec in require. Sellers write "128GB", "128 GB" or leave it out of the title, so keyword="iPhone 13", require=["128gb"] finds what keyword="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 keyword 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"] to keep a base model clean of its trim levels. A word also hits the tail of a compound ("kabel" in "Ladekabel"), never a prefix ("pro" spares "Prozessor"). If variants turn up, search again with them excluded rather than dropping rows yourself.

  • hide_reserved: drop reserved and sold ads.

  • handover ("versand" / "abholung"): costs one detail request per candidate, at most 40 (detail_lookups). paylivery is a payment method, not shipping.

Don't exclude ordinary nouns like "case" or "akku", real listings use them too ("Akku 100%"). Keep accessories out with price_from at about 15-20% of the product's real price instead.

Args: keyword: Search words. category: Category id or name; includes its subcategories. condition: "neu", "neuwertig", "generalueberholt", "gebraucht", "defekt" or "ausstellungsstueck". clothing_size / shoe_size: e.g. "38", "46 / S" or "42"; clothing and shoe categories only. color / pattern: willhaben's colours and patterns, mostly fashion. brand: Brand id(s) from search_brands. seller: "privat" or "haendler". price_from / price_to: Price bounds in EUR. last_48h: Only ads from the last two days.

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

Input Schema

NameRequiredDescriptionDefault
areaNo
rowsNo
brandNo
colorNo
offsetNo
sellerNo
excludeNo
keywordNo
patternNo
requireNo
sort_byNoactuality
categoryNo
districtNo
handoverNo
last_48hNo
price_toNo
conditionNo
payliveryNo
shoe_sizeNo
price_fromNo
title_onlyNo
clothing_sizeNo
hide_reservedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly and openWorld; the description adds the real operational traits: local filtering that pages until rows matches or 250 ads are scanned, detail_lookups capped at 40 when handover is set, and how exclude matches suffixes but not prefixes. It still does not say what the response contains beyond the scanned/rows counters or how paging interacts with offset.

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-loads the entry requirement and the category scoping rule, then moves through filter semantics in a bulleted list, and finishes with an Args block. It is long, but nearly every sentence carries operational information; the mixed-in parenthetical asides add some density that could be trimmed.

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 23-parameter, no-output-schema search tool, the description covers the query construction, the filtering pipeline, and the scan/detail-lookup budgets an agent needs before calling. Gaps remain on area/district, sort_by, offset, and the shape of returned ads, which the absent output schema would otherwise have covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for 23 parameters, and it does: it documents keyword, category (includes subcategories), condition values, clothing_size/shoe_size formats, brand sourcing via search_brands, handover's per-candidate cost, and the semantics of title_only/require/exclude/hide_reserved. Only area, district, sort_by and offset are left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Search the willhaben marketplace") and states the minimum query requirement (keyword, category, or both). It references search_brands for brand ids but never contrasts itself with the vertical siblings search_autos/search_immobilien, so an agent must infer that this is the general-marketplace search.

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 when to scope by category instead of a bare keyword, warns against excluding ordinary nouns and gives the price_from 15-20% workaround, and tells the agent to re-search with variants excluded rather than post-filtering rows. Concrete worked examples (keyword="iPhone 13" + require=["128gb"]) remove ambiguity.

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