Skip to main content
Glama

Mesurer un rendu musical

analyze_music
Read-only

Measures loudness, peaks, saturation, and stereo of a local WAV or project file, returning diagnostics to check masters or stems against a brief before export.

Instructions

Contrôle la sonie, les crêtes, la saturation et la stéréo d’un seul fichier local. wav_path mesure le master livré tel quel. Utilise project_path pour diagnostiquer les pupitres ou les écarts au brief avant export. Le rendu reste en mémoire et la réponse contient les mesures. Pour écouter un timbre, utilise play_sound ou compare_sounds. Pour lire les notes et accords, utilise inspect_score.

Input Schema

NameRequiredDescriptionDefault
wav_pathNoChemin d’un WAV RIFF mono ou stéréo, PCM 16/24/32 bits ou flottant 32 bits, de 8 à 96 kHz et d’au plus 603 secondes.
project_pathNoChemin local .soundmcp.json. Réutilise project_path d’une esquisse, d’une prise A/B ou d’une version exportée.

Output Schema

NameRequiredDescriptionDefault
stemsNoNiveaux moyens rmsDbfs par pupitre pour un projet SoundMCP.
channelsNoNombre de canaux du signal mesuré.
sectionsNoMesures par section pour un projet SoundMCP.
warningsYes
sampleRateNoFréquence d’échantillonnage du signal mesuré, en hertz.
clippedFramesNoNombre de trames dont un canal atteint le seuil de saturation numérique.
integratedLufsYes
samplePeakDbfsYes
suggestedEditsNoRetouches proposées pour un projet, au format edits de edit_music.
durationSecondsYes
harmonicOverlapsNo
stereoCorrelationNoCorrélation entre canaux de −1 à 1, ou null si elle est indéfinie.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.1.1
    • changedInput schema / properties / wav_path / description
      Previous value: -"Chemin d’un WAV déjà rendu à mesurer directement."New value: +"Chemin d’un WAV RIFF mono ou stéréo, PCM 16/24/32 bits ou flottant 32 bits, de 8 à 96 kHz et d’au plus 603 secondes."
    • addedOutput schema / properties / channels
      Added value: +{
      +  "description": "Nombre de canaux du signal mesuré.",
      +  "enum": [
      +    1,
      +    2
      +  ],
      +  "type": "integer"
      +}
    • addedOutput schema / properties / clippedFrames
      Added value: +{
      +  "description": "Nombre de trames dont un canal atteint le seuil de saturation numérique.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / sampleRate
      Added value: +{
      +  "description": "Fréquence d’échantillonnage du signal mesuré, en hertz.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / sections
      Added value: +{
      +  "description": "Mesures par section pour un projet SoundMCP.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / stems
      Added value: +{
      +  "description": "Niveaux moyens rmsDbfs par pupitre pour un projet SoundMCP.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / stereoCorrelation
      Added value: +{
      +  "description": "Corrélation entre canaux de −1 à 1, ou null si elle est indéfinie.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / suggestedEdits
      Added value: +{
      +  "description": "Retouches proposées pour un projet, au format edits de edit_music.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changedv2.1.0
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "project_path"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "wav_path"
      +    ]
      +  }
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Chemin local .soundmcp.json renvoyé par draft_music, create_music ou edit_music."New value: +"Chemin local .soundmcp.json. Réutilise project_path d’une esquisse, d’une prise A/B ou d’une version exportée."
    • addedInput schema / properties / wav_path / description
      Added value: +"Chemin d’un WAV déjà rendu à mesurer directement."
  3. Changed1 schema field changedv2.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "durationSeconds": {
      +      "type": "number"
      +    },
      +    "harmonicOverlaps": {
      +      "properties": {
      +        "bars": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "examples": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "minimumSeconds": {
      +          "type": "number"
      +        },
      +        "total": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "total",
      +        "minimumSeconds",
      +        "bars",
      +        "examples"
      +      ],
      +      "type": "object"
      +    },
      +    "integratedLufs": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "samplePeakDbfs": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "durationSeconds",
      +    "integratedLufs",
      +    "samplePeakDbfs",
      +    "warnings"
      +  ],
      +  "type": "object"
      +}
  4. Addedv1.17.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real value beyond them: the render stays in memory (nothing is written to disk) and the response carries the measurements. It does not say what happens if both or neither path is supplied, which the oneOf schema implies but leaves implicit.

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?

The purpose and the two-parameter decision are front-loaded, then sibling routing follows. Every sentence carries either scope, a routing rule or a behavioral fact; nothing is repeated from the schema or annotations.

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?

An output schema exists so return values need no explanation, yet the description still notes that measurements come back in the response. For a two-parameter, read-only analysis tool with a complete schema, nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics: wav_path analyses the delivered master with no preprocessing, while project_path reuses a sketch, A/B take or exported version for pre-export diagnosis. That is meaning beyond the path-format text in 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?

The opening sentence names a concrete verb of measurement plus the specific dimension set (loudness, peaks, saturation, stereo) and scopes it to 'un seul fichier local'. An agent can distinguish it from play_sound, compare_sounds and inspect_score without opening any schema.

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 explicitly routes by intent: wav_path for the delivered master as-is, project_path for diagnosing stems or brief deviations before export, play_sound/compare_sounds for timbre listening, inspect_score for notes and chords. Both when-to-use and the alternatives are stated, with no inference required.

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