Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Required string length: 1 - 64
Example:

"book_appointment"

description
string
required

When the agent should use the tool

Required string length: 1 - 1024
agentId
string<uuid> | null
inputs
object[]
Maximum array length: 32
invocationCriteria
string | null
expectedResult
string | null
runtime
object | null

Omit or null for a tool that is only graded

calendar
object | null

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.

mcp
object | null

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.

Response

The tool

data
object
required