Skip to main content
Glama

Lire la partition

inspect_score
Read-only

Read chords and notes from a bar range in a SoundMCP project, filter by part, and page through note events with offset.

Instructions

Relève les accords et les notes d’une plage de mesures. Avec part=mel et limit=1, la réponse garde tous les accords de la plage et renvoie au plus une note par page. Reprends next_offset dans offset pour continuer. Pour écouter la plage, utilise preview_music. Pour réécrire une mesure, utilise edit_music avec edits[].type=write_measure.

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": {
      "project_path": "<project_path>"
    },
    "name": "inspect_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsNoNombre de mesures demandées. Par défaut, jusqu’à quatre mesures restantes.
partNoRestreint les notes à un pupitre, par exemple mel ou bass. La réponse conserve les accords de chaque mesure.
limitNoNombre maximal d’événements de notes dans cette page. La liste des mesures reste entière.
offsetNoNombre d’événements à ignorer après filtrage. Reprends la valeur next_offset de la page précédente.
start_barNoPremière mesure du passage, numérotée à partir de 1.
project_pathYesChemin local .soundmcp.json. Réutilise project_path d’une esquisse, d’une prise A/B ou d’une version exportée.

Output Schema

NameRequiredDescriptionDefault
barsYes
eventsYes
offsetYes
measuresYesToutes les mesures demandées avec leurs accords, y compris si part filtre les notes.
start_barYes
event_countYes
next_offsetYesPasse cette valeur dans offset avec les mêmes start_bar, bars et part. null indique la dernière page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.4.1
    • addedOutput schema / properties / events / items / properties / beat / description
      Added value: +"Temps écrit dans la mesure, à partir de zéro."
    • addedOutput schema / properties / events / items / properties / played / properties
      Added value: +{
      +  "beat": {
      +    "type": "number"
      +  },
      +  "gate_seconds": {
      +    "type": "number"
      +  },
      +  "seconds": {
      +    "type": "number"
      +  },
      +  "velocity": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / events / items / properties / played / required
      Added value: +[
      +  "beat",
      +  "seconds",
      +  "velocity",
      +  "gate_seconds"
      +]
    • addedOutput schema / properties / measures / description
      Added value: +"Toutes les mesures demandées avec leurs accords, y compris si part filtre les notes."
    • changedOutput schema / properties / next_offset / description
      Previous value: -"Valeur à passer dans offset pour la page suivante."New value: +"Passe cette valeur dans offset avec les mêmes start_bar, bars et part. null indique la dernière page."
  2. Changed9 schema fields changedv2.1.0
    • addedInput schema / properties / bars / description
      Added value: +"Nombre de mesures demandées. Par défaut, jusqu’à quatre mesures restantes."
    • addedInput schema / properties / limit / default
      Added value: +160
    • addedInput schema / properties / limit / description
      Added value: +"Nombre maximal d’événements de notes dans cette page. La liste des mesures reste entière."
    • addedInput schema / properties / offset / default
      Added value: +0
    • addedInput schema / properties / offset / description
      Added value: +"Nombre d’événements à ignorer après filtrage. Reprends la valeur next_offset de la page précédente."
    • addedInput schema / properties / part / description
      Added value: +"Restreint les notes à un pupitre, par exemple mel ou bass. La réponse conserve les accords de chaque mesure."
    • 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 / start_bar / default
      Added value: +1
    • addedInput schema / properties / start_bar / description
      Added value: +"Première mesure du passage, numérotée à partir de 1."
  3. Changed1 schema field changedv2.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bars": {
      +      "type": "integer"
      +    },
      +    "event_count": {
      +      "type": "integer"
      +    },
      +    "events": {
      +      "items": {
      +        "properties": {
      +          "bar": {
      +            "type": "integer"
      +          },
      +          "beat": {
      +            "type": "number"
      +          },
      +          "duration": {
      +            "type": "number"
      +          },
      +          "hit": {
      +            "type": "string"
      +          },
      +          "instrument": {
      +            "type": "string"
      +          },
      +          "part": {
      +            "type": "string"
      +          },
      +          "pitch": {
      +            "type": "integer"
      +          },
      +          "played": {
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "bar",
      +          "part",
      +          "instrument",
      +          "beat",
      +          "duration",
      +          "played"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "measures": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_offset": {
      +      "description": "Valeur à passer dans offset pour la page suivante.",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "offset": {
      +      "type": "integer"
      +    },
      +    "start_bar": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "start_bar",
      +    "bars",
      +    "measures",
      +    "events",
      +    "offset",
      +    "event_count",
      +    "next_offset"
      +  ],
      +  "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, so this is clearly a safe local read. The description adds non-obvious behavior beyond that: the response always keeps all chords for the range while paginating notes, and 'limit=1' with part=mel returns at most one note per page. That interaction between filtering and pagination is the valuable disclosure; error or empty-range behavior is still unstated.

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?

Four short sentences, each doing distinct work: purpose, paging edge case, continuation rule, and sibling routing. The purpose is front-loaded and nothing is redundant.

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?

Six parameters are all described in the schema, an output schema exists so return shape need not be re-explained, and the description covers the two things the schema cannot: pagination continuation and sibling selection. Nothing an agent needs to call this 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 would be 3. The description goes beyond the schema by explaining the cross-parameter interaction between part and limit (chords retained in full, notes paged) and by reinforcing the offset/next_offset loop, which the schema states only in isolation.

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 names a specific verb and resource: 'Relève les accords et les notes d’une plage de mesures.' It also implicitly separates the tool from siblings by stating what it does not do (listening vs. rewriting), so an agent can distinguish inspect_score from preview_music and edit_music 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 gives explicit when-to-use routing: 'Pour écouter la plage, utilise preview_music' and 'Pour réécrire une mesure, utilise edit_music avec edits[].type=write_measure.' It also tells the agent how to continue a paginated read by feeding next_offset into offset, which is exactly the operational guidance needed.

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