Skip to main content
Glama

Read workflow artifact text file

gh_read_artifact_file
Read-onlyIdempotent

Fetch a file from a GitHub Actions artifact by exact path and artifact ID. Returns validated UTF-8/JSON content, size-bounded, with SHA-256 integrity check.

Instructions

Read-only: retrieve one exact normalized regular-file path from one exact, unexpired GitHub Actions artifact. Only valid UTF-8 text/JSON is returned. Returned content is bounded by max_bytes and the server hard cap, while sha256 fingerprints the complete validated file. The ZIP is temporary and never extracted; GitHub is never modified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesExact normalized artifact file path using forward slashes.
repoYesCanonical GitHub repository name without path separators.
ownerYesCanonical GitHub repository owner.
max_bytesNoMaximum returned UTF-8 bytes, capped by the server file hard limit.
artifact_idYesExact workflow artifact identifier.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sha256Yes
contentYes
warningNo
encodingNoutf-8
truncatedYes
artifact_idYes
total_bytesYes
archive_bytesYes
artifact_nameYes
archive_sha256Yes
bytes_returnedYes
artifact_digestNo
workflow_run_idYes
workflow_head_shaYes
artifact_expires_atYes
artifact_size_in_bytesYes
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description adds meaningful behavioral details: only valid UTF-8 text/JSON is returned, content is bounded by max_bytes and a server cap, sha256 fingerprints the complete file, the ZIP is temporary and never extracted, and GitHub is never modified. This enriches the annotation context.

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?

The description is a single, compact sentence that front-loads the read-only nature and then packs essential constraints (exact path, unexpired artifact, UTF-8, boundaries, hashing, ZIP handling) without redundancy. Every word earns its place.

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?

Given the output schema exists, the description does not need to explain return values. It covers constraints, safety, and behavior thoroughly for a read-only tool. With 100% schema coverage and rich annotations, the description is fully adequate and leaves no major gaps.

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?

All parameters have schema descriptions providing clarity (100% coverage), so the description does not need to add parameter-specific semantics. The description mentions max_bytes and sha256 but these are implied by the schema; the description adds no new parameter-level detail, so baseline 3 is appropriate.

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 clearly states the tool retrieves one exact normalized file path from one exact, unexpired GitHub Actions artifact. It uses the specific verb 'retrieve' and distinguishes this from sibling tools like listing or getting artifact metadata.

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?

The description specifies 'one exact' path and 'unexpired' artifact, making it clear this is for precise reads, not listings. However, it does not explicitly name alternatives (e.g., gh_list_artifact_files) or state when not to use it, so it falls short of a perfect 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fvanevski/gh_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server