Skip to main content
Glama

Get a Depot CI job attempt

depot_get_ci_attempt
Read-onlyIdempotent

Fetch a specific CI job attempt's status, error, sandbox/session IDs, timing, and current-attempt flag, with parent job, workflow, and run context. Use when you have an attemptId to inspect a retry.

Instructions

Show one attempt of a Depot CI job: its status, conclusion, recorded error, sandbox and session ids, timing, and whether it is the job's current attempt, with the parent job, workflow, and run for context.

Use this when you hold an attemptId (from depot_get_ci_run, depot_get_ci_job, or a diagnosis) and need that attempt's own record, for example to confirm which sandbox a retry ran in or how long it took before failing.

It does not explain the failure and does not return logs. For root cause, call depot_diagnose_ci_failure with the same id and targetType "attempt"; for raw output, depot_get_ci_logs; to compare all attempts of the job, depot_get_ci_job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attemptIdYesThe attempt id, as shown by depot_get_ci_run or depot_get_ci_job (attemptId=...).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes
runYes
attemptYes
workflowYes
contentWarningYesReminder that names and error messages come from CI output and are unverified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds behavioral context beyond those annotations by telling the agent that the tool returns contextual parent job/workflow/run information and does not return logs or failure explanations, which is essential for setting expectations before invocation.

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 well-structured and front-loads the core purpose and return fields before moving to usage conditions and exclusions. Each sentence earns its place, and the routing to sibling tools is compactly presented without restating schema details or adding fluff.

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?

With only one parameter, a rich description, a robust output schema, and annotations covering safety and idempotence, the description is complete for an agent to select and invoke the tool correctly. It covers what the tool returns, when to use it, what it does not do, and exactly which alternatives to choose for other needs.

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?

The input schema has 100% coverage and already describes attemptId as shown by depot_get_ci_run or depot_get_ci_job. The description enhances this by specifying that attemptId can come from depot_get_ci_run, depot_get_ci_job, or a diagnosis, and by clarifying that the same id can be reused with a targetType of 'attempt' for diagnosis, adding useful source and relationship context beyond the schema.

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 states a specific verb-resource pair ('Show one attempt of a Depot CI job') and immediately lists the concrete fields returned, including status, conclusion, sandbox and session ids, timing, and current-attempt flag. It also distinguishes itself from siblings by explicitly stating what it does not do (explain failure, return logs) and names the tools that fill those gaps.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'Use this when you hold an attemptId... and need that attempt's own record,' including concrete examples. It also provides clear exclusion criteria and routes to alternatives: depot_diagnose_ci_failure for root cause, depot_get_ci_logs for raw output, and depot_get_ci_job for comparing attempts.

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