Skip to main content
Glama

Append to artifact

artifact_append

Add text to the end of a text artifact (a running log, a notes file, a tracker) without sending or reading the rest: the server appends it to the current content, on a new line when the file is not empty and does not end with one. Nothing already in the file is changed or removed: the new current version (a new version id) holds all of the earlier text followed by the addition. So an append stores no separate copy of the text as it was before, whatever the file's history setting says, unless a task's review round uses that version (then it is kept, and the storage check counts the whole new version). expectedVersionId is never needed (when sent it is checked first, and a stale one is CONFLICT). Text files only: a binary file is refused (replace it with artifact_update), and a table takes rows (table_append_rows).

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": {
      "id": "<id>",
      "text": "<text>"
    },
    "name": "artifact_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.
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.
textYesThe text to add at the end of the file. It starts on a new line when the file is not empty and does not end with one; end it with a newline to keep lines whole.
expectedVersionIdNoOptional: the artifact's current version id as you read it (currentVersionId), checked first whenever sent: a stale one is CONFLICT. An append never needs it.

Output Schema

NameRequiredDescriptionDefault
contentYes
versionYes
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
    • changedInput schema / properties / expectedVersionId / description
      Previous value: -"Optional: the artifact's current version id as you read it (currentVersionId); a stale one is CONFLICT. An append never needs it."New value: +"Optional: the artifact's current version id as you read it (currentVersionId), checked first whenever sent: a stale one is CONFLICT. An append never needs it."
  3. Changed3 schema fields changed
    • removedInput schema / properties / artifactId
      Removed value: -{
      -  "description": "The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.",
      -  "maxLength": 300,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.",
      +  "maxLength": 300,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "artifactId",
      -  "text"
      -]New value: +[
      +  "id",
      +  "text"
      +]
  4. Changed1 schema field changed
    • removedOutput schema / properties / artifact / properties / audience
      Removed value: -{
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the annotations: it explains that the operation produces a new version id containing all earlier text plus the addition, that no prior content is modified or removed, that no separate pre-append copy is stored regardless of history setting except under task review rounds, and that appends are non-idempotent by nature. This is meaningful disclosure for a mutation tool, though the history/storage sentence is dense enough that its practical implication for the caller is hard to extract.

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 core purpose and newline behavior are front-loaded in the first clause, and the exclusion rules arrive at the end where they are easy to find. The middle sentence about version storage is a long nested construction ("whatever the file's history setting says, unless a task's review round uses that version...") that costs more parsing effort than the value it returns for invocation decisions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with full annotations and an output schema, this covers what an agent needs: what gets written, how newlines are handled, what happens to existing content and versions, conflict behavior, and where to go for the unsupported cases. Return values are left to the output schema, which is correct.

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 all four parameters including the newline behavior of `text` and the CONFLICT semantics of `expectedVersionId`; the description largely restates these. The `why` parameter, which is conditionally required for workspace items, receives no mention in the description at all. Baseline 3 is appropriate where the schema does the heavy lifting.

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?

Opens with a specific verb and resource ("Add text to the end of a text artifact") and immediately bounds the scope ("without sending or reading the rest"), plus concrete examples of artifact types (running log, notes file, tracker). It also names the two tools that cover the cases this one does not (artifact_update for binary, table_append_rows for tables), so an agent can distinguish it from siblings without opening a 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 explicit routing rules: text files only, binary files are refused and should go to artifact_update, tables go to table_append_rows. It also resolves a likely agent question up front by stating expectedVersionId is never needed for an append and that a stale value sent anyway yields CONFLICT.

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.