Skip to main content
Creates a tool and declares its first version. A tool only recorded from calls under the same name is adopted; one already declared returns 409. Give it a runtime for a hosted agent to call your endpoint, a calendar for it to book on a calendar connected to the project, or mcp for it to call a tool on an MCP server connected to the project. Header values are returned on read, so keep secrets out of them.
Calls POST /v1/tool

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.