Skip to main content
Glama

ohmyho.st

Create or update temporary live preview (no login required)

preview_draft

Creates or updates a temporary 24-hour live preview on ohmyho.st without signing in (including a small unclaimed Postgres database up to 5 tables and 5 MiB when ohmyhost.yaml declares database migrations; exceeding that returns guest_database_limit_exceeded with claim_url to sign up and unlock full storage). Pass files to build and preview an app immediately (omitting package.json starts from the vite-react template). Returns preview_url, claim_url (to sign in and save permanently — archived to R2 after 24 hours and claimable for 30 days), draft_id and edit_token. Pass draft_id and edit_token on follow-up edits to update the same live preview in place.

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": {
      "files": "<files>"
    },
    "name": "preview_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
filesYes
messageNo
draft_idNo
edit_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover the safety flags (readOnlyHint=false, destructiveHint=false, idempotentHint=false). The description goes far beyond them, disclosing the 24-hour lifetime, the guest database quota (5 tables / 5 MiB), the specific error code guest_database_limit_exceeded with its claim_url, R2 archival after 24 hours, and the 30-day claim window. This is exactly the behavioral context annotations cannot carry.

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?

Purpose and the no-login hook are front-loaded, and nearly every clause carries information. The heavy nested parentheticals (limits and claim_url inside the first sentence) make it dense to parse, but there is no filler or repetition.

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?

With no output schema, the description correctly enumerates the return values (preview_url, claim_url, draft_id, edit_token) and covers the error path and expiration lifecycle. The remaining gap is the unexplained name/message parameters and file-size constraints, which matters for a tool whose main input is a file array.

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%, so the description must supply all parameter meaning. It explains files (omitting package.json triggers the vite-react template), draft_id and edit_token (paired for in-place updates), but never mentions the name or message parameters or the per-file size and item-count limits. Useful but incomplete compensation for a 5-parameter tool.

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 verb and resource ('Creates or updates a temporary 24-hour live preview') plus a distinguishing trait ('without signing in') that separates it from the preview_get/preview_stop siblings. The agent knows immediately what this tool produces and what makes it different.

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?

Gives clear operational guidance: pass files to build and preview immediately, and pass draft_id plus edit_token on follow-up edits to update the same preview in place. It doesn't explicitly contrast with sibling tools like preview_get or preview_stop, but the when-to-use condition for new vs. update is unambiguous.

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.