Skip to main content
Glama

Get exact workflow run logs

gh_get_run_logs
Read-onlyIdempotent

Stream bounded logs for a specific GitHub Actions workflow run attempt, using literal start/end markers or tail bytes to retrieve exact evidence. Ensures attempt fidelity without zip downloads.

Instructions

Read-only: stream bounded log evidence for one exact GitHub Actions workflow run attempt by enumerating that attempt's jobs and reading their plaintext job-log endpoints in stable job-ID order. The run-log ZIP endpoint is never used. The attempt is mandatory and is never silently replaced by the latest attempt. Supports a UTF-8 byte cap, a literal tail selection, or inclusive literal start/end markers; it exposes no regex, shell, rerun, cancel, delete, or dispatch operation. sha256 fingerprints the complete normalized aggregate before selection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesCanonical GitHub repository name without path separators.
ownerYesCanonical GitHub repository owner.
run_idYesPositive workflow run identifier.
attemptYesExact workflow run attempt.
max_bytesNoMaximum returned UTF-8 bytes, capped by server policy.
end_markerNoInclusive literal end marker at or after the selected start.
tail_bytesNoReturn only the final bounded UTF-8 bytes of the source log.
start_markerNoInclusive literal start marker; never treated as a regex.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
textYes
run_idYes
sha256Yes
statusYes
attemptYes
warningNo
head_shaYes
truncatedYes
conclusionNo
total_bytesYes
bytes_returnedYes
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive. The description adds substantial behavioral detail: stable job-ID order, never uses ZIP endpoint, supports byte cap/tail/markers, sha256 fingerprinting, and explicitly excludes mutation/dispatch operations. This goes well beyond annotation coverage.

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 dense single paragraph that front-loads the core purpose ('Read-only: stream bounded log evidence...') and every sentence adds value (method, exclusions, selection modes, fingerprinting). No wasted words—exemplary conciseness for a complex tool.

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 an output schema exists and annotations cover safety, the description provides complete context: it explains the enumeration method, stable ordering, selection bounds (byte cap/tail/markers), and explicitly lists unsupported operations. It is sufficient for an agent to understand scope and behavior without ambiguity.

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 covers all 8 parameters with descriptions (100% coverage). Description adds minimal extra parameter meaning, though it confirms markers are literal and mentions 'UTF-8 byte cap' aligning with max_bytes. Since schema already does the heavy lifting, a baseline 3 is appropriate; description doesn't significantly extend parameter understanding.

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 'streams bounded log evidence for one exact GitHub Actions workflow run attempt' by enumerating jobs and reading plaintext job-log endpoints. It explicitly differentiates from alternatives by noting the attempt is mandatory and never replaced, and it excludes operations like rerun/cancel/delete, distinguishing it from gh_get_failed_run_logs and gh_get_job_logs.

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 implies usage context: read-only, exact attempt, bounded output, and explicitly states what it does not do (no regex, shell, rerun, etc.). It clarifies the attempt is never silently replaced. However, it does not explicitly name alternative tools for different scenarios, leaving the agent to infer from sibling names.

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