Validate a tool definition
Schema/reference validation only. No remote webhook, discovery or tool execution; a valid result is not an end-to-end tool test. Reserved names end_call, transfer and transfer_to_number are refused with invalid_request on every write/validation; use default_tools. Inline credential material also requires secrets.manage, because it creates a secret; a {secret_id, version} reference also requires secrets.read. It checks the definition as a new tool of the draft: an omitted timing is during_call, also when the agent already has a before-call tool. Send timing pre_call to check a before-call tool: its rules answer as on createAgentTool, and an agent that already has one reports tool_pre_call_exists.
Authentication
An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.
Path parameters
Headers
The ID of the workspace that this operation acts in. It must be a workspace of the key’s organisation and in the key’s workspace list. A missing, empty or malformed value is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the organisation or the key’s workspace list is the hidden 404 not_found.
Request
Unattended execution only. Automatic retry of an idempotent webhook requires name and placement and an idempotent downstream contract; no automatic retry of unknown non-idempotent effects. Unknown side effect forbids automatic retry.
Unattended execution only. Automatic retry of an idempotent webhook requires name and placement and an idempotent downstream contract; no automatic retry of unknown non-idempotent effects. Unknown side effect forbids automatic retry. Tool name must equal definition.remote_tool_name.
Response headers
Response
A snapshot, not a reservation. Admission rechecks current readiness. Publication, model support, knowledge and phone routing are separate prerequisites. Reasons can include credential_unavailable when the live version has tools that pin a revoked credential version.