Configure a new tool for an agent.
Args: agent_id: The ID of the agent tool_data: Tool configuration data user_id: The user ID of the current user organization_id: The organization ID of the current user
Returns: Created agent tool
Raises: HTTPException: If agent not found, tool invalid, or access denied
Model for creating an agent tool configuration.
Name of the tool
Type of tool: 'built_in', 'mcp_server', 'external_tool'
ID of the agent
Tool-specific configuration settings
Whether the tool is enabled
ID of the MCP server
ID of the external tool connection
Successful Response
Model for an agent tool configuration.
Name of the tool
Type of tool: 'built_in', 'mcp_server', 'external_tool'
Unique identifier for the agent tool
ID of the agent this tool belongs to
When the tool was configured
When the tool was last updated
Tool-specific configuration settings
Whether the tool is enabled
ID of the MCP server (if tool_type is 'mcp_server')
ID of the external tool connection (if tool_type is 'external_tool')