Skip to main content
Glama

mmm_replace_keys

Destructive

Replaces keyframes in a frame range by clearing existing bone keys and inserting supplied keys, then returns deleted/inserted counts and undo status.

Instructions

範囲のキーを差し替える。消した数・入れた数・元に戻すに載ったかを返す。範囲の端のキーを残したい時は、渡す側に含める。

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": {
      "frame_range": "<frame_range>",
      "bones": "<bones>"
    },
    "name": "mmm_replace_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
undoNoMMM の元に戻す(Ctrl+Z)に 1 段で載せる。アクティブなモデルの時だけ載る
bonesYesボーン名 → キーの一覧。キーは {frame, position: [x,y,z], quaternion: [x,y,z,w], interp: {x|y|z|r: [ax,ay,bx,by]}}。position・quaternion を省くと 0・回転なし、interp を省くと直線(20,20,107,107)。frame は frame_range の中に限る
layerNoモーションレイヤの番号(0 が基本)
modelNoモデルの番号(mmm_list_models の index)。省くと MMM で選択中(アクティブ)のモデル
frame_rangeYes[始め, 終わり](両端を含む)。各ボーンでこの範囲のキーを全部消してから、渡したキーを入れる

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

アノテーションで destructiveHint=true が既に示されているが、説明文はさらに「消した数・入れた数・元に戻すに載ったか」を返すことと、範囲端のキーを残す挙動を追加で伝えている。権限やアクティブモデル限定の undo 挙動までは説明していないが、スキーマ側が補完している。

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?

三つの短い文で構成され、目的が冒頭に置かれている。戻り値と端のキーに関する補足も簡潔で、無駄な記述がない。

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?

破壊的な書き込みツールであり、ネストしたスキーマと出力スキーマを持つ複雑さを考慮しても、説明・アノテーション・スキーマを合わせれば呼び出しに必要な情報はほぼ揃っている。兄弟ツールとの使い分けの明示だけが不足している。

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?

スキーマの説明カバレッジが 100% なので基準は 3 だが、「範囲の端のキーを残したい時は、渡す側に含める」という記述が bones と frame_range の関係に実用的な意味を加えている。パラメータ構文の詳細説明ではないものの、スキーマ以上のニュアンスを提供している。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

明確な動詞と対象(範囲のキーを差し替える)を述べており、何をするツールかは一目で分かる。ただし mmm_get_keys や mmm_select_keys など類似の兄弟ツールとの違いを明示的には述べていない。

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?

範囲端のキーを残したい場合の扱いには触れているが、どのような場面でこのツールを使うべきか、あるいは他のキー操作ツールを使うべきかについての明示的な指針はない。使い方は暗黙的に推測できる範囲にとどまる。

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