Skip to main content
Glama

physics_bounce

Simulate physically accurate object bouncing on an OpenToonz layer or peg using gravity parabolas, material-based restitution, squash, and horizontal travel for animated drops and rebounds.

Instructions

Physically exact bouncing (gravity parabolas, coefficient of restitution) on a layer/peg. The drawing must rest on the ground line; y offsets go UP from there. height px. fall_frames: frames for the first drop (default: real gravity for a 1.7 m character = 1080 px tall, i.e. 14.1*sqrt(height/1080)). material: rubber_ball | table_tennis | basketball | tennis | soft_rubber | bowling | balloon (sets restitution and squash). travel_x: px moved over the whole bounce, slowing with each contact. squash: area-preserving contact squash (set_pivot at the feet first).

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": {
      "scene": "<scene>",
      "target": "<target>",
      "start": "<start>",
      "height": "<height>"
    },
    "name": "physics_bounce"
  }
}

Input Schema

NameRequiredDescriptionDefault
sceneYes
startYes
heightYes
squashNo
targetYes
bouncesNo
materialNorubber_ball
travel_xNo
fall_framesNo
start_on_groundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it defines the coordinate convention (y offsets go UP from the ground line), the units (px), the fall_frames default formula, what material controls (restitution and squash), and that travel_x slows on each contact. It does not say whether existing keyframes are overwritten or what the tool returns, which is the main remaining 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?

Dense and front-loaded, with each clause carrying real information such as the physics formula and the enum-style material list. It reads somewhat telegraphically ("height px.") and the units sentence runs long, but there is little filler.

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

Completeness3/5

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

For a 10-parameter tool with zero schema coverage, no annotations and no output schema, the description covers the physics behavior well but leaves several parameters and key side effects such as keyframe creation or replacement undocumented. An agent would know how to shape the motion but not how to correctly name the target and start arguments.

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 0%, so the description must explain all 10 parameters, and it explains height, fall_frames, material, travel_x and squash meaningfully. However bounces, start_on_ground, scene, target and start are never described, and 'start' is an ambiguous name whose meaning must be guessed.

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 action and resource: physically exact bouncing with gravity parabolas and coefficient of restitution, applied to a layer/peg. It reads as an animation-generator tool and can be distinguished from physics_jump only by inference, since no sibling is named.

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?

Gives one prerequisite, "set_pivot at the feet first" for squash, which is concrete and actionable. It never says when to pick this over physics_jump, nor when bouncing is inappropriate, so usage context is only implied.

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