Flaky test finder
Reads CircleCI's flaky-test report each Monday, ranks the tests that fail most and keeps one GitHub tracking issue up to date.
Read failed pipelines, workflows, jobs, test results and artifacts, and trigger, rerun or cancel CircleCI workflows. Toolspoke gives your agents 17 of its actions, and you decide which ones each project allows.
Open the marketplace in your workspace, add CircleCI to the project your agents work in, and it appears on the gateway immediately.
Provide the credential CircleCI asks for. Where to get it, and what it has to be able to reach, is the next section.
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every CircleCI action the project leaves on.
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
Mention it on a pull request, and it answers there.
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use CircleCI, and only the actions the project leaves on.
Personal API token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
17 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
13 read, 2 write, 2 destructive
Fetches data and changes nothing.
list_organizationsList the organizations the token's user belongs to, with the slug (e.g. gh/acme) that list_pipelines takes. A CircleCI personal token has no scopes, it either works or it does not, so this call is a complete connection test: if it returns the organization, every read below can reach it.
list_pipelinesList recent pipelines across an organization, newest first. Use it to find the latest pipeline on a branch, then list_pipeline_workflows to see what failed.
list_project_pipelinesList recent pipelines of one project, newest first, optionally on one branch.
get_pipelineRetrieve one pipeline by id, with its trigger, commit and any configuration errors.
list_pipeline_workflowsList the workflows of one pipeline with their status, failed, success, running, on_hold and so on.
get_workflowRetrieve one workflow by id, with its status and timing.
list_workflow_jobsList the jobs in one workflow with their status and job_number. An approval job's id here is the approval_request_id that approve_job takes.
get_jobRetrieve one job by project and job number, with its status, executor, duration and any messages CircleCI attached.
get_job_stepsList one job's steps with each step's status, exit code and output_url. The output_url is a short-lived signed link to that step's log, readable without a token. Look for the step whose status is failed.
list_job_testsList the test results one job stored with store_test_results, including each failure's message.
list_job_artifactsList the artifacts one job stored, with each file's path and download URL.
get_flaky_testsList the tests CircleCI has seen both pass and fail on the same commit in this project, its flaky-test report.
get_workflow_metricsSummarize each workflow in a project over a reporting window, success rate, run count, duration percentiles and credits used.
Creates or updates something on the other side.
trigger_pipelineStart a new pipeline on a branch or tag. A write, not destructive, it adds a pipeline that cancel_workflow can stop, but it runs whatever the configuration runs, deploys included. Works for projects connected through the CircleCI OAuth app (gh/… and bb/… slugs); GitHub App projects need CircleCI's newer pipeline-run endpoint, which this connector does not declare.
rerun_workflowRerun a finished workflow, from the failed jobs only, or a chosen set of jobs, or from the start. It starts a new workflow; the old one is kept.
Deletes or permanently alters something. Worth granting on purpose.
cancel_workflowCancel a running workflow. Destructive because it cannot be undone, running jobs stop part-way, and the work can only be rerun from the start.
approve_jobApprove an on-hold approval job so the workflow continues. Destructive because an approval job is a human gate, often the one in front of a production deploy, and an approval cannot be withdrawn.
The gateway enforces each of these, so they can be stated flatly.
17 named actions: 13 that only read, 2 that write and 2 that delete or permanently alter something. They include list_organizations, list_pipelines and list_project_pipelines. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
Personal API token. The connector asks for personal api token, and optionally circleci url. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
Install CircleCI in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
The 17 actions above are the whole of it. A call to any other name is refused before it reaches CircleCI rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. Toolspoke holds no access to CircleCI of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in CircleCI. An agent has to ask. Toolspoke does not retry, queue or back off around CircleCI's own rate limits. A call that CircleCI refuses comes back to the agent as a failed call.
Yes, in two places. The project switches CircleCI's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
Reads CircleCI's flaky-test report each Monday, ranks the tests that fail most and keeps one GitHub tracking issue up to date.