Skip to main content
Glama

Prévisualiser une carte postale

preview_postcard

Génère un aperçu (recto photo + verso message) AVANT paiement et crée la commande. Montre les deux images à l'utilisateur et fais-les valider avant create_payment_link. La photo vient de photo_url (URL publique) ou de upload_id (photo déposée via create_photo_upload_link).

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": {
      "message": "<message>",
      "firstname": "<firstname>",
      "lastname": "<lastname>",
      "address": "<address>",
      "postal_code": "<postal_code>",
      "city": "<city>"
    },
    "name": "preview_postcard"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYes
addressYes
countryNoPays en français (défaut FRANCE), ex. BELGIQUE, SUISSE, ROYAUME-UNI, ETATS-UNIS. International accepté.
messageYesTexte au dos de la carte.
languageNoCode ISO 639-1 de la langue dans laquelle l'utilisateur écrit (ex. fr, en, es). Sert à la légende du QR code au dos. Langues prises en charge : fr, en, es, it, de, pt, nl ; sinon anglais.
lastnameYes
firstnameYes
photo_urlNoURL publique https de la photo (recto). Si l'utilisateur a joint une image dans la conversation, ne mets rien : l'outil renvoie un lien pour qu'il la dépose, puis rappelle-le avec upload_id.
upload_idNoIdentifiant renvoyé par create_photo_upload_link, une fois la photo déposée par l'utilisateur.
postal_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and openWorldHint=true, but the description adds a critical fact they do not convey: this 'preview' tool also creates the order, a persistent side effect. It also prescribes a human validation gate before payment. It stops short of saying what happens on repeated calls or whether the created order is left pending, but the core mutation behavior is disclosed.

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 verb, the artifact and the 'AVANT paiement' constraint. The parenthetical '(recto photo + verso message)' efficiently conveys the two-sided output. The closing photo-sourcing sentence partially restates schema descriptions but earns its place by giving the fallback procedure.

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 10-parameter mutating tool with no output schema, the definition covers the workflow position, the validation gate and the photo input paths. It implies the return is two preview images and notes a link is returned when an upload is needed. Gaps remain around failure/re-preview handling and the pending state of the created order, but the essentials for correct invocation are present.

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 coverage is only 50% across 10 params, so the description must carry weight. It does explain the photo sourcing logic (photo_url public URL vs upload_id from create_photo_upload_link, and leaving photo_url blank when the user attached an image), which mirrors and reinforces the schema. Address, name, message and language parameters get no added meaning, leaving half the surface documented only by the schema.

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?

States a specific verb and resource ('Génère un aperçu (recto photo + verso message)') and adds the non-obvious side effect ('et crée la commande'). It distinguishes itself from create_payment_link and create_photo_upload_link by naming both and placing itself in the workflow.

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?

Explicit sequencing: this runs 'AVANT paiement', the user must validate the images 'avant create_payment_link', and the photo either comes from photo_url or from an upload made via create_photo_upload_link. The agent knows exactly when to call this versus the payment and upload siblings.

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.