Skip to main content
Glama

Fetch Artifact

fetch_artifact

Retrieve a specific artifact file from a result's output directory and return its UTF-8 text or a binary flag for inspection.

Instructions

Fetch a specific artifact file's content.

Returns UTF-8 text or binary flag. artifact_name is relative to the result's output directory.

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": {
      "result_name": "<result_name>",
      "domain_key": "<domain_key>",
      "artifact_name": "<artifact_name>"
    },
    "name": "fetch_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_bytesNo
domain_keyYes
result_nameYes
artifact_nameYes
include_supersededNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses the return format (UTF-8 text or a binary flag) and that artifact_name is resolved relative to the result's output directory. However, it doesn't explain max_bytes truncation behavior, what include_superseded does, permission requirements, or error behavior when the artifact is missing.

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 description is two terse sentences, front-loaded with the core purpose, with no filler. Its brevity is appropriate, though it verges on under-specification given the undocumented parameters.

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

Completeness2/5

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

The tool has 5 parameters with 0% description coverage and no annotations. Output schema covers the return values, but four parameters and the retrieval/truncation behavior remain unexplained, which is not enough for an agent to call this reliably beyond a simple happy path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, and the description only clarifies one of them (artifact_name's path resolution). The roles of result_name, domain_key, max_bytes (and truncation semantics), and include_superseded are left entirely undocumented in both the schema and the description.

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 states a specific verb and resource: fetch a specific artifact file's content. It clearly contrasts with siblings like list_artifacts or query_outputs by emphasizing a single artifact's content. It doesn't explicitly name an alternative, but the operation is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use guidance. An agent must infer that this is for retrieving artifact content after identifying an artifact via list_artifacts, and there is no guidance about when to use query_outputs or query_results instead. No exclusions or prerequisites are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.