Skip to main content
Glama

Mémoriser une préférence musicale

learn_music_preference
DestructiveIdempotent

Records an A/B listener choice from an accompaniment or breath comparison and updates a local music preference profile so future SoundMCP drafts follow the listener's taste.

Instructions

Enregistre le choix A ou B de l’auditeur après une comparaison accompaniment ou breath. Chaque lettre désigne la prise de cette comparaison. Répéter le même choix conserve le profil sans le réécrire. Si le manifeste est invalide, relance compare_music_choices et fais écouter les nouvelles prises avant de mémoriser un choix. Si le profil est en cours de mise à jour, réessaie dans un instant. draft_music applique le profil aux prochaines esquisses. Passe-lui use_preferences=false pour l’ignorer le temps d’un appel.

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": {
      "comparison_path": "<comparison_path>",
      "chosen": "<chosen>"
    },
    "name": "learn_music_preference"
  }
}

Input Schema

NameRequiredDescriptionDefault
chosenYesLettre de la prise choisie explicitement par l’auditeur.
profile_pathNoProfil JSON local à créer ou mettre à jour. Par défaut, utilise le profil SoundMCP configuré. Pour un autre profil, passe le même chemin à draft_music.
comparison_pathYesValeur comparison_path de compare_music_choices avec criterion=accompaniment ou breath. Elle relie la lettre choisie à la variante entendue.

Output Schema

NameRequiredDescriptionDefault
choiceYesVariante réelle enregistrée pour ce critère, après résolution de la lettre A ou B.
choicesYesTous les choix mémorisés dans ce profil, y compris ceux des autres critères.
criterionYes
profile_pathYesProfil local réutilisable dans draft_music.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.4.1
    • changedInput schema / properties / comparison_path / description
      Previous value: -"Chemin du manifeste comparison_path renvoyé par compare_music_choices pour accompaniment ou breath."New value: +"Valeur comparison_path de compare_music_choices avec criterion=accompaniment ou breath. Elle relie la lettre choisie à la variante entendue."
    • changedInput schema / properties / profile_path / description
      Previous value: -"Profil local à créer ou mettre à jour. À défaut, utilise le profil local configuré par SoundMCP."New value: +"Profil JSON local à créer ou mettre à jour. Par défaut, utilise le profil SoundMCP configuré. Pour un autre profil, passe le même chemin à draft_music."
    • addedOutput schema / properties / choice / description
      Added value: +"Variante réelle enregistrée pour ce critère, après résolution de la lettre A ou B."
    • addedOutput schema / properties / choice / enum
      Added value: +[
      +  "normal",
      +  "discreet",
      +  "spaced"
      +]
    • addedOutput schema / properties / choices / description
      Added value: +"Tous les choix mémorisés dans ce profil, y compris ceux des autres critères."
    • addedOutput schema / properties / choices / properties
      Added value: +{
      +  "accompaniment": {
      +    "enum": [
      +      "normal",
      +      "discreet"
      +    ],
      +    "type": "string"
      +  },
      +  "breath": {
      +    "enum": [
      +      "normal",
      +      "spaced"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / choices / required
      Added value: +[]
    • addedOutput schema / properties / criterion / enum
      Added value: +[
      +  "accompaniment",
      +  "breath"
      +]
  2. Changed1 schema field changedv2.1.1
    • changedInput schema / properties / comparison_path / description
      Previous value: -"Chemin comparison_path renvoyé par compare_music_choices pour accompaniment ou breath. Pour build, la correspondance reveal_path sert à identifier la variante retenue."New value: +"Chemin du manifeste comparison_path renvoyé par compare_music_choices pour accompaniment ou breath."
  3. Changed3 schema fields changedv2.1.0
    • addedInput schema / properties / chosen / description
      Added value: +"Lettre de la prise choisie explicitement par l’auditeur."
    • addedInput schema / properties / comparison_path / description
      Added value: +"Chemin comparison_path renvoyé par compare_music_choices pour accompaniment ou breath. Pour build, la correspondance reveal_path sert à identifier la variante retenue."
    • changedInput schema / properties / profile_path / description
      Previous value: -"Chemin local du profil renvoyé par learn_music_preference."New value: +"Profil local à créer ou mettre à jour. À défaut, utilise le profil local configuré par SoundMCP."
  4. Changed1 schema field changedv2.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "choice": {
      +      "type": "string"
      +    },
      +    "choices": {
      +      "type": "object"
      +    },
      +    "criterion": {
      +      "type": "string"
      +    },
      +    "profile_path": {
      +      "description": "Profil local réutilisable dans draft_music.",
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "criterion",
      +    "choice",
      +    "choices",
      +    "profile_path"
      +  ],
      +  "type": "object"
      +}
  5. Addedv1.17.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: repeating the same choice is a no-op that preserves the profile, invalid manifests must be regenerated before recording, and concurrent profile updates should be retried. The one gap is that destructiveHint=true is never explained — the description does not say what a differing choice overwrites or whether prior preferences are lost. With annotations already declaring idempotency and destructiveness, the added context is still substantial.

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?

Front-loaded with the core action, then error handling, then the downstream integration with draft_music in a distinct sentence. Every sentence carries information, though the draft_music paragraph edges toward tangential cross-tool advice already implied by the profile_path schema text.

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?

An output schema exists, so return values need no explanation, and this three-parameter write tool is well covered on prerequisites, retry behavior, and integration. The remaining hole is the destructive semantics: an agent cannot tell from the definition whether a changed choice replaces or merges with an existing preference.

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 all three parameters are already documented, including the A/B enum and the provenance of comparison_path. The description only reinforces the letter-to-take mapping and the profile sharing with draft_music, adding little syntax or constraint information the schema does not already carry.

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 object: it records the listener's A-or-B choice produced by an accompaniment or breath comparison, and clarifies that each letter refers to that comparison's take. This separates it cleanly from compare_music_choices (which produces the comparison) and draft_music (which consumes the saved profile).

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?

Gives explicit preconditions (must follow an accompaniment/breath comparison), an error path (if the manifest is invalid, rerun compare_music_choices and have the new takes listened to before memorizing), a concurrency path (retry if the profile is being updated), and an alternative behavior hint for the sibling (draft_music with use_preferences=false to ignore the profile). Routes the agent to the right sibling at the right moment.

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