Skip to main content
Glama

set_anim_frame_rate

DestructiveIdempotent

Set the frame rate of a UAnimSequence's data model, validating that the new rate is a multiple or factor of the current rate and keeps whole frames, then save the asset.

Instructions

Set the frame rate of the data model of a UAnimSequence (IAnimationDataController::SetFrameRate, one undo step) to fps rounded to whole frames per second, then save the package; fps, numerator and denominator are read back from the data model. The data controller only takes a rate that is a multiple or a factor of the current one, and the frame count must stay whole at the new rate: any other rate is an error and nothing changes. The rate the data model already has is a success with changed=false, saved=false and a note, and nothing is written or saved. A failed save makes success false, with saved=false and save_error. get_anim_sequence_info reads the rate.

Returns: { sequence_path, fps, numerator, denominator, changed, saved, save_error, note? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsYesNew frame rate in frames per second, rounded to a whole number that must be at least 1.
sequence_pathYesAsset path of the UAnimSequence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • changedInput schema / properties / fps / description
      Previous value: -"New frame rate in frames per second (integer > 0)."New value: +"New frame rate in frames per second, rounded to a whole number that must be at least 1."
  2. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give the safety profile (not read-only, destructive, idempotent), while the description supplies the behavior an agent actually needs: one undo step, automatic package save, partial-failure semantics (success=false, saved=false, save_error), atomic no-change on error, and the no-op note path.

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 constraint on valid rates. It is dense and slightly run-on across several conditional clauses, but every clause carries actionable constraint or return information rather than filler.

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?

With no output schema, the description fully carries the return contract ({sequence_path, fps, numerator, denominator, changed, saved, save_error, note?}) plus error and save-failure paths. An agent has everything needed to call it and interpret the result.

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% and both params are documented there, so the baseline is 3. The description adds meaning beyond the schema by stating the rate is rounded to whole fps and that fps/numerator/denominator are read back from the data model, implying the applied rate may differ from the requested value.

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?

Names a precise verb and resource ('Set the frame rate of the data model of a UAnimSequence') and even cites the underlying API (IAnimationDataController::SetFrameRate). It is clearly distinguishable from the level-sequence sibling set_sequence_frame_rate and from the read-side get_anim_sequence_info.

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?

Explicit preconditions for a valid call: the new rate must be a multiple or factor of the current one and the frame count must stay whole, otherwise it is an error and nothing changes. It also states the no-op case (rate already set → success with changed=false) and names get_anim_sequence_info as the way to read the current rate.

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

Deploy Server

Other Tools