Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

focus_camera

Idempotent

Point the editor camera at a specific world-space coordinate from a chosen distance to frame an exact location before capturing the viewport.

Instructions

Aim the current editor camera to look at a world-space point from a given distance. Useful for framing an exact location before capture_viewport. When NOT to use: to frame specific entities (use focus_viewport) or to move an in-scene camera entity (use modify_entities on its transform).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointYesWorld-space point [x, y, z] to look at
distanceYesDistance from the point at which to place the camera
Behavior4/5

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

The description clarifies that the operation affects the current editor camera rather than scene entities or saved transforms, which adds meaning beyond the annotations. It also implicitly signals that this changes viewport framing in preparation for capture_viewport, while idempotentHint and destructiveHint are consistent.

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 description is two sentences and every sentence earns its place: it states the primary behavior, the intended context, and the key exclusions with alternatives. The main use is front-loaded.

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

Completeness5/5

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

For a simple two-parameter camera-framing tool, the combination of a clear behavioral statement, explicit usage guidance, and alternative routing is complete. The absence of an output schema is not a problem because this operation primarily changes editor state rather than returning structured data.

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 already documents both parameters and their meaning. The description adds no parameter-specific detail beyond the schema, which is acceptable but not value-adding.

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 and resource: 'Aim the current editor camera to look at a world-space point from a given distance.' It clearly distinguishes itself from related tools by naming focus_viewport and modify_entities as the alternatives for different use cases.

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

Usage Guidelines5/5

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

The description gives both a positive use case ('framing an exact location before capture_viewport') and explicit not-to-use cases with direct alternatives ('use focus_viewport' for entities, 'use modify_entities' for in-scene camera entities). This makes selection unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server