Skip to main content
Glama

inject_lookat_tracking

Create a GDScript that makes a Camera3D track a target node every frame using smooth slerp interpolation, replacing manual setup with automated camera tracking.

Instructions

Tracking & LookAt Injector: Generate a GDScript that procedurally tracks a target node's transform vector every frame, with smooth slerp interpolation.

Args: scene_path: Absolute path to the .tscn scene file. camera_node_path: NodePath of the Camera3D to control. target_node_path: NodePath of the node to track (e.g. 'Player/Body'). script_output_path: Where to write the .gd script. Empty = next to scene file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
camera_node_pathYes
target_node_pathYes
script_output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no readOnlyHint or destructiveHint annotations, the description carries the full burden of revealing side effects. It states that it writes a .gd file, but does not disclose whether it mutates the .tscn scene, attaches the script to the Camera3D, or overwrites existing files. For an 'inject' tool, this is a significant transparency gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in a single sentence, and the parameter list is compact with no filler. Every line contributes either invocation guidance or factual detail about arguments.

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?

An output schema exists, so return-value documentation is not the main gap. However, the description omits prerequisites such as the scene and nodes needing to exist, and side-effect behavior such as whether the scene is saved or existing scripts are overwritten. These are important for a file-writing, scene-injecting tool.

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?

The Args block defines all four parameters with functional meaning absent from the schema, including absolute scene path, NodePath purpose, target example, and the empty-string default for script_output_path. This compensates well for the 0% schema description coverage, though NodePath syntax details are left to convention.

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?

The description names a concrete deliverable (a GDScript) and the mechanism (procedural transform tracking with slerp interpolation), so an agent can understand what the tool produces. It is reasonably distinct from camera and animation siblings, though it does not explicitly contrast with similar tools like generate_bezier_camera_path.

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

Usage Guidelines2/5

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

There is no explicit statement of when to use this tool versus alternatives such as generate_bezier_camera_path, build_camera_switcher_timeline, or generate_track_filter. The only usage context is implicit in the summary, and no exclusions or alternative routing are provided.

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