Artifact URLs may require authentication headers to download
Large artifacts may have download size limits
5. Review Test Results
When to use
User wants to check test outcomes for a specific job
Tool sequence
:
CIRCLECI_GET_JOB_DETAILS
- Verify job ran tests [Prerequisite]
CIRCLECI_GET_TEST_METADATA
- Retrieve test results and metadata [Required]
Key parameters
:
project_slug
Project identifier
job_number
Numeric job number
Pitfalls
:
Test metadata requires the job to have uploaded test results (JUnit XML format)
If no test results were uploaded, the response will be empty
Test metadata includes classname, name, result, message, and run_time fields
Failed tests include failure messages in the
message
field
Common Patterns
Project Slug Format
Format: {vcs_type}/{org_name}/{repo_name}
- GitHub: gh/myorg/myrepo
- Bitbucket: bb/myorg/myrepo
Pipeline -> Workflow -> Job Hierarchy
1. Call CIRCLECI_LIST_PIPELINES_FOR_PROJECT to get pipeline IDs
2. Call CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID with pipeline_id
3. Extract job numbers from workflow details
4. Call CIRCLECI_GET_JOB_DETAILS with job_number
Pagination
Check response for
next_page_token
field
Pass token as
page_token
in next request
Continue until
next_page_token
is absent or null
Known Pitfalls
ID Formats
:
Pipeline IDs: UUIDs (e.g.,
5034460f-c7c4-4c43-9457-de07e2029e7b
)
Workflow IDs: UUIDs
Job numbers: Integers (e.g.,
123
)
Do NOT mix up UUIDs and integers between different endpoints
Project Slugs
:
Must include VCS prefix:
gh/
for GitHub,
bb/
for Bitbucket
Organization and repo names are case-sensitive
Incorrect slug format causes 404 errors
Rate Limits
:
CircleCI API has per-endpoint rate limits
Implement exponential backoff on 429 responses
Avoid rapid polling; use reasonable intervals (5-10 seconds)
Quick Reference
Task
Tool Slug
Key Params
Trigger pipeline
CIRCLECI_TRIGGER_PIPELINE
project_slug, branch, parameters
List pipelines
CIRCLECI_LIST_PIPELINES_FOR_PROJECT
project_slug, branch
List workflows
CIRCLECI_LIST_WORKFLOWS_BY_PIPELINE_ID
pipeline_id
Get pipeline config
CIRCLECI_GET_PIPELINE_CONFIG
pipeline_id
Get job details
CIRCLECI_GET_JOB_DETAILS
project_slug, job_number
Get job artifacts
CIRCLECI_GET_JOB_ARTIFACTS
project_slug, job_number
Get test metadata
CIRCLECI_GET_TEST_METADATA
project_slug, job_number
Powered by
Composio