Skip to main content
Glama

save_experience_game

Build ONLY a game whose current proposal was approved by the user. Read get_experience_game, follow its approved proposal, and pass proposalRevision and expectedVersionId. Supply organized files (index.html, styles.css, scripts/*.js, optional JSON/docs) with local stylesheet/classic script references, or one complete HTML source. Use ordered classic scripts and shared namespaces, no imports/requires. The server bundles code to a single playable HTML under 256 KB and stores the editable package separately (up to 64 files / 1 MB). Media belongs in existing asset:// IDs, canvas or inline art. Include responsive start, pause, help, score/progress, win/loss and restart UI plus keyboard/touch controls. External URLs, network APIs, workers, embeds, eval, and parent access are blocked. Match the approved worldId. Returns the Games tab playtest link. Never paste implementation code in the chat.

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": {
      "workspaceId": "<workspaceId>",
      "gameId": "<gameId>",
      "expectedVersionId": "<expectedVersionId>",
      "proposalRevision": "<proposalRevision>",
      "title": "<title>",
      "description": "<description>"
    },
    "name": "save_experience_game"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
titleYes
gameIdYes
promptNo
sourceNo
worldIdNo
entryPointNo
descriptionYes
workspaceIdYes
proposalRevisionYes
expectedVersionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / files / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / gameId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / gameId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / gameId / type
      Added value: +"string"
    • addedInput schema / properties / proposalRevision / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / worldId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/workspaceId"
      -  },
      -  {
      -    "const": "",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[A-Za-z0-9_-]{1,128}$",
      +    "type": "string"
      +  },
      +  {
      +    "const": "",
      +    "type": "string"
      +  }
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, not open-world, not idempotent, not destructive); the description adds substantial context beyond that: the server bundles to a single playable HTML under 256 KB, stores an editable package separately (64 files / 1 MB), blocks external URLs, network APIs, workers, embeds, eval and parent access, and returns the Games tab playtest link. These are exactly the side effects and constraints an agent needs before invoking.

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?

Dense but front-loaded — the gating condition and prerequisite read are the first clause, and subsequent sentences each add a distinct constraint (file layout, bundling limits, blocked APIs, return value). It is a wall of run-on prose without grouping or bullets, which slightly hurts scanability, but little of the content is 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 complex, 11-parameter write tool with no output schema and zero schema description coverage, the description covers the critical build rules, size limits, sandbox restrictions and the return value. The remaining gap is parameter-level semantics for identity fields (workspaceId, gameId, title, description, entryPoint), which an agent would have to guess.

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 description coverage is 0% and there are 11 parameters, so the description must carry full meaning. It does explain files/source structure, proposalRevision and expectedVersionId (required hand-off values), and worldId matching, but leaves workspaceId, gameId, title, description, prompt and entryPoint entirely undefined, so roughly half the parameters remain opaque.

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 action and resource — build/save a playable game package from an approved proposal — and explicitly distinguishes itself from the proposal step by requiring 'current proposal was approved by the user' and directing the agent to get_experience_game first. An agent can tell it apart from save_experience_game_proposal 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?

Gives an explicit gating precondition (proposal approved), a named prerequisite tool to call first ('Read get_experience_game, follow its approved proposal'), and required hand-off values (proposalRevision, expectedVersionId). It also states a behavioral rule ('Never paste implementation code in the chat'), so both when-to-use and how-to-behave are covered.

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.