Skip to main content
Glama
mcp-leclerc-drive

mcp-leclerc-drive

by lborruto

Rechercher des produits

search_product
Read-only

Search the selected Leclerc Drive catalog by query and return product labels, prices, unit prices, availability, offers, and cart-ready IDs. Filter by availability and sort by relevance or price.

Instructions

Recherche des produits dans le catalogue Leclerc Drive du magasin sélectionné. Retourne libellé, prix, prix au kilo/litre, format, famille, avis, offres, disponibilité, quantité déjà au panier et l'id à utiliser pour add_to_cart. Les produits disponibles d'abord.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOrdre : pertinence (celui du site), prix, ou prix_unite (prix au kilo/litre, le moins cher d'abord)pertinence
limitNoNombre de produits à afficher (20 par défaut)
queryYesTermes de recherche, ex. 'lait demi-écrémé bio'
only_availableNoN'afficher que les produits disponibles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / sort
      Added value: +{
      +  "default": "pertinence",
      +  "description": "Ordre : pertinence (celui du site), prix, ou prix_unite (prix au kilo/litre, le moins cher d'abord)",
      +  "enum": [
      +    "pertinence",
      +    "prix",
      +    "prix_unite"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 20,
      +  "description": "Nombre de produits à afficher (20 par défaut)",
      +  "maximum": 60,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / only_available
      Added value: +{
      +  "default": false,
      +  "description": "N'afficher que les produits disponibles",
      +  "type": "boolean"
      +}
  3. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, yet the description adds real value: it discloses the return payload fields, the fact that results depend on the currently selected store, and the ordering rule that available products come first. It does not mention pagination, rate limits, or what happens when no store is selected.

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?

Three sentences, front-loaded with the core action, followed by the return fields and the ordering rule. The long enumeration of returned fields is justified because no output schema exists, but it is dense and could have been grouped more tightly.

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?

With no output schema, describing the returned fields (price, unit price, availability, cart quantity, id) is essential and done well, and the store dependency is flagged. The remaining gap is that it never tells the agent to establish a store first via set_store/find_stores, which matters given openWorldHint and the "magasin sélectionné" precondition.

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 100%, so the schema already documents query, sort, limit, and only_available in detail; the description adds no syntax or format detail beyond that. The one extra claim, "Les produits disponibles d'abord", is an ordering behavior not tied to a named parameter and sits slightly at odds with sort defaulting to pertinence, so it does not enrich parameter meaning.

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?

States a specific verb and resource ("Recherche des produits dans le catalogue Leclerc Drive") and scopes it to "du magasin sélectionné", which an agent can distinguish from cart or store-management siblings. It also names the downstream tool the returned id feeds (add_to_cart), though it never explicitly contrasts itself with browse_offers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context of use (product lookup inside the currently selected store) is implied rather than stated as guidance, and there is no explicit when-not or named alternative such as browse_offers. The only routing hint is downstream ("l'id à utiliser pour add_to_cart"), which helps but is not a use-case rule.

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