Skip to main content
Glama

StampyWallet

Simuler le coût d’une carte de fidélité

simuler_fidelite
Read-onlyIdempotent

Estime ce que coûte une carte de fidélité à tampons (la récompense rapportée au panier) et combien de visites en plus la rentabilisent. À utiliser pour choisir une récompense et un nombre de passages, ou quand quelqu’un se demande si une carte vaut le coup. Sans compte.

Input Schema

NameRequiredDescriptionDefault
margeNoMarge brute sur un panier, en pourcentage (défaut 65 %, typique en restauration et services).
tamponsYesPassages pour obtenir la récompense.
comparerNoAutres nombres de passages à comparer (ex. [6, 10, 12]).
panier_moyenYesDépense moyenne d’un client par passage, en euros.
clients_fidelesNoClients qui prendraient la carte chaque mois (défaut 60).
cout_recompenseYesCe que coûte la récompense AU COMMERÇANT (prix de revient, pas prix de vente), en euros.
visites_par_moisNoVisites par mois d’un client fidèle aujourd’hui (défaut 2).
tampons_bienvenueNoTampons offerts à l’inscription.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds "Sans compte" (no account required), a genuine auth-context detail, but says nothing about the shape of the returned figures or precision assumptions.

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 tight sentences: what is computed first, when to use it second, with no filler. Nothing is redundant with 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?

With 8 parameters at full schema coverage and no output schema, the description needs mainly to define scope and trigger conditions, which it does. It stops short of describing what the simulation returns, which would matter since there is no output schema.

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 every parameter including defaults and ranges is already documented. The description only alludes to reward-vs-basket cost and number of passages, adding no units, defaults, or interaction detail beyond the schema; baseline 3 applies.

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 ("Estime") with a specific resource ("carte de fidélité à tampons") and names the two quantities computed: reward cost relative to the basket and the extra visits needed to break even. This clearly separates it from siblings like concevoir_carte or modifier_carte, though no sibling is named explicitly.

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 concrete usage contexts: choosing a reward and a stamp count, or answering 'is a card worth it?'. It does not state exclusions or point to alternatives such as rentabilite, which is the main gap for a 5.

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