Skip to main content
Glama

viewport_set_camera

Configure the viewport camera's position, target, and lens settings to frame 3D scenes for inspection or screenshots.

Instructions

Set the viewport camera position, target, and lens properties.

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": {
      "location": "<location>",
      "target": "<target>"
    },
    "name": "viewport_set_camera"
  }
}

Input Schema

NameRequiredDescriptionDefault
lensNo
targetYes
locationYes
camera_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies mutation by saying 'Set', but does not explain whether this affects only the active viewport, whether it creates or modifies a named camera, whether the change is persistent, or what side effects occur.

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 a single front-loaded sentence with no filler. It is appropriately concise, though its brevity leaves important behavior and parameter details unaddressed.

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

Completeness2/5

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

The tool mutates viewport camera state and has four parameters with no annotation coverage and no schema descriptions. Although an output schema exists and return values need not be explained, the description is still too sparse about mutation behavior, camera_name, and parameter formats.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain the four parameters. It maps location, target, and lens to 'position, target, and lens properties', but it never explains the array formats, coordinate space, lens units/default, or the role of camera_name.

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 states a specific verb and resource: set the viewport camera. It also names the updatable properties: position, target, and lens. It is clear enough to distinguish from screenshot and mesh/object siblings, though it does not explicitly call out any alternative.

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?

The description gives no when-to-use context, no prerequisites, and no exclusions. It implies this tool is for configuring the viewport camera but does not guide the agent on when to choose it over any other tool.

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