Skip to main content
Glama

Read artifact

artifact_read
Read-onlyIdempotent

Read artifact metadata and complete immutable file content. Tables return a typed direction to table_get_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>"
    },
    "name": "artifact_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL.
whyNoOptional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters.
versionIdNoOne version's content (default: the current one).

Output Schema

NameRequiredDescriptionDefault
contentNo
artifactYes
tableToolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed3 schema fields changed
    • addedOutput schema / properties / artifact / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the file is, null when none: its first line, at most 280 characters. artifact_get has it whole."
      +}
    • addedOutput schema / properties / artifact / properties / descriptionCut
      Added value: +{
      +  "description": "true when description is only part of it (a later line or the end of a long first line was left out); artifact_get reads it whole.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / artifact / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "rawUrl",
      -  "type",
      -  "currentVersionId",
      -  "alias",
      -  "title",
      -  "folder",
      -  "visibility",
      -  "mimeType",
      -  "sizeBytes",
      -  "versionCount",
      -  "currentVersionNumber",
      -  "ownerId",
      -  "parentArtifactId",
      -  "forkedFrom",
      -  "publicAsset",
      -  "history",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "url",
      +  "rawUrl",
      +  "type",
      +  "currentVersionId",
      +  "alias",
      +  "title",
      +  "folder",
      +  "visibility",
      +  "description",
      +  "descriptionCut",
      +  "mimeType",
      +  "sizeBytes",
      +  "versionCount",
      +  "currentVersionNumber",
      +  "ownerId",
      +  "parentArtifactId",
      +  "forkedFrom",
      +  "publicAsset",
      +  "history",
      +  "createdAt",
      +  "updatedAt"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / artifact / properties / forkedFrom
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "artifactId": {
      +          "description": "The artifact the fork was copied from (its parent).",
      +          "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"
      +        },
      +        "version": {
      +          "description": "The number of the version copied. A number can be reused after a version is deleted; versionId is the exact one.",
      +          "exclusiveMinimum": 0,
      +          "maximum": 9007199254740991,
      +          "type": "integer"
      +        },
      +        "versionId": {
      +          "anyOf": [
      +            {
      +              "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"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The id of the version copied; null on an old fork whose source version was already gone."
      +        }
      +      },
      +      "required": [
      +        "artifactId",
      +        "versionId",
      +        "version"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The version this artifact was forked from; null when it is not a fork, or when you cannot read its parent."
      +}
    • changedOutput schema / properties / artifact / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "rawUrl",
      -  "type",
      -  "currentVersionId",
      -  "alias",
      -  "title",
      -  "folder",
      -  "visibility",
      -  "mimeType",
      -  "sizeBytes",
      -  "versionCount",
      -  "currentVersionNumber",
      -  "ownerId",
      -  "parentArtifactId",
      -  "publicAsset",
      -  "history",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "url",
      +  "rawUrl",
      +  "type",
      +  "currentVersionId",
      +  "alias",
      +  "title",
      +  "folder",
      +  "visibility",
      +  "mimeType",
      +  "sizeBytes",
      +  "versionCount",
      +  "currentVersionNumber",
      +  "ownerId",
      +  "parentArtifactId",
      +  "forkedFrom",
      +  "publicAsset",
      +  "history",
      +  "createdAt",
      +  "updatedAt"
      +]
  5. 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"
      -]New value: +[
      +  "id"
      +]
  6. Changed1 schema field changed
    • removedOutput schema / properties / artifact / properties / audience
      Removed value: -{
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
  7. Changed3 schema fields changed
    • addedOutput schema / properties / artifact / properties / currentVersionNumber
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / artifact / properties / history
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "from": {
      +          "enum": [
      +            "file",
      +            "folder",
      +            "workspace",
      +            "default"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "off",
      +                "all"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "maximum": 100,
      +              "minimum": 1,
      +              "type": "integer"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "value",
      +        "from"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / artifact / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "rawUrl",
      -  "type",
      -  "currentVersionId",
      -  "alias",
      -  "title",
      -  "folder",
      -  "visibility",
      -  "mimeType",
      -  "sizeBytes",
      -  "versionCount",
      -  "ownerId",
      -  "parentArtifactId",
      -  "publicAsset",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "url",
      +  "rawUrl",
      +  "type",
      +  "currentVersionId",
      +  "alias",
      +  "title",
      +  "folder",
      +  "visibility",
      +  "mimeType",
      +  "sizeBytes",
      +  "versionCount",
      +  "currentVersionNumber",
      +  "ownerId",
      +  "parentArtifactId",
      +  "publicAsset",
      +  "history",
      +  "createdAt",
      +  "updatedAt"
      +]
  8. Changed3 schema fields changed
    • 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"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / artifact / required
      Previous value: -[
      -  "id",
      -  "url",
      -  "type",
      -  "currentVersionId",
      -  "visibility",
      -  "alias",
      -  "title",
      -  "mimeType",
      -  "sizeBytes",
      -  "versionCount",
      -  "ownerId",
      -  "parentArtifactId",
      -  "publicAsset",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "url",
      +  "rawUrl",
      +  "type",
      +  "currentVersionId",
      +  "alias",
      +  "title",
      +  "folder",
      +  "visibility",
      +  "mimeType",
      +  "sizeBytes",
      +  "versionCount",
      +  "ownerId",
      +  "parentArtifactId",
      +  "publicAsset",
      +  "createdAt",
      +  "updatedAt"
      +]
  9. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds that returned file content is complete and immutable, and that table artifacts return a typed direction instead of rows. It omits size limits, pagination, or version-selection behavior, so it is useful but not exhaustive.

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

Conciseness5/5

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

Two front-loaded sentences with no filler: the core action is stated first and the table exception second. Every sentence carries useful information.

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 3-parameter read tool with full schema coverage, rich annotations, and an output schema, the description covers purpose and the important table routing. The notable remaining gap is that it does not name or differentiate other artifact-read siblings, but structured fields cover most operational detail.

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 the id formats, the accepted-but-unrecorded 'why' parameter, and versionId. The description adds no parameter-specific semantics beyond the general notion of complete content. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Read') and resource ('artifact') plus the exact scope: metadata and complete immutable file content. It also distinguishes table artifacts by redirecting them to table_get_rows. It does not explicitly differentiate from other artifact-read siblings, so it is clear but not a full 5.

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 provides one explicit routing rule: for tables, use table_get_rows rather than expecting rows from this tool. This gives clear context and a named alternative for a major case, but it does not state broader when-to-use or when-not guidance against other artifact-read tools.

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.