Skip to main content
Glama

Create entity

create_entity

Creates an entity in a game: a THING that exists in the game and makes noise (unit, enemy, building, object, block, character, button or screen). NEVER an action or moment: 'Undo', 'Snap', 'Level complete', 'Jump' are EVENTS of something (of Interface, of Blocks, of the Character), not entities. Inside a folder, it inherits the folder's events. On the site it is a folder with its image and name, holding its own sounds, so to the user say 'the Player's sounds' or 'the Player folder', not 'entity'.

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": {
      "game_id": "<game_id>",
      "name": "<name>"
    },
    "name": "create_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe thing's name shown on the site, in the game's language (e.g. Player, Slime, Wooden door). Up to 80 characters.
game_idYesThe game id, from list_games or create_game.
folder_idNoFolder (see list_folders). Without it, the entity goes into Sound effects.
descriptionNoHow it sounds; goes into the prompts.
external_idNoThe engine scene of this thing (e.g. res://player/player.tscn). With it, the plugin sync merges into this entity instead of creating another: create entities before the sync without fear of duplicates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / game_id / description
      Added value: +"The game id, from list_games or create_game."
    • addedInput schema / properties / name / description
      Added value: +"The thing's name shown on the site, in the game's language (e.g. Player, Slime, Wooden door). Up to 80 characters."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this is a non-destructive write (readOnlyHint=false, destructiveHint=false), so mutability is covered. The description adds real behavior beyond that: entities inherit the folder's events, and on the site each entity appears as a folder holding its own sounds. It does not say what is returned (e.g. the new entity id) or how duplicates are handled beyond the schema's external_id note.

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?

Front-loads the verb and resource, then the exclusion rule, then consequences, so the most decision-relevant content comes first. The closing advice about user-facing phrasing ('the Player's sounds') is useful but slightly incidental to tool selection.

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 create tool with no output schema, the definition covers the conceptual boundary (entity vs. event), the folder/placement behavior, the sync/merge implication, and even user-facing vocabulary. An agent has enough to call it correctly and describe the result to a user.

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 all five parameters are already documented, which sets the baseline at 3. The description only lightly embellishes parameter meaning — folder inheritance for folder_id and site-facing naming for name — adding marginal value over the schema text.

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?

Opens with a specific verb and resource ('Creates an entity in a game') and then defines the term concretely with enumerated examples (unit, enemy, building, object, block, character). The explicit contrast against a sibling concept (entities vs. events) lets an agent tell create_entity apart from create_event without opening either schema.

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?

Gives a strong when-not rule with concrete counter-examples ('Undo', 'Snap', 'Level complete', 'Jump' are EVENTS), plus guidance for the folder case. It stops short of naming the alternative tool (create_event) explicitly, so the routing is inferred rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources