What the MCP server tools do
You know which families of tools the MCP server exposes, what they read or write, which prompts and resources it serves, and what stays out of the assistant’s reach. The server itself announces the exact list of tools (the mcp (external site) package is its source). The common rules are in the tool rules, the connection in connecting an assistant.
Everywhere, a tool that reads a plan reads the saved plan, and a person comes out by id, never by name, in a list sorted by id (an alphabetical order would still say something about the names).
Knowing where the edition stands
consulter_edition is the first useful call. It returns the cycle checklist the home page shows, each line with its status (A_FAIRE, ATTENTION, INFO, FAIT) and the figures that decide it, computed server-side so the screen and the assistant agree. A running solve reads as a status and does not fail the call. It holds only counts and dates.
- The
coherenceblock counts input anomalies;lister_anomalies_referentielgives the detail (family, severity, code, record byobjetandobjetId), without the screen’s sentence or date: the warning about a minor would date their majority. - The
aTraiterblock answers “what do I do this morning?”: pending declarations and swaps, unread days of the next seven, silent staff members to chase. “Today” isJourJClock's, simulated date included. consulter_planningsays when the solver last ran,consulter_publicationwhen the staff members were told. Only the second describes what people see: a plan computed this morning and published last week is, for them, last week’s.consulter_publicationalso says who the next publication would reach, without sending anything.comparer_realise_planifiereturns the screen of the same name for each stand and each elapsed day: seats published, held, absences, replacements, empty, removed (consigne, deleted timeslot: never an absence) or added, minutes published, done and lost. Each day is compared to the publication in force at its first timeslot; a day begun before any publication (lateReference) enters no total.natureisDECLARED: what was recorded, not a check-in.
Computing and correcting the plan
lancer_calcul runs the full solve from the plan in place: locks and the frozen past are respected, everything else may move; deZero starts over and loses the quality reached. lancer_correction reopens only the seats in breach and freezes the rest for this solve; its animateurIds, jours and standIds also reopen what they name, for this solve only, and do not touch the locks (what is frozen durably is set with verrouiller). consulter_calcul follows a solve (the active one, IDLE when nothing runs, historique for the history); arreter_calcul and supprimer_calcul stop and forget it.
diagnostiquer_plan solves nothing: it recomputes the score of the saved plan. It returns the score reading (lecture), the same sentences as the Calculate tab, written from templates (rules, days and numbers, never a person), and for each rule in breach its typical actions (code, gesture, explanation); with ecartsDurs, the anonymised message of each hard breach.
consulter_planning reads the saved plan under a vue: etat (when it was computed, whether it is stale), synthese (by stand and day) or affectations (the seats, filtered and capped). analyser_affectation explains a seat’s score. To touch up a seat without solving again, simuler_affectation prices a change and writes nothing (mode affecter, deplacer or candidats) and modifier_affectation applies it, refused if it breaks a hard rule, on a locked seat or one whose timeslot has begun. Two tools, not one: an assistant that evaluates and applies in the same call leaves no step where a human can say no. modifier_demande_echange (decision accepter) is, with modifier_affectation, one of the only two tools that write into the plan without the solver: it applies the swap then freezes it with ANIMATEUR_CRENEAU locks. Hence analyser_impact_echange, because the prevalidation stored with the request describes the plan of the day it was sent.
modifier_contrainte sets a rule for the edition, one setting per call: actif, poids (or poidsParDefaut), or the niveau of an organisation rule (OBLIGATOIRE, PREFERENCE_FORTE, PREFERENCE_NORMALE, PREFERENCE_LEGERE; a preference writes the weight of its position). lister_contraintes gives niveauReglable and niveauChoisi; a legal, assignment, ad hoc or lock rule, or a soft preference, refuses the level. The tool is accepted during a solve and says so (RESOLUTION_EN_COURS). The setting appears in the action journal (“Rules” filter, actor ASSISTANT) with the rule’s name and what changed, without the value; no tool reads a weighting history back.
Reading the plan from different angles
| Tool | What it returns |
|---|---|
consulter_besoin |
the Needs tab of Diagnostic, under a section: borne (default), marge (mode avant or apres, refused elsewhere), typologie, volumetrie or faisabilite |
simuler_besoin |
the bounds of consulter_besoin (section borne) under hypotheses that stack — majeurs, mineurs (negative: fewer), standsFermes (standId@YYYY-MM-DD), siegesRetires (the same, or followed by @HH:MM-HH:MM), creneauxFusionnes (id+nextId) — each alone then all together, with the gap on each bound and on the margin; nothing is written, no solve is started, twenty hypotheses at most |
consulter_risques |
the Risks tab, under a section: fragilite (default, no name or sentence), former (never REFERENT; with no saved plan, planPersiste is false) or tension |
consulter_charge |
the Load report, under a vue: equite (default; a column the solver does not weigh is information, not a defect) or heures (source=persiste by default, source=publie refused while nothing is published; source is refused outside heures) |
consulter_repas_pauses |
the Meals and breaks report, under a section: pauses (default; a break nobody can relay is a hard breach) or enchainements (geolocated=false says no route could be computed, rather than an empty list that would read “all is well”) |
consulter_placements_possibles |
where to place a person: the empty seats of the saved plan where they respect the mandatory rules, best gain first, bounded by plafond (20 by default, 100 at most) and said to be cut; motif says why the list is empty; identifiers only |
lister_typologies |
each game category with its counters and its etat (ORPHELINE, FRAGILE, INUTILISEE, SANS_COMPETENT_INUTILISEE, NORMALE) |
analyser_arrivees_groupees |
per group and day, who works, who is missing, the gap between arrivals and departures |
comparer_editions |
the Editions view of the Compare two versions screen, with no name: ids and the names of the differing fields, never their values |
The break is set through consulter_parametres and modifier_parametres (legal section): a single duration, dureePauseMinutes (30 by default), refused below its public-order floor of 20 minutes and capped by nothing. The 30 minutes owed to a minor apply at reading time, not in the setting: an edition at 25 gives 25 to adults and 30 to minors (ADR 0048 (external site)). The same section holds heureDebutSoiree and dureeVacationMaxMinutes.
Building the grid and the hours
A grid is made of shifts: a timeslot is a shift, and two overlapping timeslots on the same day are two staggered handovers, never an anomaly (ADR 0037 (external site)). The check (diagnostiquer_creneaux in the controle section, previsualiser_generateur_creneaux) flags a shift beyond dureeVacationMaxMinutes (6 h by default), a shift the daily rest makes untenable, a duplicate, a gap, an isolated date. diagnostiquer_creneaux in the grille section (the default) is the first call to discover an edition. supprimer_creneaux removes timeslots with their seats, by ids or by filters (dates, start time, or all=true), never both at once.
A single generator produces the grid in bulk (ADR 0126 (external site)): previsualiser_generateur_creneaux shows what it would produce and checks the resulting grid, appliquer_generateur_creneaux writes it, with the same arguments and a source: stands (the grid the stands' hours imply, added or, with remplacer=true, in place of the grid and the plan with it), recurrence (windows repeated over dates), gabarits (the templates' calendar) or grille (reads the templates the grid implies).
A stand’s hours are a single object in two forms: its model (recurring rules, ADR 0104) and its dated plages. lister_stands returns them under horaires and plages (depliee: unfolded from the model or typed by hand), for all stands or one (id). creer_horaire_stand adds, per forme, a rule to the model (modele; an identical rule changes nothing) or a one-day plage (plage: date, hours, headcount), opening or closure (mode). supprimer_horaire_stand removes a plage (forme=plage, by plageId or all those of a date) or clears the model (forme=modele) and the plages it unfolded, keeping those typed by hand. An argument of one form is refused with the other, and these writes are refused during a solve and when the edition’s phase freezes the stands.
creer_stand also creates, when needed, its location (emplacementNom), its missing game categories (creerTypologiesManquantes=true) and its opening windows (horaires), and lists what it created. A window (creer_horaire_stand, creer_stand) may name its headcount with the @N suffix (10:00-12:00@2,14:00-@4) or the effectif argument of a dated opening; without it the window takes the stand’s minimum. Zero is refused (a stand with nobody is a closure) and the suffix is rejected on a timeslot recurrence.
Templates are the 3.x typical days. modifier_gabarit creates or replaces a template by its name and its shifts on one line (“09:00-12:00, 12:00-13:00”), and sets it on a range or dates; supprimer_gabarit removes a template, or only dates from the calendar. None of this writes a timeslot: appliquer_generateur_creneaux with the gabarits source does, after the preview. lister_gabarits returns the dates in breach or under a consigne, which the application does not touch (ADR 0032 (external site)).
Laying down a consigne
An order closes a time band for all stands: can the plan be turned around before nightfall (ADR 0043 (external site))? Eight tools mirror the Consignes tab of Rules: lister_consignes, consulter_preselection_consigne, simuler_consigne, appliquer_consigne, simuler_levee_consigne, supprimer_consigne, modifier_prereglage_consigne, supprimer_prereglage_consigne. None names a person.
Windows are written HH:MM-HH:MM separated by commas, a missing end or 00:00 meaning “until midnight” (08:00-10:00,18:00-). Openings name the stand, its window and, after *, its headcount: BOURSE=08:00-10:00*2,BOURSE=18:00-22:00*7; without *N, the window inherits the highest headcount the stand loses in the band, otherwise its minimum. The reason is mandatory (it is printed wherever the day is said to be modified). The meal windows (repasMidi, repasSoir, coupureRepasMinutes, justificationRepas) hold only on the consigne’s dates.
consulter_preselection_consigneon each date: what the band takes from each stand, the proposed stands, those set aside for hand-set hours. Writes nothing.simuler_consigne: per day, seats and minutes before and after, timeslots to add, locks and ad hoc rules touched. It is the full validation without writing: a request the simulation accepts will be accepted as is.appliquer_consigne, same arguments: sets or replaces a date’s consigne and adds only the timeslots the openings require. Dates must be in the future and are written all together or not at all.lancer_correction, thenconsulter_publicationandpublier_planning.
Lifting follows the same pattern: simuler_levee_consigne names the added timeslots that would go with their seats and warns when frozen days exhaust the available people; supprimer_consigne refuses a past or current date (a worked day keeps the consigne that governed it). A preset (“Heatwave plan”) remembers band, reason and windows and follows the edition’s duplication. consulter_alertes_meteo returns the morning’s alerts with the suggested preset; it sets nothing, applying stays an explicit appliquer_consigne.
Deciding what staff have asked for
consulter_disponibilites reads the Availability tab of the Staff page under a section: collecte (default: window, dates, automatic reminder), declarations (filterable by statut) or covoiturage. modifier_declaration_disponibilite decides a declaration: decision=appliquer writes it onto the record through the same write* as the entry screen (data marked modified, plan stale, journal with the replaced fields, joursIndisponibles and souhaits, warnings as codes); decision=refuser leaves the record untouched, with the commentaire the animateur will read. Opening the collection stays modifier_collecte_disponibilites, apart, because it can write to staff members.
consulter_foire_echanges returns the fair’s window and its statistics (volumes, rates, delays, breakdowns) over a creation period (du, au, or touteEdition, refused with the other two), without any animateur, not even by id. consulter_publication, confirmations view, counts, among the staff members holding a seat on the published plan, the confirmed, chased, silent, and the send failures (apart, with no address), and dates the publication they answer; jamaisPublie true means the question has not been put to anyone yet.
The covoiturage section of consulter_disponibilites returns the collection’s “I’m coming with…” requests: members, status (EN_ATTENTE or VALIDEE), confirmedByAll, days where the unavailabilities diverge, adjustment created, all by id. Validation, the gap and cancellation stay screen gestures, because validation emails the staff members; an assistant creates an ARRIVEE_GROUPEE directly through creer_contrainte_ad_hoc. supprimer_contrainte_ad_hoc on a grouped arrival a validated request supports returns an error result carrying the Adjustments tab’s sentence (cancel it from Availability > Carpooling).
Editions, scenarios and publication
One tool per object and per verb, the gesture passed as an argument (ADR 0127 (external site)). creer_edition creates an empty edition, or copies another with source, with or without its staff members. modifier_edition changes one setting per call: nom, or active (true: it becomes the active edition; false: nothing goes out any more). The phase stays modifier_phase_edition, open to the organiser connected by OAuth, where creer_edition and modifier_edition are reserved to the instance administrator.
importer_scenario takes a shipped scenario (nom) or YAML content (yaml), one of the two; diagnostiquer_scenario checks a YAML without importing, and supprimer_donnees_edition empties the edition. consulter_publication reads under a vue: etat (default), destinataires (a publication’s trace) or confirmations. Four tools write to people, each with its own verb: publier_planning (everyone), envoyer_planning_animateur (one person), envoyer_relance_animateurs (the named silent ones) and envoyer_message_equipe (a free message to a scope, whose count previsualiser_message_equipe gives to confirm; it returns identifiers, never a name); a send is never a mode of another tool, so a forgotten argument cannot write to the whole team. consulter_sauvegardes gives the state of the nightly backup, modifier_sauvegardes suspends it.
Prompts and resources
The server also serves twenty-two prompts, one per moment of an event’s cycle, each following one of the nine menu entries (Home, Prepare, Files, Planning, Diagnostic, Rules, Broadcast, Today, Administer), from demarrer_une_nouvelle_edition to tirer_le_bilan_de_l_evenement. Each uses only current tool names, chains them in the right order, and says what the tools cannot do (stand matrix, grid entry, day-of absence, carpool validation: the screen), otherwise the assistant would look for a tool that does not exist.
Each prompt takes an optional edition argument: omitted, it asks the assistant to call lister_editions and keep the active edition, or to ask if there is none; either way the edition is passed to every tool call. A prompt that names an outgoing tool requires explicit consent and first checks that the edition is the active one; the assistant stops rather than activating one on its own. tenir_le_jour_j notifies through publier_planning: envoyer_planning_animateur would resend the already published plan, hence the old one. The interface’s MCP page reads them from GET /api/mcp/prompts. They are not translated.
Two resources, to attach once to inform all following calls:
| URI | Content |
|---|---|
planning://contraintes |
the catalogue of constraints, generated from ConstraintCatalog: it can neither describe an absent rule nor forget one added the day before |
planning://vocabulaire |
stand, timeslot, seat, shift, day template, game category, version, edition, the order in which an event is prepared and the table that files each prompt under its menu entry; the only hand-written text |
Old tool names
The 4.0 renames, groups or removes tools of the 3.x (ADR 0100 (external site), ADR 0127 (external site)). A grouped tool does under one name, with an argument (vue, section, mode, decision), what several did; the 4.x still published its old names, the 5.0 removed them (5.0 guide). The tension mode of the former margin tool became the tension section of consulter_risques. The former solver-tuning tool is no longer published: the solve budget moved to the instance, and only the end-of-solve mail stays in modifier_parametres (calcul section). The stand-plage and model tools born in 4.0 are not kept, no published version having carried them (4.0 guide). This table renders the changed lines of mcp-renommages.tsv (external site); a missing name did not change. When the file changes, McpRenommageTest fails and prints the table to paste between the two markers.
<!-- mcp-renommages:debut -->
| Name in 3.x | Name in 4.0 |
|---|---|
accepter_demande_echange |
modifier_demande_echange |
activer_contrainte |
modifier_contrainte |
activer_edition |
modifier_edition |
affecter_journee_type |
modifier_gabarit |
affecter_poste |
modifier_affectation |
ajouter_fermeture_stand |
creer_horaire_stand |
ajouter_horaire_stand |
creer_horaire_stand |
ajouter_ouverture_stand |
creer_horaire_stand |
ajouter_validation_journee |
modifier_etat_journee |
analyser_effectifs |
consulter_besoin |
analyser_enchainements |
consulter_repas_pauses |
analyser_faisabilite |
consulter_besoin |
analyser_marge |
consulter_besoin |
analyser_ouvertures_stands |
removed |
analyser_pauses |
consulter_repas_pauses |
analyser_typologies |
consulter_besoin |
appliquer_declaration_disponibilite |
modifier_declaration_disponibilite |
arreter_solveur |
arreter_calcul |
capturer_instantane |
creer_version |
changements_journee |
comparer_journee |
compacter_horaires_stands |
removed |
comparer_instantanes |
comparer_versions |
configurer_collecte_disponibilites |
modifier_collecte_disponibilites |
configurer_foire_echanges |
modifier_foire_echanges |
consulter_animateur |
lister_animateurs |
consulter_collecte_disponibilites |
consulter_disponibilites |
consulter_historique_ponderation |
removed |
consulter_instantane |
consulter_version |
consulter_parametres_legaux |
consulter_parametres |
consulter_parametres_notifications |
consulter_parametres |
consulter_parametres_qualite |
consulter_parametres |
consulter_parametres_solveur |
consulter_parametres |
consulter_stand |
lister_stands |
creer_creneaux_recurrents |
appliquer_generateur_creneaux |
creer_stand_complet |
creer_stand |
definir_journee_type |
modifier_gabarit |
definir_prereglage_consigne |
modifier_prereglage_consigne |
deplacer_affectation |
modifier_affectation |
desactiver_contrainte |
modifier_contrainte |
desactiver_edition |
modifier_edition |
diagnostiquer_grille_creneaux |
diagnostiquer_creneaux |
dupliquer_edition |
creer_edition |
edition_courante |
lister_editions |
effacer_horaires_stand |
supprimer_horaire_stand |
effacer_plages_stand |
supprimer_horaire_stand |
equite_planning |
consulter_charge |
etat_edition |
consulter_edition |
etat_planning |
consulter_planning |
etat_publication |
consulter_publication |
etat_sauvegardes |
consulter_sauvegardes |
expliquer_affectation |
analyser_affectation |
expliquer_echec_contraintes_dures |
diagnostiquer_plan |
figer_referentiel |
modifier_phase_edition |
generer_creneaux_depuis_stands |
appliquer_generateur_creneaux |
heures_travaillees |
consulter_charge |
importer_scenario_yaml |
importer_scenario |
lancer_solveur |
lancer_calcul |
lever_consigne |
supprimer_consigne |
lever_gel |
modifier_phase_edition |
lister_affectations |
consulter_planning |
lister_declarations_disponibilite |
consulter_disponibilites |
lister_demandes_covoiturage |
consulter_disponibilites |
lister_destinataires_publication |
consulter_publication |
lister_instantanes |
lister_versions |
lister_jobs |
consulter_calcul |
lister_journees_types |
lister_gabarits |
lister_kpi_historique |
lister_mesures_edition |
lister_validations_journee |
consulter_etats_journee |
materialiser_journees_types |
appliquer_generateur_creneaux |
modifier_parametres_legaux |
modifier_parametres |
modifier_parametres_notifications |
modifier_parametres |
modifier_parametres_qualite |
modifier_parametres |
modifier_parametres_solveur |
modifier_parametres |
modifier_poids_contrainte |
modifier_contrainte |
plan_formation |
consulter_risques |
previsualiser_application_journees_types |
previsualiser_generateur_creneaux |
previsualiser_creneaux_recurrents |
previsualiser_generateur_creneaux |
previsualiser_derivation_creneaux |
previsualiser_generateur_creneaux |
previsualiser_reconnaissance_journees_types |
previsualiser_generateur_creneaux |
realise_vs_planifie |
comparer_realise_planifie |
reconnaitre_journees_types |
appliquer_generateur_creneaux |
refuser_declaration_disponibilite |
modifier_declaration_disponibilite |
refuser_demande_echange |
modifier_demande_echange |
reinitialiser_donnees |
supprimer_donnees_edition |
relancer_animateurs |
envoyer_relance_animateurs |
renommer_edition |
modifier_edition |
resoudre_incremental |
lancer_correction |
restaurer_instantane |
restaurer_version |
resultats_animateur |
consulter_planning |
retirer_dates_journee_type |
supprimer_gabarit |
retirer_validation_journee |
modifier_etat_journee |
simuler_deplacement |
simuler_affectation |
simuler_swap |
simuler_affectation |
statut_solveur |
consulter_calcul |
suggerer_reparations |
simuler_affectation |
supprimer_creneau |
supprimer_creneaux |
supprimer_instantane |
supprimer_version |
supprimer_job |
supprimer_calcul |
supprimer_journee_type |
supprimer_gabarit |
supprimer_kpi_historique |
supprimer_mesure_edition |
synthese_affectations |
consulter_planning |
synthese_confirmations |
consulter_publication |
valider_creneaux |
diagnostiquer_creneaux |
valider_scenario_yaml |
diagnostiquer_scenario |
volumes |
consulter_besoin |
<!-- mcp-renommages:fin -->
What has no tool
| Left out | Why |
|---|---|
| YAML scenario export, backups before a wipe | first name, last name and birth date, since they must be re-importable; only an administrator reads, restores or deletes them, through the API (ADR 0084 (external site)) |
| SQL dump, PDF, ICS and CSV exports, volunteers' CSV import | all the personal data, or binaries made for download |
/api/planning/sample, /persisted |
the whole plan, with personal data; consulter_planning (affectations view) covers the need while staying filtered |
| Animateur space, ICS subscription, rotating an animateur’s token | the animateur’s side, behind a personal token; rotation invalidates a link already printed, which cannot be undone from a conversation |
| Outgoing webhooks | a Slack, Discord or Matrix address is a secret and opens a network exit: a ready-made exfiltration path. They are set in Settings › Instance |
/api/horloge |
the simulated clock moves day-of mode, the frozen past and the animateur spaces for everyone: an instance setting |
/api/config, /api/auth, /api/branding, /api/mentions-legales, /api/debug |
public browser keys, admin session, branding, sandboxes: nothing an assistant could do with them |
A mistake, an omission? Fix this page on GitHub. (external site)