Skip to main content
Glama

set_frame_duration

Set how long selected frames display in milliseconds in a sprite file, controlling animation timing.

Instructions

Set how long frames are shown, in milliseconds.

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": {
      "path": "<path>",
      "duration_ms": "<duration_ms>"
    },
    "name": "set_frame_duration"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
framesNoFrames: a number, "1-4", "1-4,7" or "all" (1-based)all
duration_msYesFrame duration in milliseconds

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden. It says nothing about the fact that the operation mutates the sprite, whether the default frames="all" rewrites every frame's timing, whether values are overwritten irreversibly, or whether prior durations can be recovered. For a write operation with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with no filler, and the unit is stated immediately. It is efficient, though the terseness leaves no room for the scoping detail an agent needs about the default frames value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but for a mutation tool with no annotations the description should still disclose that it writes to the file, applies to all frames by default, and respects a 1-65535 ms bound. None of that is covered beyond the one-line purpose.

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 description coverage is 100%, so the baseline is 3; the description adds the unit clarification (milliseconds) which reinforces the duration_ms parameter's meaning. It adds nothing about the frames selector, but the schema already documents the number, range, and "all" syntax fully.

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?

States a specific verb and resource ("Set how long frames are shown") plus units, so an agent can tell it changes playback timing rather than pixel content like the draw_* siblings. It does not name or contrast with any sibling such as add_frames or delete_frames, which would have pushed this to 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?

The phrase "how long frames are shown" implies the timing-adjustment use case, but there is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives. An agent must infer the scenario from the verb alone.

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