Skip to main content
Glama

Полностью обновить сайт

htmlkin_update

Обновляет ранее опубликованный сайт по его идентификатору: заменяет контент (html_content или files — не более одного) и/или меняет PIN и видимость. Обновление всегда полностью заменяет сайт: html_content превращает многофайловый сайт в single-file. Адрес сайта не меняется. Можно передать только pin и/или visibility, чтобы изменить лишь защиту или видимость.

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": {
      "page_id": "<page_id>"
    },
    "name": "htmlkin_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNo4 цифры — установить/сменить PIN; пустая строка — снять PIN.
filesNoНовый полный набор текстовых файлов сайта; до 20 файлов / 2 МБ.
page_idYesИдентификатор сайта (поле id из ответа htmlkin_publish).
commentsNoКто комментирует выделенный текст на сайте: off — никто; everyone — любой вошедший на htmlkin; team — владелец и команда, на тарифе «Бизнес».
visibilityNoКому открыт сайт: public — всем, сайт индексируют поисковики; link — всем, у кого есть ссылка, без индексации; team — участникам команды аккаунта после входа, на тарифе «Бизнес»; private — только владельцу аккаунта после входа.
html_contentNoНовый HTML-документ. Опционально; не вместе с files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / comments
      Added value: +{
      +  "description": "Кто комментирует выделенный текст на сайте: off — никто; everyone — любой вошедший на htmlkin; team — владелец и команда, на тарифе «Бизнес».",
      +  "enum": [
      +    "off",
      +    "everyone",
      +    "team"
      +  ],
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / html_content / description
      Previous value: -"Новый HTML-документ. Опционально; не вместе с pdf_base64."New value: +"Новый HTML-документ. Опционально; не вместе с files."
    • removedInput schema / properties / pdf_base64
      Removed value: -{
      -  "description": "Новый PDF-документ в base64. Опционально; не вместе с html_content.",
      -  "type": "string"
      -}
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "Кому открыт сайт: public — всем, сайт индексируют поисковики; link — всем, у кого есть ссылка, без индексации; team — участникам команды аккаунта после входа, на тарифе «Бизнес»; private — только владельцу аккаунта после входа.",
      +  "enum": [
      +    "public",
      +    "link",
      +    "team",
      +    "private"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that every update is a total replacement, that html_content downgrades a multi-file site to a single file, and that the site URL is preserved. It does not cover failure modes (nonexistent page_id, PIN format rejection, size limits beyond the schema) or what the response contains, which keeps it short of a 5.

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?

Three sentences, front-loaded with the core action and immediately followed by the destructive full-replacement caveat, then the partial-update shortcut. There is mild redundancy between 'заменяет контент … и/или меняет PIN и видимость' and the final sentence, but nothing wasteful enough to penalize heavily.

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 six-parameter mutation tool with no annotations and no output schema, the description covers the critical risk (total replacement), the parameter interaction rules, and the invariants (URL unchanged). It stops short of documenting the return value or error conditions, which an agent may want before invoking a destructive call.

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%, so the baseline is 3, but the description adds real semantics beyond the schema: the mutual exclusivity of html_content and files, the single-file conversion side effect of html_content, and the fact that pin/visibility alone constitute a valid partial update. These are behavioral consequences of parameter choice that the schema does not encode.

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 states a precise verb and resource (update a previously published site by its identifier) and enumerates exactly what can change: content via html_content or files, plus PIN and visibility. The phrase 'ранее опубликованный сайт' together with the page_id reference implicitly separates it from htmlkin_publish, which creates sites, so an agent can tell the two apart without reading either 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 a clear conditional recipe: pass only pin and/or visibility to change protection or visibility without touching content, and html_content or files (not both) to replace content. What it lacks is an explicit exclusion against siblings such as htmlkin_delete (use that to remove rather than replace) and any statement about permissions or required account state.

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