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 toenabled
(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 - ToolUnassign 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
Node.js Example
Node.js Example
Python Example
Python Example
PHP Example
PHP Example
Best Practices
- Selective Assignment: Only assign tools to assistants that actually need them
- Testing: Test tool functionality with specific assistants before broad deployment
- Monitoring: Track tool usage per assistant to optimize assignments
- Documentation: Document which tools are assigned to which assistants
- Performance: Consider the number of tools per assistant for optimal performance
Use Cases
Department-Specific Tools
Department-Specific Tools
Scenario: Different tools for different departments
Gradual Rollout
Gradual Rollout
Scenario: Rolling out new tools gradually
Temporary Access
Temporary Access
Scenario: Temporary tool access for specific periods