Skip to main content
Glama

Publish artifact

artifact_publish

Publish text as a versioned artifact. description (optional) says what it is, one line first: lists show the first line. A workspace item needs why (workspaceId, or a workspace folder named in folder, homes it there) and takes no visibility, teams or publicAsset (make it readable by anyone afterwards with artifact_share_policy); no expected revision is needed. folder files it: a folder id, or a slug (in workspaceId, else in team, else your personal folders). Typed teams lists are authorized before standalone creation. The bounded receipt includes complete immutable content access. rawUrl is the link to the file itself; url is its page. Stored content and its description count toward the owner's storage; a table takes added records as rows (table_append_rows) without resending the rest. A workspace item created with no description returns a hint saying so.

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": {
      "content": "<content>",
      "type": "<type>"
    },
    "name": "artifact_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
teamNoWith a folder slug: the team (slug or id) the folder belongs to.
typeYes
aliasNo
teamsNoTeams (slug or id) to share it with once it exists. Standalone only.
titleNo
folderNoThe folder to file it in: a folder id (a workspace folder puts it in that workspace), or a slug: in workspaceId when given, else in team, else one of your personal folders.
contentYes
visibilityNoStandalone sharing only; omit with a workspace, including private.
descriptionNoOne line saying what this file is (lists show the first line), at most 64000 characters.
publicAssetNoStore it in public storage with a direct URL (publicUrl). Not private, not in a workspace, not a table.
workspaceIdNoThe workspace to create it in, by its id or its slug (a workspace folder named in folder implies it). A workspace item needs why and takes no visibility, teams or publicAsset.
inputReferencesNoWhat it was made from: ids or URLs.
parentArtifactIdNoThe artifact this one was derived from.

Output Schema

NameRequiredDescriptionDefault
contentYes
artifactYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed1 schema field changed
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "One line saying what this file is (lists show the first line), at most 64000 characters.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • removedInput schema / properties / audience
      Removed value: -{
      -  "description": "Workspace audience: internal (the default for internal members) or shared (external members see it too; the only choice for external editors).",
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / artifact / properties / audience
      Removed value: -{
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
  4. Changed1 schema field changed
    • removedInput schema / properties / creatorContext
      Removed value: -{
      -  "description": "How it was made: the prompt, tool or run.",
      -  "maxLength": 16000,
      -  "type": "string"
      -}
  5. Changed1 schema field changed
    • removedInput schema / properties / handoff
      Removed value: -{
      -  "description": "Publish markdown as the workspace's handoff note for whoever comes next (needs a workspace).",
      -  "type": "boolean"
      -}
  6. Changed5 schema fields changed
    • addedOutput schema / properties / artifact / properties / alias
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / artifact / properties / folder
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        "slug": {
      +          "type": "string"
      +        },
      +        "teamSlug": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "slug"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / artifact / properties / rawUrl
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / artifact / properties / title
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / artifact / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "type",
      -  "currentVersionId"
      -]New value: +[
      +  "id",
      +  "url",
      +  "rawUrl",
      +  "type",
      +  "currentVersionId",
      +  "alias",
      +  "title",
      +  "folder"
      +]
  7. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"The workspace to create it in (a workspace folder named in folder implies it). A workspace item needs why and takes no visibility, teams or publicAsset."New value: +"The workspace to create it in, by its id or its slug (a workspace folder named in folder implies it). A workspace item needs why and takes no visibility, teams or publicAsset."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  8. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, open-world write, so the bar is lower; the description still adds real behavior: the receipt includes complete immutable content access, rawUrl vs url differ, stored content and description consume owner storage, and an undescribed workspace item returns a hint. It does not state what happens on version conflicts or whether republishing identical content creates a new version, which for a non-idempotent publish is the notable remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and dense with useful facts, but the telegraphic fragment style ('folder files it:', 'no expected revision is needed', 'homes it there') makes clauses hard to attribute to parameters on a first read. Every sentence carries information, yet the compression costs parseability.

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 14-parameter creation tool with annotations and an output schema, the description covers the mode selection, storage implications, and linking semantics that an agent needs to call it correctly. Content/type/alias/title/inputReferences/parentArtifactId are left to the schema, which is reasonable at 71% coverage.

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 71%, and the description contributes what the schema cannot: cross-parameter constraints (workspace items reject visibility/teams/publicAsset, publicAsset is incompatible with private/workspace/table, teams is standalone-only) and the folder-slug lookup order. Some of this restates the workspaceId and folder schema text, so it is additive but partly duplicative.

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 ('Publish text as a versioned artifact') and immediately distinguishes the two creation modes (standalone vs workspace item). It also explicitly separates itself from table_append_rows for the row-append case, so an agent can route without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use routing: workspace items need why and no visibility/teams/publicAsset, and readability is achieved afterwards via artifact_share_policy; appended records go to table_append_rows instead of resending the whole table. Folder resolution precedence (workspaceId, then team, then personal) is spelled out as an ordered rule.

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.