Skip to content

bakers tools ​

bakers tools lists, describes and calls the bakers.build server's named tools over its MCP endpoint, bound to the same connection bakers ui uses. Every tracker operation an agent performs is one of these tools; agents with the bakers.build MCP connector call them natively, everyone else through bakers tools.

Inside a conductor run (BAKERS_CONDUCTOR_URL and BAKERS_CONDUCTOR_TOKEN set), bakers tools calls the run's bakers server with the run token and needs no connection config. Only reads, creates and updates of its new tickets leave the run's project. Name a tool plainly (bakers_ticket_read); the tool_api__ wire name works too.

bakers info prints project and workspace context.

Synopsis ​

bakers tools [<global options>] [<wire name>] [--schema] [--data <json|@file>] [--param <key=value>]...
FormWhat it does
bakers toolsList the tools the server offers to your identity
bakers tools <wire name> --schemaPrint the tool's input schema and, when it has one, its output schema
bakers tools <wire name> --data @args.jsonCall the tool with the arguments in args.json
bakers tools <wire name> --data '<json>'Call it with inline JSON arguments
bakers tools <wire name> --param key=valueSet one argument; repeatable, and wins over the same key in --data

Use --data @file beyond one-word values; it avoids shell quoting.

Global options ​

OptionMeaning
--config <path>Connection file to use; overrides every id-based selector
--connection <id>Named connection, ~/.bakers/connections/<id>.js
--connections-dir <path>Directory that holds the named connections ($DROPSH_CONNECTIONS_DIR)
--auth-profile <id>Auth profile to use; overrides the active profile and $DROPSH_AUTH_PROFILE

Global options follow the subcommand: bakers tools --connection staging. The connection is chosen by the same rule as in bakers ui: Connection selection. Sign-in and profiles are covered in bakers auth.

Results and exit codes ​

Results print to stdout as JSON, errors to stderr as structured JSON.

ExitMeaningNext
0Success; JSON result on stdoutUse the result
1The tool refused (E_TOOL), for example an unknown ticket or a forbidden state change; the message names the causeCorrect only the arguments the message shows wrong
2Configuration errorbakers config check --scope connection
3Authentication: credentials missing, expired or rejectedbakers auth status, then bakers auth login
4Validation (E_VALIDATION): unknown tool, unreadable or invalid --data, or arguments outside the input schema. Nothing was sentFix the arguments against --schema
5HTTP or protocol error (E_HTTP); details.status 0 means the response was lostSee the rule below
6Plugin errorCheck the connection's plugins

An uncertain write is not a failure. A write that timed out or ended with exit 5 may have been applied. The CLI sends each call once; never resend it. Read the ticket back (bakers_ticket_read) or search for the object first, and act only on what the read shows. Likewise, a failed read or search proves no absence.

Tools ​

Paged lists take optional limit (1 to 100, default 50) and offset (default 0) and return next_offset, which is null on the last page. bakers tools <wire name> --schema is authoritative for every argument.

ToolArgumentsWhat it does
bakers_user_readoptional user (e-mail or username)You or a teammate: profile, team roles, machines and conductors with conductor_id and assignment
bakers_user_searchqueryUsers whose full name or username contains query, any case
bakers_workspace_listlimit, offsetThe workspaces you can reach
bakers_group_listworkspace; optional groupA workspace's groups, or one group's subgroups
bakers_group_createworkspace, name; optional descriptionCreate a group
bakers_team_listworkspaceA workspace's teams
bakers_team_createworkspace, nameCreate a team
bakers_team_membersteamA team's members and roles
bakers_project_listoptional workspace, group, queryProjects you can reach, with key and uuid
bakers_project_readproject (prefix or UUID)One project: group, teams, repository, coder configuration, environments
bakers_project_creategroup, name; optional teams, description, repository, coder_configCreate a project
bakers_project_updateproject; repository (url, default_branch, branch_convention) or keyChange repository or prefix (new tickets only); needs edit bb_project or update own bb_project
bakers_environment_create, _update, _deleteproject, environment, name, branch, base_urlManage environments
bakers_conductor_listprojectA project's conductors and their status, with each conductor's machine (machine_id), owner and assignment
bakers_machine_listoptional workspace (UUID), conductor_uuidMachines you may view, with machine_id, label, connection_url, max_parallel, current_load and assignment
bakers_label_listworkspace; optional queryA workspace's labels
bakers_ticket_readticket (identifier or UUID); optional newest (default 2), typesA ticket with canonical absolute url, stored origin, priority, reviewers and assignee (see below), its newest comments per types, oldest first; comment_facets: per comment type and author, the count and newest time of all readable comments; and deployments: each ship ticket that carries it, with its identifier and environments
bakers_comment_readticket; optional ids, type, author (lists), newest (per type when type is given)A ticket's readable comments matching every given filter, oldest first; no filter returns all
bakers_ticket_searchquery, branch_name or filters/facets; optional projectTickets by text, branch or filters
bakers_ticket_listproject (UUID); limit, offset; optional closed (bool), sort (id or -changed)Readable tickets, closed ones too, oldest first: id (UUID), identifier, title, url, origin, state, links (uri, title), labels (names), frozen, frozen_at (ISO 8601 or null), parent (UUID, null when unreadable), closed, ticket_type, changed and active_run (id, state or null)
bakers_ticket_createtitle, workflow, project; optional description, type, recipe, parent, branch_name, assignee, reviewers (user UUIDs), blocked_by, priorityCreate a ticket; returns title, url and stored origin too. Ineligible people are skipped
bakers_ticket_updateticket; any of title, description, conductor, assignee, labels_add, labels_remove, frozen, priority, environments_add, referenced_tickets_add, reviewers_add, reviewers_remove, links_add, links_remove, blocked_by_add, blocked_by_removeEdit a ticket; omitted values are kept, labels_remove drops only the named labels, environments_add and referenced_tickets_add only add; assignee takes a user UUID or ""; priority: 0 clears it; a forbidden conductor is refused; a closed ticket refuses every edit
bakers_ticket_classifyticket; recipe, type or bothSet recipe and type by name
bakers_ticket_transitionticket; state, links or bothChange the state or add links
bakers_ticket_template_runtemplate (UUID); optional title, description, workflow, project, conductor, labels, target_stateCreate a ticket from a ticket template
bakers_run_listticket; restartable also machine_id or conductorA ticket's runs, or Restart runs candidates
bakers_activity_listticket or projectThe activity feed of a ticket or a project
bakers_comment_createticket, type, bodyCreate a comment
bakers_metric_writeticket, name, rows; optional labelRecord a measurement (Ticket metrics)
bakers_run_cancelticket, machine_id or runs, reasonCancel a ticket's active runs, your machine's, or exactly the given runs (all or nothing)
bakers_inbox_sendticket, message (e.g. ports.tunnel); optional payloadSend an addon message to the ticket's conductor, under the same access and payload rules as the web UI, and wait up to 30 s. Returns id, status (pending, running, done or failed) and the Markdown answer markdown; failed is the addon's answer, a refusal is a tool error
bakers_inbox_readmessage (the UUID bakers_inbox_send returned)The message's current status and markdown, without waiting

The list printed by bakers tools is what your identity may call on this server; it can hold tools this table does not show. Type, recipe and label names are reused, or created in the ticket's workspace.

Writing tickets and comments ​

reviewers_add and reviewers_remove take user UUIDs of active accounts eligible in the ticket’s workspace. Adding a present reviewer or removing an eligible account that is not a reviewer changes nothing. Unknown, blocked and ineligible accounts receive the same refusal; the whole update rolls back. A user in both lists is refused.

links_add takes [{uri, title?}]: an exact stored URI updates its title in place; omitted title preserves it and "" clears it. A new URI appends a link; duplicate URIs collapse and the server derives their kind. links_remove takes exact URIs; absent URIs are ignored. A URI in both lists or an invalid link refuses the whole update. Omitted/null operation lists and [] are no-ops. There is no clear-all: remove each reviewer or URI explicitly.

An added blocker (identifier or UUID) must be readable, open, in the same project and free of cycles, or the call stores nothing; removing a non-blocker is ignored. Read and update return readable blocked_by: [{identifier, title, state}].

Read, create and update return reviewers: [{uuid, name, mail}] and assignee: {uuid, name, mail} | null; mail is null without permission to view that user’s mail. Unreadable ticket fields are not disclosed. Update also returns saved links: [{uri, title}]. Read/list return the canonical absolute url and stored origin (null when absent or not readable); these tools never write origin. Use update to maintain links without changing state; transition’s links attach links alongside a state change.

A state change is bakers_ticket_transition; the server maps the target state to an allowed transition and refuses an invalid one. Rich-text values, a ticket's description and a comment's body, are GitHub-flavored Markdown: pipe tables render as tables, and the separator colons (:---, :---:, ---:) align a column left, center or right. Raw HTML, <table> included, is removed, so write tables in Markdown. branch_name on bakers_ticket_create makes a carrier ticket on a long-lived integration branch that its sub-tickets base on. Omitted, the server derives feat/<identifier>-<title>, and either way the value is frozen afterwards.

The conventional comment types and who writes them are in Follow a ticket. A run's own identity may comment only on the ticket it claimed and that ticket's descendants; an identity whose rank lets it edit the ticket is exempt. Reads never show unpublished comments, such as submitted reviews that are not yet published.

Anything without a tool, such as uploading a file or editing a ticket template, is done on the web application's own screens.

Examples ​

sh
# what the server offers, and the arguments one tool takes
bakers tools
bakers tools tool_api__bakers_ticket_create --schema

# a ticket with every comment
bakers tools tool_api__bakers_ticket_read --data '{"ticket":"<identifier>"}'

# the projects of a workspace, on another connection
bakers tools --connection staging tool_api__bakers_project_list --param workspace=<workspace uuid>

# move a ticket to review: write to-review.json, then call
#   {"ticket": "<identifier>", "state": "review"}
bakers tools tool_api__bakers_ticket_transition --data @to-review.json