Skip to main content
Glama

mmm_get_keys

Read-only

Reads bone keyframes from MikuMikuMoving, returning frame, position, rotation quaternion, interpolation curves, and selection state; filter by bone, layer, model, frame range, or selected keys.

Instructions

ボーンのキー(フレーム・位置・回転の四元数 x,y,z,w・補間曲線 x/y/z/r の [ax,ay,bx,by]・選択中か)を読む。

MMM は全ボーンの 0 フレーム目に既定のキーを持つ(VMD に無くても在る)。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mmm_get_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
bonesNoボーン名の一覧。省くと全ボーン(多いので frame_range か selected_only で絞ること)
layerNoモーションレイヤの番号。0 が一番下(名前の無い基本のレイヤ)
modelNoモデルの番号(mmm_list_models の index)。省くと MMM で選択中(アクティブ)のモデル
summaryNoキーの中身を返さず、ボーンごとのキーの数とフレームの一覧だけ返す
frame_rangeNo[始め, 終わり](両端を含む)のキーだけ返す
selected_onlyNoMMM で選択中のキーだけ返す

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered without the description. What the description does add is genuinely non-obvious: every bone has a default key at frame 0 even when the VMD has none, which changes how an agent should interpret a non-empty result. That is a real contribution, but nothing is said about result size, cost of reading all bones, or ordering.

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?

Two short sentences, front-loaded with what is returned and followed by the frame-0 default caveat. The parenthetical enumeration of key fields is dense but every element is meaningful. Slight redundancy with the output schema keeps it 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?

With an output schema present and full annotation coverage, the description only needed to supply what structured fields cannot: the frame-0 default-key behavior, which it does. Remaining gaps (return ordering, cost of unfiltered reads) are partly mitigated by the schema's own warnings, so the definition is adequate for a 6-parameter, all-optional read tool.

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%, and each parameter (bones, layer, model, summary, frame_range, selected_only) is already documented in the schema, including the caution to narrow with frame_range or selected_only. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The description states a specific verb (読む/read) and a specific resource (a bone's keys), then enumerates exactly what a key contains: frame, position, quaternion rotation x/y/z/w, and per-axis interpolation handles [ax,ay,bx,by], plus selection state. This is far more concrete than the tool name alone. It does not explicitly contrast itself with mmm_replace_keys or mmm_get_marker, so it falls short of a 5.

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?

Usage is only implied: an agent can infer this is the read-side counterpart to mmm_replace_keys, but the description never says when to prefer it over siblings or what the preconditions are. Narrowing guidance (use frame_range or selected_only) exists only in the schema parameter descriptions, not in the description itself.

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