Skip to main content
Replaces the tool: its name, scope, inputs, description, grading hints, runtime, calendar and MCP tool. A field left out is cleared, so omitting agentId makes the tool project-wide and omitting calendar or mcp makes it an ordinary tool. A change declares a new version; agent versions pinned to an older one keep it. A tool managed by config-as-code returns 409.
Calls PUT /v1/tool/{toolId}

Arguments

string
required
The tool-id.

Options

string
required
string
required
When the agent should use the tool.
string
array
string
string
object
Omit or null for a tool that is only graded.
object
required
switch
array
Repeatable.
object
object
Makes this a calendar tool, which Roark runs against a connected calendar: it takes no runtime and no inputs. Omit or null for any other tool; on update, omitting it makes the tool an ordinary one.
string
required
string
required
One of CHECK_AVAILABILITY, BOOK, LOOKUP_BOOKING, RESCHEDULE, CANCEL, LIST_BOOKINGS
array
required
switch
object
object
Makes this a tool on one of the project’s MCP servers: it takes no runtime, no inputs and no calendar, and the description replaces the server’s own. On update, omitting it makes the tool an ordinary one.
string
required
string
required
The tool as the server names it.
object

Example

Every command also takes the global options and sets one of the exit codes.