Create a tool
Create a tool. Two payload shapes exist:
function_type: external:apicreates an API tool from aurland an OpenAI-stylefunction_definition.- Any other
function_typewithcreatable_via_api: trueinGET /api/v2/tools/typescreates a built-in or provider-backed tool from its template; pass type-specific settings inparams.
Behaviours that belong to the agent itself (system:end_call, system:transfer_call,
system:check_forward_availability, system:check_warm_transfer_availability,
system:get_caller_info, system:extract_intent, system:chat_handover) are not creatable and
are rejected with mf-core:tool-invalid-function-type. Call forwarding (system:forward_call),
warm transfer (system:warm_transfer) and DTMF input (system:dtmf_input) are configurable and
stay creatable.
Cal.com tools (cal:get_availability, cal:book_appointment) require params.eventTypeId and
params.timezone; a missing or invalid value is rejected with mf-core:tool-validation-failed
and details.missing_param names the key.
Call-forwarding and warm-transfer types create two tools (a check and an execute tool) and return
both in tools.
Autorisierungen
Body
- API tool
- Built-in or provider tool
Create an API tool. integration_id is ignored; the backing integration is created automatically.
Antwort
The created tool, or tool pair.
- API tool
- Built-in or provider tool
- Tool pair
Returned by create and update. Call-forwarding and warm-transfer types return the pair.