Skip to main content
Glama
mcp-leclerc-drive

mcp-leclerc-drive

by lborruto

Mémoriser un produit habituel

save_usual
Idempotent

Saves a recurring product under a short custom name for the active store, replacing any product previously saved under that name. Use it when the user says they always buy this item.

Instructions

Mémorise un produit sous un nom court pour le magasin actif (remplace le produit déjà mémorisé sous ce nom). À utiliser quand l'utilisateur dit qu'il prend toujours ce produit.

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": {
      "name": "<name>",
      "product_id": "<product_id>"
    },
    "name": "save_usual"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNom court choisi par l'utilisateur, ex. 'lait' ou 'café du matin'
product_idYesIdentifiant produit (champ id de search_product)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-destructive, idempotent write, and the description usefully adds that an existing alias under the same name is replaced, plus that state is scoped to the active store. That overwrite/scope context is real value beyond the structured hints, though it does not say how to detect the active store or what a failure returns.

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?

Two short sentences, zero filler: the operation and its overwrite/scope caveat come first, the usage trigger second. Nothing is repeated from the schema or annotations.

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 simple two-parameter upsert with full schema coverage and annotations covering safety, the description covers what to do, where it writes, and what it overwrites. The only minor gap is nothing about how the active store is established, which could matter for an agent that has not called set_store yet.

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%, with both params documented (including the example short names and the product id pattern referencing search_product), so the schema carries the load. The description only restates 'nom court' and adds no format or edge-case detail beyond the schema, which is the baseline 3 case.

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 ('Mémorise un produit sous un nom court') and adds the scoping detail 'pour le magasin actif', which tells the agent this writes to store-level state rather than the cart. It also discloses the overwrite semantics, which implicitly separates it from a plain create; however, it never names a sibling (e.g. forget_usual or list_usuals) to route against.

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?

Gives an explicit trigger: 'À utiliser quand l'utilisateur dit qu'il prend toujours ce produit', which is precisely the natural-language condition an agent would encounter. It stops short of stating when-not to use it (e.g. a one-off purchase belongs in add_to_cart), so it is clear context without exclusions.

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