Skip to main content
Glama

New folder

create_folder

Creates a folder (free name) in a game, to GROUP several entities (Enemies, Items) or, in Ambience and Interface, sounds by place or screen. Never a folder for a single thing like the player: that is an entity (create_entity). It goes at the root of a tab (section) or inside another folder (parent_id), and can already take entities (entity_ids), which then inherit its events. Every tab takes subfolders: ambience by place (Forest, Cave), interface by screen (Menus, HUD), effects by kind of thing (Units, Weapons). A small game keeps ambience and interface events straight in the tab, without subfolders. Spends no credits; returns the folder id and its site page (url). To see the existing folders first, use list_folders; to move entities later, move_entities.

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_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe folder name shown on the site, in the game's language (e.g. Enemies, Forest, Menus). Up to 60 characters.
game_idYesThe game id, from list_games or create_game.
sectionNoThe tab the folder goes in, at its root: ambience, effects (Sound effects), interface or music. Ignored with parent_id. Without both: effects.
parent_idNoParent folder (a subfolder of any tab). Without it, the folder goes at the root of section.
entity_idsNoOptional: entities of this game (ids from get_game) to move into the new folder. Up to 500.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / entity_ids / description
      Added value: +"Optional: entities of this game (ids from get_game) to move into the new folder. Up to 500."
    • 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 folder name shown on the site, in the game's language (e.g. Enemies, Forest, Menus). Up to 60 characters."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare non-read-only and non-destructive; the description adds real behavior: folders cost no credits, entities placed at creation inherit the folder's events, and the call returns the folder id plus its site page URL. It does not cover permissions or failure modes, but what it adds goes well past the annotations.

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 core rule (folder = group, entity = single thing) is front-loaded and the call facts come last. The parenthetical example lists for ambience/interface/effects and the small-game remark repeat the same idea and could be trimmed without losing information.

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 five-parameter creation tool with no output schema, the description covers what is created, where it lands, side effects on entities, cost, and return values (id and url). An agent has everything needed to call it correctly and interpret the result.

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 coverage is 100%, so the baseline is 3; the description still adds meaning by framing section as the tab root and parent_id as nesting inside another folder, and by explaining that entity_ids entities inherit events. It stops short of clarifying format details already handled by the 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?

Opens with a specific verb and resource ("Creates a folder") and immediately scopes the resource: it groups several entities or sounds, never a single thing. It explicitly names the sibling it is not ("that is an entity (create_entity)"), so an agent can separate the two 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 Guidelines5/5

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

Provides explicit when/when-not rules: folders for grouping many things, never a single entity; subfolders by place/screen/kind for larger games, no subfolders for small ones. It also routes to alternatives by name — list_folders to inspect first, move_entities to reorganize later.

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