Skip to main content
Glama
vino3dx
by vino3dx

constraint_look_at

Destructive

Add a LookAt constraint so an object always faces its target. Optionally set an up vector and preserve initial orientation.

Instructions

给对象加 LookAt 约束,使其始终朝向 target。可选 upNode 定上方向,keepOffset 保留初始朝向。 [English] Add a LookAt constraint so the object always faces target. Optional upNode sets the up direction; keepOffset preserves the initial orientation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes朝向目标对象名。 | Look-at target object name.
upNodeNo上方向参考对象名(可选)。 | Up-vector reference object (optional).
objectsNo被约束的对象名列表;省略则用当前选择。 | Constrained objects; omit for the current selection.
keepOffsetNotrue=保留初始相对朝向。 | true=keep the initial relative orientation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation risk is known. The description adds the core runtime behavior (continuous facing of target) and the effect of keepOffset, but it does not disclose what happens to existing constraints, whether the constraint is appended or replaces one, or what error conditions may occur. This is acceptable but not richly transparent.

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 description is short, front-loaded with the action and result, and includes only relevant modifiers. The bilingual duplication adds length but is purposeful for a mixed-language API; there is no filler or unrelated 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 simple constraint tool, the combination of the description and fully-covered schema gives an agent what it needs to invoke the tool: target is required, objects defaults to current selection, and optional modifiers are explained. It lacks edge-case behavior such as invalid target handling or effects on existing constraints, but no output schema exists and the operation is straightforward.

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 the schema fully documents target, upNode, objects, and keepOffset. The description primarily restates upNode and keepOffset in prose without adding new precision such as defaults, coordinate-space details, or interaction rules between parameters. This matches the baseline of 3 for full schema coverage.

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?

The description uses a specific verb ('Add') and resource ('LookAt constraint') and states the effect: 'the object always faces target.' It is immediately distinguishable from sibling constraint tools like constraint_position, constraint_orientation, constraint_path, and constraint_surface because it names the LookAt constraint type explicitly.

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?

The description clearly conveys the intended use case—making an object always face a target—and mentions selectable behaviors (upNode, keepOffset). It does not explicitly contrast with alternative constraints or state when not to use it, but the context is clear enough for an agent to route correctly.

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