Skip to main content
Glama
zyfasos

cloudbase-html-mcp

by zyfasos

publish_html

Destructive

Publish or overwrite an HTML file to a live CloudBase hosting page using a local file path, with optional siteId/siteUrl and SHA-256 verification.

Instructions

将用户指定的 HTML 首次发布或覆盖在线页面,仅写当前对象,不创建快照。更新同一 URL 时先 get_html,复用 siteId 或经当前环境路由校验的 siteUrl,并传查询返回的 sha256。离线页面须显式 online_html 恢复;此操作会公开 HTML。域名映射不变时更新 URL 不变。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteIdNo更新目标的页面 ID,格式 s- 加 32 位小写十六进制;从首次发布结果或 get_html 获取。更新同一 URL 时复用原 ID,并传 expectedSha256;不能与 newPage=true 同传。此参数不是 URL。
newPageNo默认 false。仅在用户明确要求另建页面时设为 true,不能同时传 siteId 或 siteUrl;新页验证成功后替换该路径的本地登记,旧云端页面保留。持续更新同一 URL 时不要设为 true。
siteUrlNo更新目标 HTTPS URL,与 siteId 二选一;只接受 /sites/<合法ID>/ 或 index.html,允许片段,不接受查询参数。必须核实当前环境路由;与 expectedSha256 配套,不能与 newPage=true 同传。
localPathYes用户指定的本地 .html/.htm 文件绝对路径;非空有效 UTF-8,最多 5 MiB。只上传此文件,关联资源不上传。更新时仍须提供新内容所在的路径。
expectedSha256No更新前 get_html 返回的云端当前 sha256,64 位小写十六进制;与 siteId 或 siteUrl 配套必填。不是新文件的哈希,也不要使用本地登记中的旧哈希;冲突后重新查询再判断。首次新建时省略。

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations: it makes HTML public, does not create snapshots, and only writes the current object. It also details the expectedSha256 conflict-check requirement. Annotations already indicate destructiveHint=true, but the description elaborates on specific side effects and constraints, enhancing transparency.

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?

The description is a single dense paragraph that front-loads the core purpose, then covers the update workflow, offline page handling, and public exposure. It is concise without wasted words, though it could benefit from slight separation of concerns. Overall, it is well-structured and efficient.

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 complex tool with 5 parameters, no output schema, and rich annotations, the description covers the key workflow prerequisites (get_html before update), the expectedSha256 requirement, the public exposure side effect, and the distinction from online_html for offline pages. It does not describe error cases or output, but given the absence of an output schema, this is acceptable. The description is sufficiently complete for an agent to call it correctly.

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 the schema already documents each parameter thoroughly. The description adds a workflow hint about reusing siteId or siteUrl for updates and pairing expectedSha256, but these are also reflected in the schema's parameter descriptions. It does not introduce significant new meaning beyond the schema, so a baseline 3 is appropriate.

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 tool's purpose: to publish user-specified HTML for the first time or overwrite an existing online page. It specifies the resource (HTML) and the action (publish/overwrite), and distinguishes itself from siblings by mentioning the update workflow involving get_html and the distinction from offline_html/online_html.

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 explicit guidance on when to use this tool: for first-time publishing or updating the same URL. It also instructs to call get_html first when updating, reuse siteId or validated siteUrl, and pass the returned sha256. It explicitly states that offline pages must be restored with online_html, providing a clear alternative. It could be more explicit about when NOT to use this tool, but the context is strong.

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

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/zyfasos/cloudbase-html-mcp'

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