Skip to main content
Glama

Add part

score.add_part
Idempotent

Add a layer to a score: one voice of the music (a drum kit, a bass, a pad, a recorded sound) with its own instrument, effects, level and regions. Silent until it has a region: notes need an instrument on the part; an audio region sounds on its own. Returns the new score_id (edit that one next) and the part_id.

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": {
      "score_id": "<score_id>"
    },
    "name": "score.add_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
panNo-1 left to 1 right
nameNoA label
outputNoWhere it sounds: master (default) or a part_id, to group parts under one part’s effects and levelmaster
gain_dbNoLevel. Default 0
score_idYesThe score to edit

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified
part_idYes
score_idYesThe new version: edit this one next (older ids stay valid)
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the mutation and safety profile is covered. The description adds valuable behavioral detail beyond annotations: it explains that a part is silent until it has a region, that notes need an instrument, and that audio regions sound on their own. It also notes the return values and advises editing the new score_id next.

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?

The description is three sentences and front-loads the core action ('Add a layer to a score') before behavioral notes and return values. It is efficient with no obvious filler, though the return-value sentence is partly redundant with the output schema, albeit adding useful guidance ('edit that one next').

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?

Given the tool's moderate complexity, annotations covering safety, and an output schema, the description is nearly complete. It covers purpose, key behavioral caveats, and return values, but lacks explicit guidance on when to choose this over sibling tools like score.set_part.

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 the schema already documents all five parameters (pan, name, output, gain_db, score_id). The description does not add syntax or meaning for these parameters beyond what the schema provides, so the baseline score of 3 is appropriate.

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 states a specific verb and resource ('Add a layer to a score' / 'part') and explains what a part is in domain terms (a voice with its own instrument, effects, level and regions). This clearly distinguishes it from sibling tools like score.remove_part or score.set_part without needing to open the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it—adding a new layer to a score—but does not explicitly contrast it with alternatives such as score.set_part or score.add_device. It provides useful behavioral context ('Silent until it has a region') but no when-not or alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.