Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Get Job Log

github_get_job_log
Read-only

Fetches the tail of a GitHub Actions job log, capped at max_bytes, so failure details at the end remain accessible even for large logs.

Instructions

Fetches the end of a GitHub Actions job's log, capped at max_bytes. A job reports its failure last, so a cut keeps the tail. GitHub redirects to a storage host for one minute, and the download goes there without the token. See #500.

Workflow and conventions: github_get_skill('ci-checks').

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": {
      "repo_owner": "<repo_owner>",
      "repo_name": "<repo_name>",
      "job_id": "<job_id>"
    },
    "name": "github_get_job_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe id of a GitHub Actions check run from github_get_pr_status_checks
max_bytesNoCap on the log returned, kept from the end. Pass 0 to learn the size without reading the log
repo_nameYes
repo_ownerYes

Output Schema

NameRequiredDescriptionDefault
logYes
job_idYes
truncatedYes
bytes_totalYes
bytes_returnedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv54.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld and non-destructive behavior, but the description adds genuinely new context: the download follows a redirect to a storage host and is made without the token, plus the one-minute redirect window. That is useful operational detail an agent could not derive from the annotations, though rate limits and truncation signaling are left unaddressed (the output schema covers the latter).

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?

Purpose and the key cap behavior are front-loaded in the first sentence, and the tail-truncation and auth-redirect notes are each one tight sentence. The dangling 'See #500' reference is wasted space for an agent and slightly dilutes the otherwise efficient structure.

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?

With an output schema present, return values need not be described, and the description covers the non-obvious runtime behaviors (tail truncation, tokenless redirect) plus a pointer to the conventions skill. The main remaining gap is the undocumented repo_owner/repo_name parameters, which are conventional but never explained.

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 only 50%: repo_owner and repo_name have no descriptions anywhere, and the description does not compensate for them. It does reinforce max_bytes semantics ('capped at max_bytes', 'a cut keeps the tail') beyond the schema's own text, and job_id is documented in the schema as coming from github_get_pr_status_checks.

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?

States a specific verb and resource ('Fetches the end of a GitHub Actions job's log') plus the scoping behavior (tail-capped at max_bytes). No sibling tool retrieves job logs, so an agent can distinguish it from github_get_workflow_runs or github_get_pr_status_checks 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 Guidelines3/5

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

It explains the rationale for tail-capping ('A job reports its failure last, so a cut keeps the tail'), which implies the intended debugging use case, and routes to github_get_skill('ci-checks') for conventions. However, it never states explicitly when to use this versus related tools, and 'See #500' is an opaque issue reference that gives the agent no actionable guidance.

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