Skip to main content
Glama

Create a new actor in a scene

create_actor

Add a new actor to a GB Studio scene, respecting hardware limits: up to 20 actors in normal scenes, 10 in small scenes. Specify position, name, sprite, and collision settings.

Instructions

Append a new actor file under project/scenes//actors/. Enforces GB Studio hardware caps: up to MAX_ACTORS=20 per normal scene, MAX_ACTORS_SMALL=10 when scene width*height <= 160 tiles. Coordinates default to tiles. Pass spriteSheetId of an existing sprite, or leave empty (actor will not render until set).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX position (tiles by default).
yYesY position (tiles by default).
nameYesDisplay name — also seeds the slug.
symbolNoOverride auto-generated GBVM symbol.
sceneIdYesTarget scene id (UUID).
animSpeedNoAnimation speed (0..15). Default 3.
directionNoInitial facing direction. Default down.
moveSpeedNoMovement speed (0..4). Default 1.
paletteIdNoPalette id for CGB. Empty uses default.
spriteSheetIdNoSprite resource id. Empty allowed; actor won't render until set.
collisionGroupNoCollision group. Default empty (no group).
coordinateTypeNoCoordinate units. Default tiles.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses hardware limits, default coordinate type, and that actor won't render without spriteSheetId. Missing error handling details but adequate.

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?

Two focused sentences, front-loaded with action and location, no wasted words.

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?

Given 12 parameters, no output schema, and hardware constraints, description covers key behaviors. Could mention return value but not critical.

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?

Schema covers all parameters, but description adds context: default coordinate type, hardware caps relevance, and empty spriteSheetId behavior, enhancing understanding beyond schema.

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 clearly states the action: creating a new actor in a scene, with specific file location and hardware caps. It distinguishes from siblings like create_trigger by focusing on actors.

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

Usage Guidelines3/5

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

Implies use for adding actors to scenes, mentions hardware caps and optional sprite, but does not explicitly state when to use this tool vs alternatives or prerequisites (e.g., scene must exist).

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/gbs-toolkit/mcp-server'

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