Skip to main content
Glama

Share HTML as a tracked link

share_html

Publishes an HTML document (a deck, report, dashboard, proposal or one-pager) as a tracked HTMLRadar link, and returns two addresses: the link for the recipient, and a dashboard address for the sender. The recipient sees the document as written and never the tracking. The markup goes in html; there is no file-path argument, so a file on disk is published by passing its markup. By default the recipient is asked for their email address before the document opens. The new HTML is screened for phishing signals as every upload is; the link is live the moment it is returned unless the screen holds the page, and readers of a held page see that it is not available yet. The answer includes the saved rules and whether comments are on. The document id that create_share and replace_document take comes from list_documents or list_shares. Markup is limited to 5 MB. Images that need a login, expiring image addresses and local file paths do not load for readers of the link; an image embedded in the HTML as a data URI travels inside the page. The tool does not check that images load.

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": "share_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe HTML markup to publish, in full. There is no file-path argument: a document on disk reaches this tool only as markup the caller has already read.
slugNoCustom link name, so the URL reads /r/acme-proposal. Paid plans only.
titleNoThe document's name on your dashboard. Readers can see it too: it names the page in the one-time code email they receive.
commentsNoWhether readers can comment. Off by default. Turning comments on needs the email gate and a one-time code; who sees comments follows the link.
passwordNoExtra password gate on top of the email gate.
lock_deckNoBlocks save and print; default true. False allows a recipient to keep a copy.
request_idNoOptional on a first attempt. When a previous call may have been applied, the request_id named by its error makes a retry return the first result instead of doing it twice.
verify_emailNoWhether the reader must prove their email address with a six-digit code before the document opens. Off by default. A verified address identifies the reader rather than an address merely typed into the gate. Needs the email gate, which is on by default; with it off the call is refused.
require_emailNoWhether the recipient must give an email address before the document opens. Defaults to true.
allowed_emailsNoOnly these exact addresses may open the link. A separate list from the domains, and a visitor passes on either. Up to 500 addresses; an allowed domain covers all addresses in that domain. Needs the email gate, which is on by default; with it off the call is refused.
show_watermarkNoShow a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice.
recipient_labelNoWho this link is for. A separate link for each recipient separates their reading reports.
expires_in_hoursNoLink stops working after this many hours.
allowed_email_domainsNoOnly these email domains may open the link, e.g. ["acme.com"]. Up to 500. Needs the email gate, which is on by default; with it off the call is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-destructive, non-idempotent and open-world, leaving the actual behavior unstated. The description adds substantial context beyond that: phishing screening on every upload, the link going live on return unless held, what a reader of a held page sees, the default email gate, a 5 MB markup ceiling, and which image sources fail to load plus the data-URI workaround.

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

Conciseness3/5

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

The purpose is front-loaded and most sentences carry useful constraints, but the paragraph is a dense run-on and one sentence about the document id taken by create_share and replace_document names no parameter of this tool and reads as misplaced guidance. That sentence and the repetitive image caveats dilute an otherwise efficient block.

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 14-parameter mutation with no output schema, the description covers what an agent needs: required markup, the two returned addresses, the saved rules and comment state in the response, the email gate default, the size cap and the hold-on-screen edge case. Only failure/retry specifics and return-value shape are left thin, which is minor given how much is already stated.

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 coverage is 100%, so every one of the 14 parameters is already documented, including defaults and cross-parameter dependencies like comments or verify_email requiring the email gate. The description adds a few useful behavioral notes (email gate on by default, images not being validated) but largely restates what the schema already provides, so the baseline of 3 is correct.

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 (publishes an HTML document as a tracked HTMLRadar link), enumerates the document types it suits, and names what is returned (recipient link plus sender dashboard address). An agent can tell this apart from create_share or replace_document without opening any schema.

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?

Usage is implied rather than stated: the description clarifies that markup, not a file path, is passed, and that the document id used by create_share and replace_document comes from list_documents or list_shares. It never says explicitly when to choose this tool over create_share, or that publishing a disk file requires reading it first as a precondition rather than an alternative tool.

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.