Skip to content

Create or update a tool grant for the current user

POST
/api/workspaces/{workspaceId}/mcp-servers/{id}/grants
workspaceId
required
string
id
required
string
object
toolName
required
string
>= 1 characters
decision
required
string
Allowed values: always_allow always_deny

Successful response

object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
Example
Operation completed
error
string
Example
Error message

Invalid request

object
success
boolean
error
string
Example
Error message

Internal server error

object
success
boolean
error
string
Example
Error message