Skip to main content
Glama

publish_html

Publish self-contained HTML at a public iko.run URL only when the user wants it public. Share the URL and store the edit key privately.

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": {
      "html": "<html>"
    },
    "name": "publish_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML source up to 2,000,000 UTF-8 bytes, with CSS and JavaScript inline.
slugNoOptional subdomain. Omit for a generated name.
ttl_secondsNoOptional page expiry. Omit for a page with no fixed expiry.
idempotency_keyNoPrivate random version 4 UUID. Reuse for an exact retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true; the description adds the consequential details the agent actually needs: the result is publicly reachable, an edit key is issued, and that key must be kept private while the URL is shared. That privacy/exposure guidance is not derivable from any structured field and materially changes how an agent should report results.

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?

Two short sentences, zero filler, with the purpose and the primary usage constraint front-loaded ahead of post-call handling advice. Every clause carries distinct information.

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 no output schema, the description compensates by indicating what comes back (a shareable URL plus a private edit key) and what to do with each. It stops short of stating permanence expectations, retry semantics, or that expiry is opt-in, though those are covered by the schema's parameter descriptions.

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 100%, so the schema already documents html, slug, ttl_seconds, and idempotency_key in detail. The description adds no parameter-level meaning beyond 'self-contained', so the baseline 3 applies; the 'store the edit key' clause gestures at output, not input semantics.

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 names a specific verb (publish), a specific resource (self-contained HTML), and the exact destination ('a public iko.run URL'). It even pins down the format requirement via 'self-contained', which matches the schema's inline CSS/JS constraint, so the agent knows precisely what operation is performed without opening the schema.

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 an explicit gating condition: use 'only when the user wants it public', which is a real when-to-use rule rather than a generic restatement. What it lacks is any statement of the negative case's alternative (no mechanism for private/local preview is mentioned), though with no sibling tools available there is nothing to route to.

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