Skip to main content
Glama

set_physics_asset_constraint_drives

DestructiveIdempotent

Set a UPhysicsAsset constraint's linear and angular motor drives, break thresholds, and projection settings to define how the joint behaves beyond its limits; changes persist in the asset.

Instructions

Set a UPhysicsAsset constraint's drives (linear + angular motors), breakable thresholds, and projection — the "behavior beyond limits" (read-modify-write; only provided fields change; idempotent set-to-fixed-value). Authoring-only: the values persist into the asset (the live motor effect is observed in PIE/sim).

Returns: { physics_asset_path: string, constraint_name: string, constraint_index: int, applied_count: int, angular_drive_spring: float, angular_drive_damping: float, angular_drive_force_limit: float, angular_orientation_target: [float], linear_drive_spring: float, linear_drive_damping: float, linear_drive_force_limit: float, linear_position_target: [float], projection_linear_alpha: float, projection_angular_alpha: float, projection_linear_tolerance: float, projection_angular_tolerance: float, saved: bool, save_error?: string, constraint: object }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
constraint_nameYesName (JointName) of the constraint to edit (see get_physics_asset_info).
linear_breakableNoOptional: the joint can break under linear force.
parent_dominatesNoOptional: the parent body is unaffected by the child's motion.
angular_breakableNoOptional: the joint can break under angular force.
angular_drive_modeNoOptional angular drive mode: SLERP|TwistAndSwing.
physics_asset_pathYes/Game path to the UPhysicsAsset.
projection_enabledNoOptional: enable projection (post-solve position/angle fixup).
linear_drive_springNoOptional linear drive spring/stiffness.
angular_drive_springNoOptional angular drive spring/stiffness.
linear_drive_dampingNoOptional linear drive damping.
angular_drive_dampingNoOptional angular drive damping.
linear_position_driveNoOptional: enable the linear position drive (applied to all 3 axes).
linear_velocity_driveNoOptional: enable the linear velocity drive (all 3 axes).
angular_velocity_driveNoOptional: enable the angular velocity drive.
linear_break_thresholdNoOptional linear break force threshold.
linear_position_targetNoOptional [x, y, z] target position.
angular_break_thresholdNoOptional angular break torque threshold.
projection_linear_alphaNoOptional semi-physical linear projection alpha [0..1].
linear_drive_force_limitNoOptional linear drive force limit (0 = unlimited).
projection_angular_alphaNoOptional semi-physical angular projection alpha [0..1].
angular_drive_force_limitNoOptional angular drive force/torque limit (0 = unlimited).
angular_orientation_driveNoOptional: enable the angular orientation (position) drive.
angular_orientation_targetNoOptional [pitch, yaw, roll] target orientation in degrees.
projection_linear_toleranceNoOptional projection linear tolerance.
projection_angular_toleranceNoOptional projection angular tolerance in degrees.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=true, but the description adds substantial context beyond them: read-modify-write semantics, that only provided fields change (partial update), that it is an idempotent set-to-fixed-value operation, and that edits persist into the asset rather than affecting a live simulation. This is exactly the behavioral detail an agent needs before mutating a shared asset.

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?

The prose is dense and front-loaded, leading with the action and then the semantics. The long 'Returns:' block is verbose but earns its place because there is no output schema, so it is the only source of return-shape information.

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?

For a 25-parameter asset mutation tool, the definition covers the essentials: authoring-only scope, partial-update semantics, idempotency, and a full return shape. It stops short of explaining save behavior implied by the returned saved/save_error fields, and it relies on the schema to point at get_physics_asset_info for valid constraint names.

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%, so every one of the 25 parameters is already documented in the schema, and the description adds no syntax or format detail beyond grouping them as 'linear + angular motors, breakable thresholds, and projection'. Per the rubric, a 3 is the correct baseline when the schema carries the parameter burden.

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?

States a specific verb and resource (set a UPhysicsAsset constraint's drives, breakable thresholds, projection) and pins down scope with the phrase 'behavior beyond limits', implicitly separating it from set_physics_asset_constraint_limits. It also distinguishes itself from the runtime sibling set_physics_constraint_drives by declaring 'Authoring-only: the values persist into the asset (the live motor effect is observed in PIE/sim).'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for when this is the right tool: asset-authoring edits that persist, as opposed to live motor effects observed in PIE/sim. The boundary with the limits tool ('behavior beyond limits') is implied rather than spelled out, and no alternative is named explicitly, so it falls just short of a 5.

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