Skip to main content
Glama

artifacts_refresh

Publish a new version of an artifact at the SAME URL, without sending HTML. Two kinds of artifact: one built from saved analytics cards (artifacts.create/update with analytics_card_ids) is rebuilt by passing artifact_id alone — its cards' queries re-run and the charts are redrawn; one created/updated with a template (HTML with {{placeholder}} tokens) takes data, a flat map of placeholder -> value (e.g. {"leads": "3 200", "date": "15 июля 2026"}), and every placeholder must have a value. Ideal for a scheduled refresh of live numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoFlat map of {{placeholder}} name -> value. Every placeholder in the template must be present. Values are HTML-escaped.
labelNoOptional version label (e.g. 'daily refresh').
artifact_idYesThe data-driven artifact to refresh.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "artifact_id",
      -  "data"
      -]New value: +[
      +  "artifact_id"
      +]
  2. 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"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare the write/non-destructive/non-idempotent profile, and the description adds genuinely useful context beyond them: the version is published at the SAME URL, no HTML needs to be sent, card queries are re-run and charts redrawn, and every placeholder must be supplied. It stops short of describing what the response returns or version history behavior, but the bar is lower given the annotations.

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?

It front-loads the core action and the SAME-URL constraint, then enumerates the two operating modes. Dense but every clause carries information; a slight tightening of the parenthetical examples is possible but nothing is wasted.

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 4-parameter write tool with a nested `data` object and no output schema, the definition covers both execution modes, the required-data contract, and the natural use case (scheduled refresh). The only omission is what the tool returns / how the new version is identified.

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 already 100%, so the baseline is 3, but the description goes further by concretely explaining the `data` parameter's contract (flat placeholder->value map, every placeholder required) and giving a worked example including non-ASCII content. artifact_id and label semantics are left to the schema.

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+resource — publishing a new version of an artifact at the SAME URL — and then splits the resource into its two concrete subtypes (analytics-card-driven vs. template-driven), naming the related artifacts_create/update operations. An agent can immediately tell this apart from artifacts_get, artifacts_list, or artifacts_update.

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 explicit conditional guidance: pass artifact_id alone for card-backed artifacts, pass data for template artifacts, and 'Ideal for a scheduled refresh of live numbers.' This routes the agent well, though it never explicitly states when to prefer artifacts_update over refresh or lists exclusions.

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.