Skip to main content
Glama

frame_objects_with_camera

Position the camera to make selected objects fill the frame, using render aspect and FOV to set distance and clipping. Use it before rendering to control the viewing angle.

Instructions

Position a camera so the given objects exactly fill the frame.

Distance is computed from the render aspect ratio and the camera's field of view, and the clipping range is widened to suit. Use this before render_preview when you want to control the angle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cameraNoCamera to move; omit for the active one
createNoCreate an AI_PreviewCam if the scene has no camera
marginNoPadding factor; 1.0 fills the frame exactly
objectsNoObjects to fit in frame; omit for the selection, else all geometry
directionNoNamed viewing angle. 'three_quarter' reads best for inspecting a prop; 'front'/'left'/'top' are for checking proportions.
set_activeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden. It states non-obvious behavior: distance is computed from render aspect ratio and FOV, and the clipping range is widened to suit. It could be more explicit that the camera transform is overwritten or that a camera may be created, but the core mutation and side effects are disclosed.

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?

Three sentences, all useful and front-loaded. The first sentence states the purpose, the second explains the computed behavior, and the third gives usage context. No filler or repetition.

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 tool with six optional parameters and no output schema, the description is complete enough: it explains the operation, the computation, the side effect on clipping, and the intended workflow position. It does not discuss error cases or return values, but those are not essential for this camera-framing tool.

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 83%, so the baseline is 3. The description adds a general angle-control rationale but does not meaningfully elaborate parameter semantics beyond what the schema already provides. The undocumented set_active parameter is not compensated for, though its name makes it reasonably self-explanatory.

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 opens with a specific verb and resource: 'Position a camera so the given objects exactly fill the frame.' This clearly distinguishes the tool from generic camera movement or look-at behaviors, and the mention of using it before render_preview situates it in a concrete workflow.

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 gives clear context for when to use it: 'Use this before render_preview when you want to control the angle.' It does not explicitly name exclusions or alternatives such as look_at, but the sequencing and framing intent are clear enough for an agent to select it appropriately.

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