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>]...| Form | What it does |
|---|---|
bakers tools | List the tools the server offers to your identity |
bakers tools <wire name> --schema | Print the tool's input schema and, when it has one, its output schema |
bakers tools <wire name> --data @args.json | Call 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=value | Set one argument; repeatable, and wins over the same key in --data |
Use --data @file beyond one-word values; it avoids shell quoting.
Global options
| Option | Meaning |
|---|---|
--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.
| Exit | Meaning | Next |
|---|---|---|
0 | Success; JSON result on stdout | Use the result |
1 | The tool refused (E_TOOL), for example an unknown ticket or a forbidden state change; the message names the cause | Correct only the arguments the message shows wrong |
2 | Configuration error | bakers config check --scope connection |
3 | Authentication: credentials missing, expired or rejected | bakers auth status, then bakers auth login |
4 | Validation (E_VALIDATION): unknown tool, unreadable or invalid --data, or arguments outside the input schema. Nothing was sent | Fix the arguments against --schema |
5 | HTTP or protocol error (E_HTTP); details.status 0 means the response was lost | See the rule below |
6 | Plugin error | Check 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.
| Tool | Arguments | What it does |
|---|---|---|
bakers_user_read | optional user (e-mail or username) | You or a teammate: profile, team roles, machines and conductors with conductor_id and assignment |
bakers_user_search | query | Users whose full name or username contains query, any case |
bakers_workspace_list | limit, offset | The workspaces you can reach |
bakers_group_list | workspace; optional group | A workspace's groups, or one group's subgroups |
bakers_group_create | workspace, name; optional description | Create a group |
bakers_team_list | workspace | A workspace's teams |
bakers_team_create | workspace, name | Create a team |
bakers_team_members | team | A team's members and roles |
bakers_project_list | optional workspace, group, query | Projects you can reach, with key and uuid |
bakers_project_read | project (prefix or UUID) | One project: group, teams, repository, coder configuration, environments |
bakers_project_create | group, name; optional teams, description, repository, coder_config | Create a project |
bakers_project_update | project; repository (url, default_branch, branch_convention) or key | Change repository or prefix (new tickets only); needs edit bb_project or update own bb_project |
bakers_environment_create, _update, _delete | project, environment, name, branch, base_url | Manage environments |
bakers_conductor_list | project | A project's conductors and their status, with each conductor's machine (machine_id), owner and assignment |
bakers_machine_list | optional workspace (UUID), conductor_uuid | Machines you may view, with machine_id, label, connection_url, max_parallel, current_load and assignment |
bakers_label_list | workspace; optional query | A workspace's labels |
bakers_ticket_read | ticket (identifier or UUID); optional newest (default 2), types | A 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_read | ticket; 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_search | query, branch_name or filters/facets; optional project | Tickets by text, branch or filters |
bakers_ticket_list | project (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_create | title, workflow, project; optional description, type, recipe, parent, branch_name, assignee, reviewers (user UUIDs), blocked_by, priority | Create a ticket; returns title, url and stored origin too. Ineligible people are skipped |
bakers_ticket_update | ticket; 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_remove | Edit 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_classify | ticket; recipe, type or both | Set recipe and type by name |
bakers_ticket_transition | ticket; state, links or both | Change the state or add links |
bakers_ticket_template_run | template (UUID); optional title, description, workflow, project, conductor, labels, target_state | Create a ticket from a ticket template |
bakers_run_list | ticket; restartable also machine_id or conductor | A ticket's runs, or Restart runs candidates |
bakers_activity_list | ticket or project | The activity feed of a ticket or a project |
bakers_comment_create | ticket, type, body | Create a comment |
bakers_metric_write | ticket, name, rows; optional label | Record a measurement (Ticket metrics) |
bakers_run_cancel | ticket, machine_id or runs, reason | Cancel a ticket's active runs, your machine's, or exactly the given runs (all or nothing) |
bakers_inbox_send | ticket, message (e.g. ports.tunnel); optional payload | Send 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_read | message (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