Skip to main content
Glama

artifacts_update

Republish an existing artifact with new HTML. The slug and URL stay the SAME; a new version is stored (older versions are retained up to a cap). Use this to refresh a shared dashboard — anyone with the link sees the new snapshot.

A presentation (made with artifacts.create(slides=...)): pass slides to replace all of them, replace_slides to change some by id ({id, html?, notes?, class?}; read the ids with artifacts.get(include_html=true)), and/or deck_css to change the shared CSS. Passing html turns it into an ordinary page.

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": {
      "artifact_id": "<artifact_id>"
    },
    "name": "artifacts_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoThe new full self-contained HTML page (same contract as artifacts.create). Omit when passing analytics_card_ids.
labelNoOptional human name for this version (e.g. 'Q3 final').
slidesNoReplace every slide of a presentation: a list of {html, id?, notes?, class?} (same contract as artifacts.create). Keeps the deck CSS unless deck_css is passed.
deck_cssNoA presentation's new shared CSS (alone, or with slides / replace_slides).
templateNoOptional: attach/replace the data-driven template (HTML with {{placeholder}} tokens) on this existing artifact, so later artifacts.refresh(data={...}) can re-render it server-side. Pass the html rendered from this template. Omit to leave the template unchanged.
artifact_idYesThe artifact to republish.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
replace_slidesNoChange some slides of a presentation by id: [{id, html?, notes?, class?}]. Other slides stay as they are.
analytics_card_idsNoIds of saved analytics dashboard cards to make this artifact's source, keeping its link: the cards are attached and the page is rebuilt from them now; afterwards artifacts.refresh(artifact_id) alone rebuilds it again. Mutually exclusive with html.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / deck_css
      Added value: +{
      +  "description": "A presentation's new shared CSS (alone, or with slides / replace_slides).",
      +  "type": "string"
      +}
    • addedInput schema / properties / replace_slides
      Added value: +{
      +  "description": "Change some slides of a presentation by id: [{id, html?, notes?, class?}]. Other slides stay as they are.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / slides
      Added value: +{
      +  "description": "Replace every slide of a presentation: a list of {html, id?, notes?, class?} (same contract as artifacts.create). Keeps the deck CSS unless deck_css is passed.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / analytics_card_ids
      Added value: +{
      +  "description": "Ids of saved analytics dashboard cards to make this artifact's source, keeping its link: the cards are attached and the page is rebuilt from them now; afterwards artifacts.refresh(artifact_id) alone rebuilds it again. Mutually exclusive with html.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / html / description
      Previous value: -"The new full self-contained HTML page (same contract as artifacts.create)."New value: +"The new full self-contained HTML page (same contract as artifacts.create). Omit when passing analytics_card_ids."
    • changedInput schema / required
      Previous value: -[
      -  "artifact_id",
      -  "html"
      -]New value: +[
      +  "artifact_id"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description's job is added context and it delivers: version retention with a cap, URL stability, and the notable conversion side effect that 'Passing html turns it into an ordinary page', plus deck_css preservation when slides is passed. It says nothing about permissions, concurrent edits, or failure modes, which keeps it from 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?

Front-loaded: the core behavior and the URL/version invariant come first, with the presentation-mode caveat in a second paragraph where it belongs. Dense but each sentence carries information; the mention of 'same contract as artifacts.create' is repeated in a couple of places, a minor redundancy.

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 nine-parameter mutation tool with no output schema, the description covers the main modes (page refresh, full slide replacement, partial slide edits, CSS swap, template attach) and the outcome (new version stored, link unchanged). What remains unstated is the response shape and error behavior, which is acceptable but not exhaustive.

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 per-parameter detail is already handled and the baseline is 3; the description earns the bump by explaining cross-parameter interaction rather than restating fields — which combinations compose (slides/replace_slides/deck_css) and that passing html demotes a presentation to an ordinary page. The html-vs-analytics_card_ids exclusivity is already in the schema, so it adds no extra credit.

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 ('Republish an existing artifact with new HTML') and immediately fixes the invariant behavior that distinguishes it from artifacts_create: 'The slug and URL stay the SAME; a new version is stored'. An agent can separate this from artifacts_create without opening 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?

Gives concrete when-to-use framing ('Use this to refresh a shared dashboard') and routes to siblings for prerequisites ('read the ids with artifacts.get(include_html=true)') and follow-up ('later artifacts.refresh(data={...})'). It never explicitly says when to prefer artifacts_create instead of updating, so it stops short of full when/when-not coverage.

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.