Skip to main content
Glama

Publish an HTML file

publish_file

Upload an HTML file from your computer to a StelaSpace space and get a permanent link to share. Publish new versions by reusing the same slug.

Instructions

Upload a local .html/.htm file to a StelaSpace space and get back a permanent, shareable URL. The file is read from disk by path, so large files work fine. Reusing a slug publishes a new version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the .html/.htm file on this machine (absolute, or relative to the MCP server's working directory).
spaceSlugYesSlug of the target space — call list_spaces to find valid slugs.
titleNoDocument title. Defaults to the HTML <title> tag.
slugNoDocument slug. Reuse an existing slug to publish a new version; omit to auto-generate.
tagsNoOptional tags for organization and search.
visibilityNopublic = anyone with the link; private = team members only. Defaults to private.
Behavior3/5

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

With no annotations provided, the description must fully disclose behavior. It reveals that files are read from disk by path and are suitable for large files, and that slug reuse creates versions. However, it omits error conditions, return format details beyond 'URL', and any authentication or permission requirements. This is adequate but not comprehensive.

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?

Three short, front-loaded sentences: first states overall purpose and output, second addresses a practical concern (file path and large files), third covers versioning behavior. No extraneous information; every sentence serves a purpose.

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 tool with 6 parameters and no output schema, the description covers the core workflow (upload, get URL) and key parameter behaviors (defaults, versioning). It lacks details on what exactly the tool returns (e.g., JSON with URL and metadata) and any error handling, but is otherwise sufficient for basic usage.

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

Parameters4/5

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

Schema coverage is 100% with good descriptions, but the tool description adds value by explaining how to obtain spaceSlug ('call list_spaces'), the versioning implication of slug, defaults for title and visibility, and the purpose of tags. This enriches parameter understanding beyond the individual schema entries.

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 clearly states the action ('Upload a local .html/.htm file'), the resource ('to a StelaSpace space'), and the output ('get back a permanent, shareable URL'). It is distinct from sibling tools (list_documents, list_spaces) which are purely read-only or listing operations.

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?

The description provides a prerequisite ('call list_spaces to find valid slugs'), mentions versioning behavior ('Reusing a slug publishes a new version'), and notes file size handling ('large files work fine'). However, it does not explicitly state when not to use this tool or discuss alternatives beyond listing spaces.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/StelaSpace/stelaspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server