Skip to main content
Glama

Publish a page

publish_page

Publish one HTML page on ShareHTML and get its link. Send the whole page as one file: CSS and JavaScript inside it, images as data URIs or from common CDNs, up to 5 MB on the free plan. It waits up to about 20 seconds and returns the page's status: live (give the owner the url), held (tell the owner the reasons exactly as given) or reviewing (not live yet: check again later with get_page). Set listed to true only when the owner asks for the page to be found in search engines; that is part of Pro. Set name only when the owner asks for an address of the page's own, such as maya-art.shrz.in (Pro); a name that cannot be had is answered only "Name not available", so ask the owner for another. Rules, from ShareHTML's terms and acceptable use policy (https://sharehtml.org/acceptable-use): publish nothing illegal; no phishing, and no page that pretends to be another person, company, bank, app or government, or asks for passwords, card numbers or one-time codes for a service the owner does not run; no sexual content of any kind; no malware, scams or pages that get visitors to run commands; no page that loads its content or code from elsewhere at runtime to hide what it shows or does. A page can be held before it goes live; the reply gives the reason. Tell the owner the reason exactly as given and stop; never change a held page to get it through.

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_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe whole page as one HTML file, starting with <!doctype html>, its CSS and JavaScript inside it.
nameNoA name of the page’s own for its address, such as maya-art for maya-art.shrz.in (Pro only): 5 to 30 letters, numbers or hyphens. null takes it off. Leave it out unless the owner asks for one.
titleNoA title for a page without a <title> of its own; a page’s own title is kept.
accessNoWho can open it: anyone (with the link), password (with the link and the password), invite (only the emails in invite_emails, each with a code ShareHTML emails them when they open it) or owner (only the owner, signed in). Locks are Pro only; leave it out unless the owner asks.
listedNoList the page in search engines (Pro only). Leave it out unless the owner asks.
passwordNoThe password visitors type, 6 to 64 characters, for access password. ShareHTML keeps only its hash and never sends it back.
expires_atNoWhen the link stops working, an ISO 8601 date and time with its zone such as 2026-12-31T23:59:00Z, or null for never (Pro only).
invite_emailsNoFor access invite: the emails to add to the page’s list and to remove from it. Nobody is emailed when they are added: the owner gives them the link, and each opens it with a code they ask for there. For a class or children, suggest a password or a plain link instead.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
nameYes
titleYes
viewsYes
accessYes
listedYes
noticeNo
statusYes
invitedNo
reasonsNo
versionYes
expiresAtYes
updatedAtYes
versionsKeptNo
viewsThisMonthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare a non-read-only, open-world, non-destructive write; the description adds far more: a ~20 second wait, three distinct outcome states (live/held/reviewing) with different agent actions, the 5 MB free-plan ceiling, what inline assets are allowed, Pro gating on listed/name/access locks, and the prohibition on reworking a held page. This is substantive context the annotations cannot convey.

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?

Front-loaded with the action and return states, then parameter gating, then policy. It is dense rather than padded, though the held-page behavior is stated twice (once in the status sentence, again at the end) and the policy paragraph is long, costing a point.

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?

With 8 parameters, a nested invite_emails object, and an output schema, the description covers everything an agent needs: what to send, size/asset constraints, wait time, all outcome branches with next actions, plan gating, and refusal rules. Nothing material 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?

Schema coverage is 100%, so the baseline would be 3, but the description adds semantics the schema lacks: name is a Pro address like maya-art.shrz.in and failure returns only 'Name not available', listed is a Pro search-engine opt-in tied to owner intent, and access locks are Pro. That is real added meaning, not restatement.

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 (publish one HTML page on ShareHTML) plus the immediate outcome (get its link), and explicitly routes the 'not live yet' case to the sibling get_page. An agent can distinguish this from update_page/get_page without opening other schemas.

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?

Gives explicit conditionals: set listed only when the owner asks and only on Pro, set name only when the owner asks for a dedicated address, ask the owner for another name when 'Name not available' comes back, and on a held page tell the owner the reason and stop rather than retrying. Alternatives and exclusions are named rather than inferred.

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