Skip to main content
Glama

validate_hosted_world_site

Read-onlyIdempotent

Compile the complete local HTML/CSS/JavaScript site package without saving, publishing or paid effects. Returns build diagnostics. Local modules and HTML pages are supported; HTTPS imports stay browser-only. Use window.HostedWorld to mount or open attached experiences.

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": {
      "site": "<site>"
    },
    "name": "validate_hosted_world_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / 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
  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

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description adds real value beyond that: no persistence, no publishing, no paid effects, and a note that HTTPS imports stay browser-only (so remote imports will not resolve in the build). It omits failure behavior - whether diagnostics are returned on error or an exception is thrown.

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?

Four short sentences, front-loaded with the action and its no-side-effect guarantee, then capabilities, then the runtime hint. Every sentence carries information; the 'paid effects' and 'attached experiences' phrasing is slightly opaque but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a compile/validate tool with no output schema, the description should explain the shape of 'build diagnostics' (error vs warning, per-file locations) and what counts as a validation failure. It also leaves the entryPoint/asset semantics undocumented, so an agent knows the high-level intent but not enough to construct a correct payload or interpret results.

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% on a single deeply nested 'site' object (entryPoint, category, files[], assets with variants), so the description carries the burden. It adds meaningful constraints - content must be local modules/HTML pages, HTTPS imports are unsupported - but says nothing about entryPoint, category, asset IDs, or the size/count limits encoded in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compile the complete local HTML/CSS/JavaScript site package') and immediately scopes it apart from write paths by saying 'without saving, publishing or paid effects'. Siblings such as save_hosted_world_site and inspect_hosted_world_site are not named, so the separation is inferred from the scope phrase rather than explicit routing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Implies usage ('compile ... without saving' suggests a dry-run check before persisting) but never says explicitly when to call this vs save_hosted_world_site or inspect_hosted_world_site. The 'Use window.HostedWorld to mount or open attached experiences' sentence is runtime guidance for the generated site, not tool-selection 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.