Skip to main content
Glama

Create a new trigger in a scene

create_trigger

Create a rectangular trigger zone in a game scene that runs scripts on player entry or exit, with a limit of 30 triggers per scene.

Instructions

Append a new trigger file under project/scenes//triggers/. Triggers are rectangular zones that fire script on player enter and leaveScript on exit. Enforces MAX_TRIGGERS=30 per scene. Coordinates and size are in tiles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX position in tiles.
yYesY position in tiles.
nameYesDisplay name — also seeds the slug.
widthNoWidth in tiles. Default 1.
heightNoHeight in tiles. Default 1.
symbolNoOverride auto-generated GBVM symbol.
sceneIdYesTarget scene id (UUID).
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the file path, trigger behavior (script/leaveScript), tile-based coordinates, and the MAX_TRIGGERS=30 limit, but does not mention permissions, error handling, or idempotency.

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 three efficient sentences with front-loaded action. Every sentence adds value: file path, trigger definition, and constraint. No fluff.

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?

Given the moderate complexity (7 params, no output schema), the description covers the core purpose and a key constraint but omits success/error expectations and the fact that script parameters are not part of this 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 coverage is 100%, so baseline is 3. The description adds general context about trigger behavior (script/leaveScript) not present in the schema, but does not elaborate on individual parameters beyond what the schema already provides.

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?

Description states verb 'Append a new trigger file' and clearly identifies the resource (trigger in a scene). It defines what a trigger does (fires script on enter/exit), setting it apart from siblings like create_actor or create_scene.

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?

The description implies usage for adding trigger zones but does not explicitly state when to use this tool vs alternatives such as create_actor. No when-not-to-use guidance is given.

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