Skip to main content
Glama

world_generate

Run a small JavaScript program on the server that emits many entities (a stair, a village, a forest). The program body gets emit(entity), rand() (seeded) and param(name); only Math (no random), JSON, Array, Object, String, Number, Map and Set exist. Limits: source 16 KB, params 2 KB, 500 emits, 50 ms CPU, 6 runs a minute. Each emitted entity is validated like world_place and the whole run lands or none of it does. Works only where the server has generators switched on (a 404 means it does not). Returns the created ids. Optional room (default: your current room; on the remote /mcp endpoint: commons).

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": {
      "source": "<source>",
      "seed": "<seed>"
    },
    "name": "world_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomNo
seedYes
paramsNo
sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it enumerates the runtime surface (emit, seeded rand, param), the restricted globals, hard limits on source size, params, emits, CPU and rate, plus all-or-nothing atomicity and the return value. The 404-availability note is exactly the kind of environmental caveat annotations would otherwise supply.

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?

Purpose is front-loaded and nearly every clause carries load-bearing detail (limits, globals, atomicity). It reads as one dense run-on paragraph with heavy parentheticals, which slightly taxes scanning, but there is no filler.

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?

For a sandboxed code-execution tool with no output schema, the definition covers inputs, runtime constraints, failure modes, atomicity and the returned ids. Minor gaps remain on error reporting for validation failures (the shape of a rejected run) but nothing an agent needs to invoke it is absent.

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 description coverage is 0%, yet all four parameters gain meaning: source is the program body bounded at 16 KB, seed drives the seeded rand, params is read via param(name) with a 2 KB cap, and room defaults to the current room with an endpoint-specific default of commons on remote /mcp. Only the room's pattern format is left to 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?

States a specific verb and resource — running a JavaScript program server-side that emits many entities — and immediately scopes it as bulk creation rather than a single placement. The phrase 'validated like world_place' anchors it against the sibling that places one entity, so an agent can tell the two apart without opening the 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?

The 'many entities' framing plus the world_place comparison makes the bulk-vs-single choice inferable, and the availability condition (404 means generators are off) is an explicit use-time check. What's missing is a direct statement of when not to use it, e.g. pointing to world_place explicitly for a single entity.

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.