Skip to main content
Glama

Set note pitch curve

set_pitch
DestructiveIdempotent

Replaces the pitch curve of selected OpenUtau notes to add scoops, falls, drifts, and overshoots by defining timed pitch-offset points.

Instructions

Replace the pitch curve of notes in OpenUtau (scoops, falls, drifts, overshoot; needs the bridge; one undo step). Examples: scoop up (snap_first=false): [{x:-40,y:-20},{x:60,y:0}]; fall at a phrase end on a 600 ms note: [{x:-40,y:0},{x:40,y:0},{x:420,y:0},{x:600,y:-30,shape:"i"}]. For a part-wide deviation curve use set_curve abbr=pitd. Returns the changed notes. / 音符のピッチ曲線を置き換えます(しゃくり・フォール・揺れ)。点は2つ以上。

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": {
      "part": "<part>",
      "indices": "<indices>",
      "points": "<points>"
    },
    "name": "set_pitch"
  }
}

Input Schema

NameRequiredDescriptionDefault
partYesVoice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える)
pointsYesAt least 2 points, in time order. / 2点以上
indicesYesNotes that get this curve. / 曲線を設定する音符の番号
snap_firstNotrue: the first point starts from the previous note's pitch (a normal slide; its y is ignored). false: start where you set it (scoops). / true で前の音から始める

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • addedInput schema / properties / indices / description
      Added value: +"Notes that get this curve. / 曲線を設定する音符の番号"
    • addedInput schema / properties / part / description
      Added value: +"Voice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える)"
    • addedInput schema / properties / points / description
      Added value: +"At least 2 points, in time order. / 2点以上"
    • addedInput schema / properties / snap_first / description
      Added value: +"true: the first point starts from the previous note's pitch (a normal slide; its y is ignored). false: start where you set it (scoops). / true で前の音から始める"
  2. Changed10 schema fields changedv0.4.0
    • removedInput schema / $defs
      Removed value: -{
      -  "PitchPoint": {
      -    "properties": {
      -      "shape": {
      -        "default": "io",
      -        "description": "Curve to the next point: io (ease in-out), i, o, l (linear). / 次の点への曲線形状",
      -        "title": "Shape",
      -        "type": "string"
      -      },
      -      "x": {
      -        "description": "Milliseconds from the note start (negative = before it). / 音符の開始からのミリ秒(負 = 前)",
      -        "title": "X",
      -        "type": "number"
      -      },
      -      "y": {
      -        "description": "Offset from the note's pitch in tenths of a semitone (10 = 1 semitone, -5 = a quarter tone flat). / 音符の音高からのずれ(0.1 半音単位、10 = 半音)",
      -        "title": "Y",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "x",
      -      "y"
      -    ],
      -    "title": "PitchPoint",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / indices / title
      Removed value: -"Indices"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / properties / points / items / $ref
      Removed value: -"#/$defs/PitchPoint"
    • addedInput schema / properties / points / items / properties
      Added value: +{
      +  "shape": {
      +    "default": "io",
      +    "description": "Curve to the next point: io (ease in-out), i, o, l (linear). / 次の点への曲線形状",
      +    "type": "string"
      +  },
      +  "x": {
      +    "description": "Milliseconds from the note start (negative = before it). / 音符の開始からのミリ秒(負 = 前)",
      +    "type": "number"
      +  },
      +  "y": {
      +    "description": "Offset from the note's pitch in tenths of a semitone (10 = 1 semitone, -5 = a quarter tone flat). / 音符の音高からのずれ(0.1 半音単位、10 = 半音)",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / points / items / required
      Added value: +[
      +  "x",
      +  "y"
      +]
    • addedInput schema / properties / points / items / type
      Added value: +"object"
    • removedInput schema / properties / points / title
      Removed value: -"Points"
    • removedInput schema / properties / snap_first / title
      Removed value: -"Snap First"
    • removedInput schema / title
      Removed value: -"set_pitchArguments"
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: it replaces (not merges) existing curves, costs one undo step, requires the bridge, and returns the changed notes. The annotations already declare destructiveHint=true and idempotentHint=true, so the incremental value is in prerequisites and undo semantics rather than the safety profile itself, but it 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-loads the verb and resource, then requirement, then examples, then the sibling pointer. The examples are dense but earn their place; the duplicated Japanese sentence adds length without new information for a non-Japanese reader.

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?

No output schema exists, and the description covers the return value (changed notes), prerequisites (bridge), side effects (one undo step, replacement semantics), and a pointer to the alternative tool. 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 is 3, and the description rises above it with concrete worked examples that show point ordering, the meaning of snap_first=false versus default true, and a shape="i" usage. It clarifies how the parameters combine rather than restating field docs.

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 (replace) and resource (pitch curve of notes) plus the concrete phenomena it controls (scoops, falls, drifts, overshoot). It explicitly contrasts itself with set_curve abbr=pitd, so an agent can distinguish it from the sibling without opening either 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?

Gives explicit when-to-use cases (scoop up, fall at a phrase end) and names the alternative tool for a different need (part-wide deviation curve via set_curve abbr=pitd). The bridge prerequisite is stated as a condition for use.

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