Skip to main content
Glama

set_world_commerce

Register or replace paid Genesis offers after saving the world. Read get_world_commerce and get_world_experience first. Pass both current revision fields. Each offer links to a declared actionId with fixed payload fields and optional user-editable inputFields. Use whole gem prices explicitly requested by the creator. availability:live grants signed-in viewers access during an active continuous stream independently of battle input windows. fulfillment:video reserves payment through asynchronous preparation until actual scene playback completes. Controller handlers grant benefits only on purchase.completed using event.data.payload. This changes live host pricing and does not purchase or start generation.

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>",
      "liveWorldId": "<liveWorldId>",
      "expectedVersionId": "<expectedVersionId>",
      "expectedRevision": "<expectedRevision>",
      "offers": "<offers>"
    },
    "name": "set_world_commerce"
  }
}

Input Schema

NameRequiredDescriptionDefault
offersYes
liveWorldIdYes
workspaceIdYes
expectedRevisionYes
expectedVersionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / expectedVersionId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / expectedVersionId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / expectedVersionId / type
      Added value: +"string"
    • removedInput schema / properties / liveWorldId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / liveWorldId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / liveWorldId / type
      Added value: +"string"
    • removedInput schema / properties / offers / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / offers / items / properties / actionId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / offers / items / properties / actionId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / offers / items / properties / actionId / type
      Added value: +"string"
    • removedInput schema / properties / offers / items / properties / id / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / offers / items / properties / id / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / offers / items / properties / id / type
      Added value: +"string"
    • addedInput schema / properties / offers / items / properties / payload / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / offers / items / properties / availability
      Added value: +{
      +  "const": "live",
      +  "type": "string"
      +}
    • addedInput schema / properties / offers / items / properties / fulfillment
      Added value: +{
      +  "const": "video",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only give the generic write profile (readOnly=false, destructive=false, idempotent=false); the description adds the semantics that matter: replace-style registration, optimistic concurrency via both revision fields, and that changes affect live host pricing. It also documents the fulfillment:video async reserve-until-playback behavior and the controller-handler contract on purchase.completed, which nothing in the structured data conveys.

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-loaded with the action and prerequisites, then semantics, then scope caveats — a sensible order with no filler sentences. It is dense with domain jargon (actionId, controller handlers, purchase.completed) that an unfamiliar agent must parse, which costs some readability but not correctness.

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 five-required-parameter mutation with no output schema, the description covers prerequisites, concurrency, payload structure, and the live-stream availability/fulfillment mechanics. The notable gap is that it never says what a successful call returns or how failures surface (e.g. revision mismatch), which an agent would want before retrying.

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 0%, so the description has to carry the load and largely does: it explains that offers link to a declared actionId with fixed payload fields plus optional user-editable inputFields, that gems are whole-number prices, and that the two revision fields are current-state tokens. It leaves workspaceId, liveWorldId, and the per-offer id uncharacterized, so the coverage is strong but not complete.

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?

"Register or replace paid Genesis offers after saving the world" gives a specific verb pair, a specific resource (paid offers), and a lifecycle constraint (after saving). The next sentence names the read-side siblings, so the agent can separate this write tool from get_world_commerce without inspecting schemas.

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?

It explicitly routes the agent to read get_world_commerce and get_world_experience first and mandates passing both current revision fields, which is a concrete precondition. It also draws a negative boundary — it does not purchase or start generation — so the agent knows what this call will not do.

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.