Skip to main content
Glama

Set expression curve

set_curve
DestructiveIdempotent

Draws or resets an expression curve for an OpenUtau voice part using [tick, value] points; empty points restore the default.

Instructions

Draw an expression curve of a voice part in OpenUtau through [tick, value] points (straight lines; values clamped to the range), or reset it to default when points is empty. Dynamics (dyn), DiffSinger tension (tenc), breathiness (brec), gender (genc), voicing (voic), pitch deviation (pitd, cents). One undo step. Per-note values use set_note_expression. Returns the curve. / パートの表情カーブを [ティック, 値] の点で描きます。points が空なら既定に 戻します。音符ごとの値は set_note_expression。

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>",
      "abbr": "<abbr>"
    },
    "name": "set_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
abbrYesExpression abbreviation, e.g. "dyn", "vel", "tenc". / 表情の略称
partYesVoice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える)
pointsNo[tick, value] pairs, part-relative ticks, joined by straight lines, e.g. [[0,0],[960,-60]]. Omit or [] to reset the curve to its default. / [ティック, 値] の点。省略か [] で既定に戻す

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • addedInput schema / properties / abbr / description
      Added value: +"Expression abbreviation, e.g. \"dyn\", \"vel\", \"tenc\". / 表情の略称"
    • 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: +"[tick, value] pairs, part-relative ticks, joined by straight lines, e.g. [[0,0],[960,-60]]. Omit or [] to reset the curve to its default. / [ティック, 値] の点。省略か [] で既定に戻す"
    • changedInput schema / required
      Previous value: -[
      -  "part",
      -  "abbr",
      -  "points"
      -]New value: +[
      +  "part",
      +  "abbr"
      +]
  2. Changed4 schema fields changedv0.4.0
    • removedInput schema / properties / abbr / title
      Removed value: -"Abbr"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / properties / points / title
      Removed value: -"Points"
    • removedInput schema / title
      Removed value: -"set_curveArguments"
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true; the description adds real behavioral context beyond them: values are clamped to the range, points are joined by straight lines, and the whole call collapses into one undo step. It also states that it returns the curve, which the absent output schema would otherwise leave unknown.

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 and the key reset rule, with the sibling redirect placed at the point of ambiguity. The full Japanese restatement nearly doubles the length without adding new information for most readers, which is the main thing keeping this from a 5.

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?

For a 3-parameter destructive mutation with no output schema, the definition covers what is overwritten, interpolation behavior, clamping, undo cost, and return value. Only the readable curve source (get_curve) and any permission/prerequisite notes are absent.

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 coverage is 100% and already documents part indexing, the [tick, value] pair format, and reset semantics. The description contributes the set of supported abbreviations (dyn, tenc, brec, genc, voic, pitd with cents), which meaningfully extends the schema's brief examples, but tick units and value ranges are left to 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?

Starts with a specific verb+resource ('Draw an expression curve of a voice part') and adds precise scope: [tick, value] points, straight-line interpolation, clamping, and reset-on-empty behavior. It also explicitly contrasts with the sibling set_note_expression for per-note values, so an agent can distinguish the two 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 Guidelines4/5

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

Gives a clear rule for the reset case ('reset it to default when points is empty') and routes per-note editing to set_note_expression. It stops short of naming get_curve for reading an existing curve or stating prerequisites, so the guidance is strong but not exhaustive.

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