Skip to main content
Glama

Fiche du commerce

fiche_commerce
Destructive

Lit ou modifie la fiche du commerce : nom, type de commerce, panier moyen (sert aux estimations du tableau de bord), langue des clients, coordonnées imprimées au dos de la carte (adresse, téléphone, horaires, site web, message de bienvenue), lien public d’inscription des clients (stampywallet.com/rejoindre/, celui du QR), et les lieux où la carte se présente quand un client passe devant (jusqu’à 10 : boutique, marché, emplacement de food truck), avec leurs jours et horaires. Sans paramètre de changement : rend la fiche actuelle. Avec des changements : confirmer=false (défaut) montre l’avant/après, confirmer=true écrit après accord explicite. Un ancien lien public continue de fonctionner après un changement (les QR déjà imprimés restent bons).

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": "fiche_commerce"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomNoNom du commerce (aussi imprimé sur la carte).
lienNoLien public voulu, en clair (« Le Fournil de la Gare » devient « le-fournil-de-la-gare »), de 3 à 32 caractères. Un lien déjà pris par un autre commerce est refusé.
langueNoLangue du commerce : celle de la carte, des pages et des messages vus par les clients.
metierNoType de commerce, l’un des métiers de l’inscription. « autre » : tout ce qui n’a pas son métier.
adresseNoAdresse, au dos de la carte (160 caractères au plus).
effacerNoChamps à vider. « lien » : l’adresse publique redevient l’identifiant technique (le lien reste réservé à ce commerce).
horairesNoHoraires d’ouverture, en texte libre (ex. « Mar–sam 7 h–19 h »).
site_webNoSite web ou page Instagram.
confirmerNofalse (défaut) : rend seulement un aperçu de ce qui serait fait, sans rien changer. true : exécute. Toujours montrer l’aperçu à la personne et attendre son accord avant de repasser avec true.
telephoneNoTéléphone, au dos de la carte.
panier_moyenNoDépense moyenne d’un client par passage, en euros.
lieux_ajouterNoLieux à ajouter pour l’alerte de proximité (la carte se présente quand un client passe devant) : marché, emplacement d’un food truck… 10 lieux au plus en tout, adresse principale comprise. Chacun avec une adresse ou des coordonnées.
lieux_retirerNoLieux à retirer, par identifiant. « principal » retire seulement le point de l’adresse (il revient si l’adresse change).
lieux_modifierNoLieux à renommer, déplacer (adresse ou coordonnées) ou replanifier (jours, plage). Les jours donnés remplacent les anciens ; sans jours ni heures, le planning ne change pas.
message_bienvenueNoPetit mot au dos de la carte, lu par le client en l’ajoutant.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / langue / enum
      Previous value: -[
      -  "fr",
      -  "en",
      -  "es"
      -]New value: +[
      +  "fr",
      +  "en",
      +  "es",
      +  "de"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds non-obvious behaviour the annotations cannot convey: a mandatory before/after preview, a separate confirm step before writing, and the fact that an old public link and already-printed QRs keep working after a change. That is exactly the kind of safety and side-effect context an agent needs before mutating a merchant profile.

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?

Dense but front-loaded: read mode, then write mode, then the link-persistence caveat, each in its own sentence with no filler. The field enumeration is long and partly duplicative of the schema, but it is grouped by concept rather than scattered.

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 15-parameter, no-output-schema mutation tool, the description covers the operational essentials: dual read/write mode, preview-then-confirm workflow, location cap, and link persistence. The shape of the returned profile is only alluded to ('rend la fiche actuelle'), but the very detailed input schema and the preview concept make that a minor gap.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: panier_moyen is explained as feeding dashboard estimates, the lien is tied to the physical QR URL pattern, and the 10-location cap includes the main address. It does not restate per-parameter constraints (lengths, enums, patterns), which the schema already handles.

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?

The opening clause names a precise verb pair and resource ('Lit ou modifie la fiche du commerce') and then enumerates the exact fields in scope, so an agent knows immediately what domain this covers. It does not explicitly route away from look-alike siblings such as voir_carte, modifier_carte or creer_commerce, so the boundary with the card-design tools is left implicit.

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 states the selection rule between modes clearly: with no change parameter it returns the current profile, with changes it previews by default and only writes when confirmer=true after explicit agreement. That is concrete when-to-use guidance for the two operating modes. It stops short of naming alternative tools for adjacent needs (e.g. editing the card itself).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources