Skip to main content
This endpoint assigns a tool to one or more assistants, making it available during their conversations. Tools can be assigned to multiple assistants simultaneously.

Path Parameters

  • tool_id (integer, required): The unique identifier of the tool to assign

Request Body

Request

Request Fields

  • assistant_ids (array of integers, required): List of assistant IDs to assign the tool to
  • enabled (boolean, optional): Whether the tool is enabled for these assistants (default: true)

Response

A successful request returns assignment details:
Response

Single Assistant Assignment

You can also assign a tool to a single assistant:
Single Assignment Request
Single Assignment Response

Error Responses

404 Not Found - Tool
404 Not Found - Assistant
400 Bad Request - Already Assigned
400 Bad Request - Empty Assignment

Unassign Tool

To unassign a tool from assistants, use the unassign endpoint:
Unassign Tool
Unassign Request

List Tool Assignments

Get all current assignments for a tool:
List Assignments
Assignments Response

Integration Examples

Best Practices

  1. Selective Assignment: Only assign tools to assistants that actually need them
  2. Testing: Test tool functionality with specific assistants before broad deployment
  3. Monitoring: Track tool usage per assistant to optimize assignments
  4. Documentation: Document which tools are assigned to which assistants
  5. Performance: Consider the number of tools per assistant for optimal performance

Use Cases

Scenario: Different tools for different departments
Scenario: Rolling out new tools gradually
Scenario: Temporary tool access for specific periods