Skip to main content
Glama

save_hosted_world_site

Save one versioned hosted site draft. Read get_hosted_world first and pass expectedVersionId (null for its first site). Supply the complete site files. Concurrent edits fail without overwriting. Use the hosted-world skill and SDK for attached experiences. This does not publish, start paid generation, change attachments or set prices. Optional metadata changes only title, URL and description.

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>",
      "worldId": "<worldId>",
      "expectedVersionId": "<expectedVersionId>",
      "site": "<site>"
    },
    "name": "save_hosted_world_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
worldIdYes
metadataNo
workspaceIdYes
expectedVersionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / metadata / additionalProperties
      Removed value: -false
    • removedInput schema / properties / site / additionalProperties
      Removed value: -false
    • removedInput schema / properties / site / properties / assets / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / site / properties / assets / items / properties / variants / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / site / properties / files / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / worldId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / worldId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / worldId / type
      Added value: +"string"
  2. Changed1 schema field changed
    • addedInput schema / properties / site / properties / assets
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "assetId": {
      +        "pattern": "^[a-f0-9]{64}$",
      +        "type": "string"
      +      },
      +      "mimeType": {
      +        "maxLength": 160,
      +        "type": "string"
      +      },
      +      "path": {
      +        "maxLength": 180,
      +        "type": "string"
      +      },
      +      "sizeBytes": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 52428800,
      +        "type": "integer"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "maxLength": 8000,
      +        "type": "string"
      +      },
      +      "variants": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "height": {
      +              "maximum": 16384,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "mimeType": {
      +              "maxLength": 160,
      +              "type": "string"
      +            },
      +            "sizeBytes": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 52428800,
      +              "type": "integer"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "maxLength": 8000,
      +              "type": "string"
      +            },
      +            "width": {
      +              "maximum": 16384,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "url",
      +            "width",
      +            "height",
      +            "mimeType",
      +            "sizeBytes"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 8,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "url",
      +      "mimeType",
      +      "sizeBytes"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 64,
      +  "type": "array"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the optimistic-concurrency contract ('concurrent edits fail without overwriting') and boundary conditions (no publishing, no paid generation, no attachment or price changes, metadata limited to title/URL/description). It stops short of saying whether the site files replace or merge with the existing draft and what error/latency behavior accompanies a version conflict, so it is strong rather than exhaustive.

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?

Six short sentences, front-loaded with the action and the version precondition, with no filler. The terse negative list is density rather than bloat, though a few clauses are compressed to the point of requiring rereads.

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 mutation tool with a nested schema, no output schema, and no enums, the description covers the sequencing, concurrency safety, and scope boundaries an agent needs to call it correctly. It omits what a successful call returns (presumably a new version id) and how assets relate to the files array, which are the notable remaining gaps.

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 five parameters including nested site/assets structures, so the schema provides names and constraints but no meaning. The description rescues the hardest one (expectedVersionId including the null case), the metadata field scope, and the requirement to supply complete files, but leaves workspaceId, worldId, category, entryPoint, assets, and variants unexplained.

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?

The description opens with a specific verb and resource ('Save one versioned hosted site draft') and the 'versioned draft' framing distinguishes it from sibling operations that validate or inspect a site. An agent can tell this writes a draft rather than publishing or generating content.

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 states an explicit prerequisite ('Read get_hosted_world first'), gives the exact expectedVersionId convention (null for the first site), routes attached-experience work to the hosted-world skill and SDK, and lists what the call does not do (publish, paid generation, attachments, prices). That is genuine when/when-not/alternative guidance.

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.