Skip to main content
Glama

get_ci_logs

Retrieve CI workflow logs to debug failed jobs. Filter by branch or run ID, job name, status, or tail the last lines.

Instructions

Get CI workflow logs for debugging failed jobs.

Provide either branch OR run_id (not both).

Optional filters:

  • job_name: filter by job name (e.g., "test", "lint")

  • status: "failure" (default), "success", or "all"

  • max_lines: tail N lines of logs (default: 200)

Returns: {run_id, run_url, branch, status, conclusion, jobs: [{job_id, name, status, conclusion, logs, log_url}]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNo
run_idNo
job_nameNo
statusNofailure
max_linesNo
ownerNo
repoNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Since no annotations are provided, the description carries the full burden. It explains the tool returns logs, defaults to failure status, and limits lines. It doesn't mention authentication or rate limits, but overall it's transparent about what the tool does.

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 structured with a main sentence, bullet points for parameters, and a return format. It is concise without unnecessary words, though the owner and repo parameters could be briefly explained.

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?

Given the 7 parameters (0 required) and presence of an output schema, the description covers the key inputs and output. It explains defaults and mutual exclusivity, making it usable, though owner and repo are not fully described.

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

Parameters4/5

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

Schema description coverage is 0%, but the description adds meaning by explaining the mutual exclusivity of branch and run_id, and describing filters like job_name, status, max_lines. It compensates for the lack of schema descriptions, though owner/repo are less explained.

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 CI workflow logs for debugging failed jobs. It specifies the resource ('CI workflow logs') and the action ('Get'), and distinguishes from sibling tools like check_ci_status by focusing on 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 explicitly says to provide either branch or run_id (not both), and lists optional filters with their defaults. This gives clear context for when to use the tool, though it doesn't directly compare to alternatives.

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/rriesco/github-mcp-server'

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