Skip to main content
Glama

sim_publish_app

Destructive

Publish the generated application for a model you own — the single-file HTML a generator produced from the model's view prompt. Served at /app/ in a sandboxed opaque origin (no cookies, no session; only the CORS-open public API is reachable). START FROM THE RUNTIME, not from scratch: /lib/app-template.html is a working console that imports /lib/sim-console.js and composes , , , , and — the same components the generic console at /whatif/ runs. Composing them is how an app inherits role derivation, the fungible-set collapse, the influence ranking that never filters, the contention ledger and the verbatim caveats, none of which the checks below can verify you reimplemented correctly. Root-relative /lib/ imports are allowed; off-origin ones are refused. Checks refuse an app that is empty, oversized, never references its model id, or loads external scripts/styles; behavioral correctness (does the app actually do what the view says) is on the generator and any browser gate you run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesmodel id the app presents
htmlYesthe complete self-contained HTML document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key behavioral constraints: the app runs in a sandboxed opaque origin with no cookies/session, only the CORS-open public API is reachable, root-relative imports are allowed while off-origin ones are refused, and the checks reject empty, oversized, model-id-less, or externally-dependent apps. It also clarifies that behavioral correctness is not verified by this tool. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence adds operational value: purpose, serving context, runtime template, component composition, import rules, and validation checks. It is front-loaded with the core purpose and then builds out practical constraints without filler.

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

Completeness5/5

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

For a publish operation with no output schema, the description covers the full call context: what is published, where it is served, how to construct valid HTML, what checks will reject it, and what the tool does not verify. Nothing critical for an agent to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already covers both parameters at 100%, the description adds significant meaning: 'id' must be a model you own, and 'html' must be the complete self-contained document produced from the generator, with explicit import rules and composition guidance. This goes well beyond the schema's short field descriptions.

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 states a specific verb ('Publish'), a specific resource (the generated single-file HTML app for a model you own), and the serving location (/app/<id>). It clearly differentiates this from generic publishing or model-management tools by tying it to the generator output and the model's view prompt.

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?

It gives strong guidance on how to use it: start from /lib/app-template.html, compose the listed components, keep imports root-relative, and satisfy the stated checks. It does not explicitly name alternatives or when not to use this tool, but the context is clear enough for an agent to know when this is the right publish path.

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.

Resources