Skip to main content
Glama

Top up credits

recharger_credits

Use this only when the user asks to buy or top up estimates, or after an estimate failed because credits ran out and the user wants to continue. Returns a secure card payment page (Stripe) to give to the user: pack25 (25 estimates, EUR 15 excl. VAT), pack100 (100, EUR 50), illimite (unlimited, EUR 200 per month). No payment happens inside the conversation; credits are added as soon as payment is confirmed. Free.

Input Schema

NameRequiredDescriptionDefault
offreYespack25 (25 chiffrages, 15 EUR HT), pack100 (100, 50 EUR HT) ou illimite (abonnement mensuel 200 EUR HT, usage raisonnable 3 000 par jour)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / offre / description
      Previous value: -"pack25 (25 chiffrages, 15 EUR HT), pack100 (100, 50 EUR HT), pack500 (500, 100 EUR HT) ou illimite (abonnement mensuel 200 EUR HT, usage raisonnable 3 000 par jour)"New value: +"pack25 (25 chiffrages, 15 EUR HT), pack100 (100, 50 EUR HT) ou illimite (abonnement mensuel 200 EUR HT, usage raisonnable 3 000 par jour)"
    • changedInput schema / properties / offre / enum
      Previous value: -[
      -  "pack25",
      -  "pack100",
      -  "pack500",
      -  "illimite"
      -]New value: +[
      +  "pack25",
      +  "pack100",
      +  "illimite"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / offre / description
      Previous value: -"essentiel (100), pro (500) ou volume (2 000 chiffrages)"New value: +"pack25 (25 chiffrages, 15 EUR HT), pack100 (100, 50 EUR HT), pack500 (500, 100 EUR HT) ou illimite (abonnement mensuel 200 EUR HT, usage raisonnable 3 000 par jour)"
    • changedInput schema / properties / offre / enum
      Previous value: -[
      -  "essentiel",
      -  "pro",
      -  "volume"
      -]New value: +[
      +  "pack25",
      +  "pack100",
      +  "pack500",
      +  "illimite"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description adds the important behavioral fact that no payment occurs in-conversation, that credits are provisioned only after external payment confirmation, and that invoking the tool itself is free. That is real context beyond the annotations, though it says nothing about failure/abandonment handling.

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?

Four sentences, all front-loaded with the usage condition first and the return value and pricing following. It is a touch redundant, repeating the pack/price table that the enum schema already carries, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by explaining exactly what is returned (a Stripe payment page for the user) and when credits take effect. Combined with the usage triggers and pricing, an agent has everything needed to select and call it correctly.

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% and the single enum parameter already documents all three packs with prices, so the description's pack list largely restates structured data. It adds only the English pack names and the VAT-exclusive phrasing, which is marginal value; baseline 3 applies.

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 names a specific action (buy/top up credits) and states the concrete artifact produced: a secure Stripe card payment page to hand to the user. The sibling tools (chiffrer_piece, calculer_taux_horaire, verifier_devis, etc.) are all estimation/verification tools, so this billing tool is clearly distinguishable by purpose alone.

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

Usage Guidelines5/5

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

It gives explicit trigger conditions with a restrictive 'only when': the user asks to buy/top up, or an estimate failed for lack of credits and the user wants to continue. That is a clear when-to-use rule that no sibling covers, and no inference is left to the agent.

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