Skip to main content
Glama

Rechercher des annonces Leboncoin

search_ads
Read-only

Search Leboncoin classified ads by keyword, location, category, price, and filters. Retrieve ad summaries with price stats, pagination, and optional CSV/JSON export.

Instructions

Recherche des annonces sur Leboncoin.

Renvoie les totaux du site, des statistiques de prix sur les annonces recuperees et, pour chacune : id, titre, prix, date, lieu, categorie, URL et attributs utiles (etat, kilometrage, surface...). next_page indique la page a demander pour continuer. Pour le detail d'une annonce (description, photos, vendeur), utiliser get_ad.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL d'une recherche faite sur leboncoin.fr. Si fournie, elle remplace tous les autres criteres (seuls limit, page, pages et export_format comptent).
cityNoCommune francaise autour de laquelle chercher : nom ('Lyon'), code postal ('69003') ou 'Saint-Denis (974)' pour lever une homonymie.
pageNoPremiere page a recuperer.
sortNorelevance
limitNoAnnonces par page.
pagesNoNombre de pages consecutives a recuperer.
queryNoMots-cles. 'velo OR trottinette' pour l'un ou l'autre.
ad_typeNooffer : annonces de vente/offre ; demand : demandes.offer
filtersNoFiltres avances, par cle d'API Leboncoin. Intervalle : [min, max] ou {'min': x, 'max': y}, une borne pouvant etre null. Enumeration : liste de codes texte. Exemples : {'square': [40, 80], 'rooms': [3, null], 'real_estate_type': ['1', '2']} (1 maison, 2 appartement), {'mileage': [null, 100000], 'regdate': [2016, null]}. Les cles des attributs renvoyes avec chaque annonce sont des cles de filtre valides.
regionsNoRegions.
categoryNoCategorie ; les sous-categories sont prefixees par leur parent.TOUTES_CATEGORIES
price_maxNoPrix maximum en euros.
price_minNoPrix minimum en euros.
radius_kmNoRayon autour de city.
title_onlyNoChercher les mots-cles dans le titre seul.
departmentsNoNumeros ('69', '5') ou noms ('Gironde') de departements.
seller_typeNoParticuliers, professionnels ou les deux.all
export_formatNoEcrit toutes les annonces trouvees dans un fichier (description complete comprise) et ne renvoie qu'un resume et un echantillon. Indispensable au-dela de 300 annonces.
shippable_onlyNoSeulement avec livraison.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses meaningful behavior beyond annotations: it returns site totals, price statistics, per-ad fields, and a next_page pagination token. With readOnlyHint=true, the safety profile is already covered. It does not mention the file-writing behavior of export_format or the 300-ad threshold, but these are documented in the parameter schema, lowering the burden on the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences: the first states the primary action, the second summarizes outputs and pagination, the third routes to a sibling. There is no filler, and the most important information is front-loaded. Every sentence earns its place.

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 19-parameter tool with rich schema descriptions, an output schema, and annotations, the description covers the essentials: purpose, return contents, pagination, and a routing rule for ad details. The only notable omission is the export_format large-result caveat, but that is thoroughly covered in the schema, so the description remains sufficiently complete.

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 95%, so the parameters are already thoroughly documented in the input schema. The description adds no parameter-level semantics but notes useful returned attributes (etat, kilometrage, surface), which indirectly hints at filter keys. This meets the baseline for high schema coverage without requiring additional compensation.

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?

The description opens with a specific verb+resource: 'Recherche des annonces sur Leboncoin' (search ads on Leboncoin), and further differentiates itself from siblings by explicitly directing ad-detail lookups to get_ad. An agent can immediately understand what this tool does and how it differs from get_ad and get_seller.

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?

The description clearly states a key alternative: 'Pour le detail d'une annonce (description, photos, vendeur), utiliser get_ad.' This gives an explicit condition for choosing a sibling tool. It does not explicitly mention when to use get_seller, but the distinction between searching and retrieving seller info is clear from 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