Skip to main content
Glama

Rendre un carrousel

carrousel_rendre

Renders a TikTok carousel from JSON into PNG/JPEG slides and a carrousel.json, returning paths and warnings for clipped or unsafe text.

Instructions

Rend un carrousel TikTok décrit en JSON : une image par diapositive (PNG, ou JPEG pour l'envoi par l'API TikTok) dans /carrousels// (01.png, 02.png…), plus carrousel.json (l'entrée, pour retoucher). Renvoie les chemins et des avertissements (texte coupé, trop réduit, hors de la zone sûre du cas zone, image introuvable). Voir carrousel_modeles pour les champs et des exemples ; vérifier ensuite avec carrousel_apercu.

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": {
      "nom": "<nom>",
      "modele": "<modele>",
      "diapositives": "<diapositives>"
    },
    "name": "carrousel_rendre"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomYesNom du carrousel : le dossier de sortie (carrousels/<nom>/)
zoneNoZone sûre : description, sans_description, pub (défaut « description » ; détail dans carrousel_modeles ou montage_infos).
themeNoCouleurs (CSS) et polices ; chaque modèle a les siennes par défaut
formatNo9:16 plein écran ; 3:4 presque entier sous une description ; 4:5 toujours entier ; 1:1, 4:3, 16:9, 2.35:1 (paysage, 1080 de large : à la largeur de l'écran avec des bandes) quand le modèle l'est — garder l'orientation du modèle9:16
langueNofr
modeleYes
sortieNojpeg pour l'API TikTokpng
varianteNonotes : « app » (par défaut) ou « papier » ; natif : « bandeau » (par défaut), « contour » ou « bandeau_noir »
signatureNo@compte affiché discrètement en haut de chaque diapositive
diapositivesYes
numerotationNoAffiche 2/7 en haut à droite

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • changedInput schema / properties / format / description
      Previous value: -"9:16 plein écran ; 3:4 presque entier sous une description ; 4:5 toujours entier"New value: +"9:16 plein écran ; 3:4 presque entier sous une description ; 4:5 toujours entier ; 1:1, 4:3, 16:9, 2.35:1 (paysage, 1080 de large : à la largeur de l'écran avec des bandes) quand le modèle l'est — garder l'orientation du modèle"
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "9:16",
      -  "3:4",
      -  "4:5"
      -]New value: +[
      +  "9:16",
      +  "3:4",
      +  "4:5",
      +  "1:1",
      +  "4:3",
      +  "16:9",
      +  "2.35:1"
      +]
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present the description carries the full burden, and it does disclose disk side effects (files written under carrousels/<nom>/, plus a stored copy of the input for retouching) and the warning categories returned (truncated text, shrunk text, outside the safe zone, missing image). It omits overwrite semantics for an existing folder and any failure/permission behavior, which keeps it below a 5.

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?

Three dense sentences: what is produced and where, what is returned, then how to use it with the two sibling tools. No filler, and the essential output-location fact is front-loaded.

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 an 11-parameter tool with nested objects, no annotations, and no output schema, the description covers the essentials: output format and location, the returned paths/warnings, and delegation to carrousel_modeles and carrousel_apercu. The main residual gap is behavior on an existing output folder and any error conditions.

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 73%, so the schema already documents most parameters, including the nested theme and slide objects. The description adds mainly the mapping of `nom` to the output folder and the PNG-versus-JPEG distinction (`sortie` for the TikTok API), but defers all remaining field meaning to carrousel_modeles.

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 uses a specific verb and resource ("Rend un carrousel TikTok décrit en JSON") and immediately states the concrete artifacts it produces: one PNG/JPEG per slide written to carrousels/<nom>/, plus a carrousel.json copy of the input. That level of specificity lets an agent tell it apart from the modelling/verification siblings.

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?

It gives clear workflow guidance: consult carrousel_modeles for fields and examples before calling, then verify the result with carrousel_apercu. It does not state explicit when-not-to-use conditions (e.g. when to prefer re-rendering versus editing carrousel.json by hand), but the sequencing advice is unusually actionable.

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